[Zope-dev] Python 2.3.2 and dir

Dieter Maurer dieter at handshake.de
Mon Dec 15 13:55:07 EST 2003


Alan Milligan wrote at 2003-12-15 13:45 +1100:
>I'm trying to upgrade my Zpydoc product to Python 2.3.2 from 2.1.3 and 
>have come across a confusing situation in regard to the 
>inspect.getmembers function.
>
>This function uses the builtin dir() function to get a list of an 
>objects attributes.  For Zope products, I am getting a situation where 
>returned attributes are not found in the object - explicitly __call__, 
>__delattr__, etc etc.

You know, I have a similar product ("DocFinder").
I directly look into the class' "__dict__" to learn about
a class' members.

-- 
Dieter



More information about the Zope-Dev mailing list