Message227457
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. |
|
Date |
User |
Action |
Args |
2014-09-24 14:47:24 | vstinner | set | recipients:
+ vstinner, gvanrossum, chrysn, yselivanov |
2014-09-24 14:47:24 | vstinner | set | messageid: <1411570044.93.0.845281022238.issue22480@psf.upfronthosting.co.za> |
2014-09-24 14:47:24 | vstinner | link | issue22480 messages |
2014-09-24 14:47:24 | vstinner | create | |
|