A module's name and its functions/clasess
Martin v. Loewis
martin at v.loewis.de
Thu Oct 17 09:24:22 EDT 2002
More information about the Python-list mailing list
Thu Oct 17 09:24:22 EDT 2002
- Previous message (by thread): A module's name and its functions/clasess
- Next message (by thread): A module's name and its functions/clasess
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Xiao-Qin Xia <xx758 at cam.ac.uk> writes: > Can a module know itself's name and the functions/clasess defined in the > module? (in order to bind these functions/classed with psyco) The name is available as __name__, the functions are available by iterating through globals(). Make sure you skip classes, and other data. Regards, Martin
- Previous message (by thread): A module's name and its functions/clasess
- Next message (by thread): A module's name and its functions/clasess
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list