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.

Title: -m arg behavior
Type: behavior Stage: resolved
Components: Interpreter Core, Library (Lib) Versions:
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: josh.r, niacdoial
Priority: normal Keywords:

Created on 2015-03-08 17:25 by niacdoial, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg237546 - (view) Author: Liam Marsh (niacdoial) Date: 2015-03-08 17:25

trying the solutions proposed by the 23546'th issue, i found that the -m argument, for packages (like tkinter, or idlelib; not io or socket), trys to find the "__main__" file, not the "__init__" file, which is the main file of any package.

is that a problem?

thank you for reading this, and have a nice day/evening!
msg237584 - (view) Author: Josh Rosenberg (josh.r) * (Python triager) Date: 2015-03-09 00:37
This is intentional and documented behavior:
Date User Action Args
2022-04-11 14:58:13adminsetgithub: 67798
2015-03-09 04:36:11zach.waresetstatus: open -> closed
resolution: not a bug
stage: resolved
2015-03-09 00:37:38josh.rsetnosy: + josh.r
messages: + msg237584
2015-03-08 17:25:36niacdoialcreate