Kaydet (Commit) 482f3129 authored tarafından Armin Ronacher's avatar Armin Ronacher

Documented the new AST constructor.

üst 3079be51
...@@ -96,6 +96,11 @@ Node classes ...@@ -96,6 +96,11 @@ Node classes
node = ast.UnaryOp(ast.USub(), ast.Num(5, lineno=0, col_offset=0), node = ast.UnaryOp(ast.USub(), ast.Num(5, lineno=0, col_offset=0),
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: .. _abstract-grammar:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment