mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Documented the new AST constructor.
This commit is contained in:
parent
3079be51af
commit
482f31299c
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue