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

Reply via email to