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 vstinner
Recipients chrysn, gvanrossum, vstinner, yselivanov
Date 2014-09-24.14:47:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411570044.93.0.845281022238.issue22480@psf.upfronthosting.co.za>
In-reply-to
Content
Running "python test.py" and "python -m test" changes how the code is loaded. With "python test.py", test.py becomes the "__main__" module, whereas "python -m test" uses the "test" module.

At Python exit, the __main__ module and other modules are destroyed differently.

Anyway, this issue is another example of the issue #22428 and so I close it as duplicate.
History
Date User Action Args
2014-09-24 14:47:24vstinnersetrecipients: + vstinner, gvanrossum, chrysn, yselivanov
2014-09-24 14:47:24vstinnersetmessageid: <1411570044.93.0.845281022238.issue22480@psf.upfronthosting.co.za>
2014-09-24 14:47:24vstinnerlinkissue22480 messages
2014-09-24 14:47:24vstinnercreate