how to get names of attributes

Random832 random832 at fastmail.com
Wed Dec 30 12:04:43 EST 2015


On Wed, Dec 30, 2015, at 07:50, Chris Angelico wrote:
> I believe that's true, yes. The meaning of "by default" there is that
> "class X: pass" will make an old-style class. All built-in types are
> now new-style classes.

To be clear, AFAIK, built-in types were never old-style classes - prior
to the introduction of the new type system (i.e. in Python 2.1 and
earlier) they were not classes, and afterwards they were immediately
new-style classes.



More information about the Python-list mailing list