What is my module name?
Clark C . Evans
cce at clarkevans.com
Wed Jun 27 13:54:09 EDT 2001
More information about the Python-list mailing list
Wed Jun 27 13:54:09 EDT 2001
- Previous message (by thread): What is my module name?
- Next message (by thread): Mapping with unicode strings buggy the format operator %
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have a module with a function below I use __name__ to return the module name. However, when I call the function from outside, it returns '__builtin__'. Is there a way to have this function return the module name regardless of where it is called? def myName(): return __name__ Thanks! Clark
- Previous message (by thread): What is my module name?
- Next message (by thread): Mapping with unicode strings buggy the format operator %
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list