introspection question

Guilherme Polo ggpolo at gmail.com
Mon Jan 7 09:33:55 EST 2008


2008/1/7, Alex K <spaceoutlet at gmail.com>:
> Hi Guys,
>
> What would be the simplest way of enumerating all methods and members
> (including inherited) of a given object? Thank you.
>
> Alex
> --
> http://mail.python.org/mailman/listinfo/python-list
>

import inspect
inspect.getmembers(yourobject)

-- 
-- Guilherme H. Polo Goncalves



More information about the Python-list mailing list