[Python-Dev] No __bases__ in dir()

Facundo Batista facundobatista at gmail.com
Sat Mar 15 16:30:26 CET 2008


Hi!

My head crashed into this:

>>> class C(object):
   ...:     pass
   ...:
>>>
>>> dir(C)
['__class__', ...]
>>> C.__bases__
(<type 'object'>,)

Why __bases__ does not appear in dir()?

Is there a good reason for this or should I file a bug?

Thanks!

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/


More information about the Python-Dev mailing list