Documented the new AST constructor.

This commit is contained in:
Armin Ronacher 2008-06-10 20:52:19 +00:00
parent 3079be51af
commit 482f31299c

View 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: