Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-m arg behavior #67798

Closed
niacdoial mannequin opened this issue Mar 8, 2015 · 2 comments
Closed

-m arg behavior #67798

niacdoial mannequin opened this issue Mar 8, 2015 · 2 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@niacdoial
Copy link
Mannequin

niacdoial mannequin commented Mar 8, 2015

BPO 23610
Nosy @MojoVampire

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2015-03-09.04:36:11.119>
created_at = <Date 2015-03-08.17:25:36.648>
labels = ['interpreter-core', 'invalid', 'type-bug', 'library']
title = '-m arg behavior'
updated_at = <Date 2015-03-09.04:36:11.119>
user = 'https://bugs.python.org/niacdoial'

bugs.python.org fields:

activity = <Date 2015-03-09.04:36:11.119>
actor = 'zach.ware'
assignee = 'none'
closed = True
closed_date = <Date 2015-03-09.04:36:11.119>
closer = 'zach.ware'
components = ['Interpreter Core', 'Library (Lib)']
creation = <Date 2015-03-08.17:25:36.648>
creator = 'niacdoial'
dependencies = []
files = []
hgrepos = []
issue_num = 23610
keywords = []
message_count = 2.0
messages = ['237546', '237584']
nosy_count = 2.0
nosy_names = ['niacdoial', 'josh.r']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue23610'
versions = []

@niacdoial
Copy link
Mannequin Author

niacdoial mannequin commented Mar 8, 2015

hello!

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!

@niacdoial niacdoial mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Mar 8, 2015
@MojoVampire
Copy link
Mannequin

MojoVampire mannequin commented Mar 9, 2015

This is intentional and documented behavior: https://docs.python.org/3/library/__main__.html

@zware zware closed this as completed Mar 9, 2015
@zware zware added the invalid label Mar 9, 2015
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant