introspection question

Guilherme Polo ggpolo at gmail.com
Mon Jan 7 10:15:08 EST 2008


2008/1/7, Alex K <spaceoutlet at gmail.com>:
> Nice thank you. But anyway to make it look pretty?
>

pprint.pprint(inspect.getmembers(someobject))

> On 07/01/2008, Peter Otten <__peter__ at web.de> wrote:
> > Alex K wrote:
> >
> > > What would be the simplest way of enumerating all methods and members
> > > (including inherited) of a given object? Thank you.
> >
> > inspect.getmembers()
> >
> > Peter
> > --
> > http://mail.python.org/mailman/listinfo/python-list
> >
> --
> http://mail.python.org/mailman/listinfo/python-list
>


-- 
-- Guilherme H. Polo Goncalves



More information about the Python-list mailing list