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

from .foo import * should work #46652

Closed
nnorwitz mannequin opened this issue Mar 18, 2008 · 4 comments
Closed

from .foo import * should work #46652

nnorwitz mannequin opened this issue Mar 18, 2008 · 4 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@nnorwitz
Copy link
Mannequin

nnorwitz mannequin commented Mar 18, 2008

BPO 2400
Nosy @loewis, @jaraco, @benjaminp

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 2008-03-19.04:39:39.436>
created_at = <Date 2008-03-18.16:53:44.350>
labels = ['interpreter-core']
title = 'from .foo import * should work'
updated_at = <Date 2010-08-05.13:53:27.210>
user = 'https://bugs.python.org/nnorwitz'

bugs.python.org fields:

activity = <Date 2010-08-05.13:53:27.210>
actor = 'jaraco'
assignee = 'none'
closed = True
closed_date = <Date 2008-03-19.04:39:39.436>
closer = 'loewis'
components = ['Interpreter Core']
creation = <Date 2008-03-18.16:53:44.350>
creator = 'nnorwitz'
dependencies = []
files = []
hgrepos = []
issue_num = 2400
keywords = []
message_count = 4.0
messages = ['63942', '63950', '64036', '112978']
nosy_count = 4.0
nosy_names = ['loewis', 'nnorwitz', 'jaraco', 'benjamin.peterson']
pr_nums = []
priority = 'critical'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue2400'
versions = ['Python 2.6']

@nnorwitz
Copy link
Mannequin Author

nnorwitz mannequin commented Mar 18, 2008

Explicit relative imports using from .foo import * should work.

http://mail.python.org/pipermail/python-3000/2008-March/012564.html

@nnorwitz nnorwitz mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Mar 18, 2008
@benjaminp
Copy link
Contributor

More verbosely:
The restriction should be removed; a SyntaxError shouldn't be raised,
and import should handle it correctly.

@loewis
Copy link
Mannequin

loewis mannequin commented Mar 19, 2008

This is now fixed in r61595.

@loewis loewis mannequin closed this as completed Mar 19, 2008
@jaraco
Copy link
Member

jaraco commented Aug 5, 2010

Is there any chance this can be back-ported to Python 2.7?

@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)
Projects
None yet
Development

No branches or pull requests

2 participants