This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients
Date 2007-07-31.12:43:51
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The -m switch creates a new module object to execute the requested module, and then throws it away before returning control to the interpreter core.

This is incompatible with the -i command line switch (and its environment variable equivalent), and would also cause problems if any code executed while looking for the module to be executed (e.g. sitecustomize.py or package __init__ modules) grabbed a reference to the original __main__ module.

(Creating bug report because I don't think the quick fix I checked in to SVN is adequate, and it's taking me longer than I planned to roll the quick fix back and fix the problem properly)
History
Date User Action Args
2007-08-23 14:58:57adminlinkissue1764407 messages
2007-08-23 14:58:57admincreate