summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2008-06-10 20:52:19 (GMT)
committerArmin Ronacher <armin.ronacher@active-4.com>2008-06-10 20:52:19 (GMT)
commit482f31299c3512a2033c48c92ae1d055c038824c (patch)
tree7d332ba86ef8d148bbc7d878d58910578382b071
parent3079be51af55e579a5f9f0ffc11b73e8f4d892eb (diff)
downloadcpython-482f31299c3512a2033c48c92ae1d055c038824c.zip
cpython-482f31299c3512a2033c48c92ae1d055c038824c.tar.gz
cpython-482f31299c3512a2033c48c92ae1d055c038824c.tar.bz2
Documented the new AST constructor.
-rw-r--r--Doc/library/ast.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst
index 3c2f8d2..4ce21c8 100644
--- a/Doc/library/ast.rst
+++ b/Doc/library/ast.rst
@@ -96,6 +96,11 @@ Node classes
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: