Why doesn't a dictionary work in classes?

Terry Reedy tjreedy at udel.edu
Tue Dec 25 10:36:59 EST 2018


On 12/25/2018 7:45 AM, אורי wrote:
> Why does this not work:
> 
> class User(ValidateUserPasswordMixin, PermissionsMixin, Entity,
> AbstractBaseUser):
> GENDER_UNKNOWN = 0
 > ...

Indent needed here.  I presume you used tabs, which disappeared in 
transmission, but I cannot cut and paste to run this.



-- 
Terry Jan Reedy





More information about the Python-list mailing list