[ZODB-Dev] Strange behaviour of __dict__ and dir on Persistent derived classes

Syver Enstad syver at inout.no
Thu Jul 22 11:04:59 EDT 2004


"Tim Peters" <tim at zope.com> writes:

> [Syver Enstad]
> Sorry, I don't know enough about ExtensionClass.  I suppose you could write
> a function to crawl over cls.__bases__ recursively, but that's not notably
> easy (e.g., Python's implementation of dir() consumes > 200 lines of C).

I found out that inspect.mro works with ExtensionClass so I use that.



More information about the ZODB-Dev mailing list