[Python-Dev] No __bases__ in dir()

Nick Coghlan ncoghlan at gmail.com
Sat Mar 15 19:11:34 CET 2008


Guido van Rossum wrote:
> This is because dir() special-cases classes, isn't it?

Avoiding infinite recursion in dir(type) might be fun if that special 
case was removed without due care and attention...

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-Dev mailing list