[Python-checkins] r64090 - python/trunk/Doc/library/ast.rst
armin.ronacher
python-checkins at python.org
Tue Jun 10 22:52:20 CEST 2008
Author: armin.ronacher
Date: Tue Jun 10 22:52:19 2008
New Revision: 64090
Log:
Documented the new AST constructor.
Modified:
python/trunk/Doc/library/ast.rst
Modified: python/trunk/Doc/library/ast.rst
==============================================================================
--- python/trunk/Doc/library/ast.rst (original)
+++ python/trunk/Doc/library/ast.rst Tue Jun 10 22:52:19 2008
@@ -96,6 +96,11 @@
node = ast.UnaryOp(ast.USub(), ast.Num(5, lineno=0, col_offset=0),
lineno=0, col_offset=0)
+ .. versionadded:: 2.6
+ The constructor as explained above was added. In Python 2.5 nodes had
+ to be created by calling the class constructor without arguments and
+ setting the attributes afterwards.
+
.. _abstract-grammar:
More information about the Python-checkins
mailing list