SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72137 0 41 Python

bpo-29622: Make AST constructor to accept less than enough number of positional arguments (GH-249)

bpo-29463 added optional "docstring" field to 4 AST types.
While it is optional, it breaks backward compatibility because AST constructor
requires number of positional argument is same to number of fields.

AST types accepts empty arguments, and incomplete keyword arguments.
But it's not big problem because field can be filled after creation, and checked when compiling.
So stop requiring complete set of fields for positional arguments too.
I
INADA Naoki committed
4c78c527d215c37472145152cb0e95f196cdddc9
Parent: 561ca80
Committed by GitHub <noreply@github.com> on 2/23/2017, 5:48:17 PM