]> granicus.if.org Git - python/commit
PEP 308 implementation, including minor refdocs and some testcases. It
authorThomas Wouters <thomas@python.org>
Mon, 27 Feb 2006 00:24:13 +0000 (00:24 +0000)
committerThomas Wouters <thomas@python.org>
Mon, 27 Feb 2006 00:24:13 +0000 (00:24 +0000)
commitdca3b9c797f6dd4b08d590fa2aa1031e22ab598e
treed2b7aa53793110100965906b1266296d08bd4ec1
parentd3a5f53a27be821cfdff869fd8ad93a060497e8c
PEP 308 implementation, including minor refdocs and some testcases. It
breaks the parser module, because it adds the if/else construct as well as
two new grammar rules for backward compatibility. If no one else fixes
parsermodule, I guess I'll go ahead and fix it later this week.

The TeX code was checked with texcheck.py, but not rendered. There is
actually a slight incompatibility:

>>> (x for x in lambda:0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: iteration over non-sequence

changes into

>>> (x for x in lambda: 0)
  File "<stdin>", line 1
    (x for x in lambda: 0)
                     ^
SyntaxError: invalid syntax

Since there's no way the former version can be useful, it's probably a
bugfix ;)
Doc/ref/ref5.tex
Grammar/Grammar
Include/Python-ast.h
Include/graminit.h
Lib/test/test_grammar.py
Parser/Python.asdl
Python/Python-ast.c
Python/ast.c
Python/compile.c
Python/graminit.c
Python/symtable.c