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 brett.cannon, michael.foord, ncoghlan
Date 2010-03-23.14:27:33
SpamBayes Score 2.66303e-05
Marked as misclassified No
Message-id <>
I realised today that this behaviour is actually the case for any execution of a module inside a package with -m (i.e. any __init__ modules execute before sys.argv and __main__ are fully configured).

As I recall, I used a bit of a hack to get main.c to implement -m correctly by piggybacking on the existing -c semantics. I'll find the hack and replace it with some proper '-c' or '-m' logic.
Date User Action Args
2010-03-23 14:27:35ncoghlansetrecipients: + ncoghlan, brett.cannon, michael.foord
2010-03-23 14:27:35ncoghlansetmessageid: <>
2010-03-23 14:27:34ncoghlanlinkissue8202 messages
2010-03-23 14:27:33ncoghlancreate