[issue9068] from . import *

2010-06-24 Thread Haoyu Bai

New submission from Haoyu Bai divine...@gmail.com:

from . import * is valid syntax in CPython (both 2.6 and py3k) but in the 
language reference it is not allowed:

http://docs.python.org/dev/py3k/reference/simple_stmts.html#the-import-statement

--
components: Interpreter Core
messages: 108507
nosy: bhy
priority: normal
severity: normal
status: open
title: from . import *
type: behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9068
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9068] from . import *

2010-06-24 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

That's because while it is syntactically allowed, it is semantically 
disallowed. The grammar rules shown in the docs is a generalization of the 
actual grammar used to build the parser so that we can take shortcuts with it 
to simply not have rules that will pass the parser but fail in the compiler.

--
assignee:  - brett.cannon
components: +Documentation -Interpreter Core
nosy: +brett.cannon
priority: normal - low
resolution:  - wont fix
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9068
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com