A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-March/077603.html below:

[Python-Dev] No __bases__ in dir()

[Python-Dev] No __bases__ in dir() [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4