From: Armin Ronacher Date: Tue, 10 Jun 2008 20:52:19 +0000 (+0000) Subject: Documented the new AST constructor. X-Git-Tag: v2.6b1~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=482f31299c3512a2033c48c92ae1d055c038824c;p=thirdparty%2FPython%2Fcpython.git Documented the new AST constructor. --- diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index 3c2f8d218141..4ce21c8cda19 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: