O'Reilly logo
  • Xanadu Zhang thinks this is interesting:

NOT_RATED = 0 RATED_G = 1 RATED_PG = 2 RATED_R = 3 RATINGS = ( (NOT_RATED, 'NR - Not Rated'), (RATED_G, 'G - General Audiences'), (RATED_PG, 'PG - Parental Guidance ' 'Suggested'), (RATED_R, 'R - Restricted'), )

From

Cover of Building Django 2.0 Web Applications

Note

``` Class Ratings(Enum): NOT_RATED = auto() RATED_G = auto() RATED_PG = auto()

def describe(self):
    ... ...

```