Monday, August 28, 2017

class Meta(object)

Should our Meta classes inherit from object?  I just did a code inspection and got that message a few times; it never occurred to me to do that before, and even the Django documentation doesn’t have Meta inherit from object.  What is the best practice, especially with Python 3?

No comments:

Post a Comment