]> granicus.if.org Git - python/commitdiff
Documented the new AST constructor.
authorArmin Ronacher <armin.ronacher@active-4.com>
Tue, 10 Jun 2008 20:52:19 +0000 (20:52 +0000)
committerArmin Ronacher <armin.ronacher@active-4.com>
Tue, 10 Jun 2008 20:52:19 +0000 (20:52 +0000)
Doc/library/ast.rst

index 3c2f8d21814194b5ad9c581aaaafe8209d817064..4ce21c8cda19e280b0042076a40660e80439f093 100644 (file)
@@ -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: