__bases__ attribute on classes not displayed by dir() command
nomail at invalid.com
Thu Feb 4 04:11:40 EST 2016
"eryk sun" <eryksun at gmail.com> a écrit dans le message de
news:mailman.49.1454576255.30993.python-list at python.org...
> On Thu, Feb 4, 2016 at 2:03 AM, ast <nomail at invalid.com> wrote:
>> but if I am using dir to display all Carre's attributes and methods,
>> __bases__ is not on the list. Why ?
> The __bases__ property is defined by the metaclass, "type". dir() of a
> class doesn't show attributes from the metaclass .
Oh metaclass !
I am learning them at the moment, and have headaches
More information about the Python-list