[Python-Dev] Fix import errors to have data (original) (raw)
Fred L. Drake, Jr. fdrake at acm.org
Thu Jul 29 05:44:23 CEST 2004
- Previous message: [Python-Dev] Fix import errors to have data
- Next message: [Python-Dev] Fix import errors to have data
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wednesday 28 July 2004 06:40 pm, Bob Ippolito wrote:
I've used sys.modules[module] to get a reference to the current module object. Mostly for running doctests I guess, but I've probably used it in other places.
Did you mean name?
module is an attribute of classes that provides the name of the defining module.
-Fred
-- Fred L. Drake, Jr.
- Previous message: [Python-Dev] Fix import errors to have data
- Next message: [Python-Dev] Fix import errors to have data
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]