21 Oct 2014 21 Oct '14
On Oct 21, 2014, at 10:13 AM, Guido van Rossum wrote:
For new code, and whenever you have an opportunity to refactor old code, you should use new-style classes, by inheriting your class from object (or from another class that inherits from object).
One nice way to do this module-globally is to set:
__metaclass__ = type
at the top of your file. Then when you're ready to drop Python 2, it's an easy clean up.