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 does not find dotted modules #42203

Closed
mewf mannequin opened this issue Jul 20, 2005 · 2 comments
Closed

-m does not find dotted modules #42203

mewf mannequin opened this issue Jul 20, 2005 · 2 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@mewf
Copy link
Mannequin

mewf mannequin commented Jul 20, 2005

BPO 1241619
Nosy @rhettinger

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 2005-07-20.17:54:26.000>
created_at = <Date 2005-07-20.15:06:25.000>
labels = ['interpreter-core', 'type-feature']
title = '-m does not find dotted modules'
updated_at = <Date 2005-07-20.17:54:26.000>
user = 'https://bugs.python.org/mewf'

bugs.python.org fields:

activity = <Date 2005-07-20.17:54:26.000>
actor = 'rhettinger'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2005-07-20.15:06:25.000>
creator = 'mewf'
dependencies = []
files = []
hgrepos = []
issue_num = 1241619
keywords = []
message_count = 2.0
messages = ['54588', '54589']
nosy_count = 2.0
nosy_names = ['rhettinger', 'mewf']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue1241619'
versions = []

@mewf
Copy link
Mannequin Author

mewf mannequin commented Jul 20, 2005

-m does not appear to find modules that are referenced
to with dots on windows:

D:\Python24\Lib\site-packages>python -m found
python: module found not found

D:\Python24\Lib\site-packages>echo print 'found!' >
found.py

D:\Python24\Lib\site-packages>python -m found
found!

D:\Python24\Lib\site-packages>mkdir directory

D:\Python24\Lib\site-packages>move found.py directory

D:\Python24\Lib\site-packages>del found.pyc
Could Not Find D:\Python24\Lib\site-packages\found.pyc

D:\Python24\Lib\site-packages>python -m found
python: module found not found

D:\Python24\Lib\site-packages>python -m directory.found
python: module directory.found not found

D:\Python24\Lib\site-packages>python directory\found.py
found!

D:\Python24\Lib\site-packages>

This should use the standard python finding mechanism
to cope with dotted packages. Also with package\init.py

@mewf mewf mannequin closed this as completed Jul 20, 2005
@mewf mewf mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Jul 20, 2005
@mewf mewf mannequin closed this as completed Jul 20, 2005
@mewf mewf mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Jul 20, 2005
@rhettinger
Copy link
Contributor

Logged In: YES
user_id=80475

The initial implementation of -m was intentionally confined
to the simplest case. The issues pertaining to packages are
dealt with through the PEP process:
http://www.python.org/peps/pep-0338.html

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 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) type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant