module functions list

Diez B. Roggisch deetsNOSPAM at
Wed Aug 25 14:45:38 CEST 2004


> You could use a list comprehension coupled with a filter:
> functionList = [function for function in dir(objectName) \
>     if callable(getattr(objectName,function))]

That works if objectName is my module - but how do I get a reference to the
current module _inside_ my module? Thats the hart part (at least for
me ...)


Diez B. Roggisch

More information about the Python-list mailing list