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 brett.cannon
Recipients brett.cannon, michael.foord, ncoghlan
Date 2010-03-22.22:43:52
SpamBayes Score 0.0233049
Marked as misclassified No
Message-id <>
Nick is right that importing package.__main__ requires importing package.__init__ first.

But it sounds like Michael really just wants some way to know when runpy is being used over something else. Could a special string token like "<runpy>" or "<-m>" be placed in sys.argv until it is back-patched to what it will eventually become? That should allow Michael to find out what whether runpy was being used or not.
Date User Action Args
2010-03-22 22:43:53brett.cannonsetrecipients: + brett.cannon, ncoghlan, michael.foord
2010-03-22 22:43:53brett.cannonsetmessageid: <>
2010-03-22 22:43:52brett.cannonlinkissue8202 messages
2010-03-22 22:43:52brett.cannoncreate