All functions from self and inherited classes

Christer Østergaard winterdk at hotmail.com
Wed Jun 13 10:45:04 CEST 2001


"Skip Montanaro" <skip at pobox.com> wrote in message
news:mailman.992379799.20401.python-list at python.org...
>
>     >> And a dir(self.__class__) returns methods, but only methods defined
>     >> in B.
>
>     Alex> Someone posted this code here ages ago.... [snipped]
>
> The (new) standard module inspect has a getmembers function (output
wrapped
> for readability):

[SNIP]
--
> Skip Montanaro (skip at pobox.com)
> (847)971-7098
>

Very interesting... i'm currently working v. 2.0, and no module "inspect"
seems to be part of my pakage... do you know if there any possibility of me
fetching the module, and thereby not being forced to upgrade the full monty?

Christer





More information about the Python-list mailing list