[issue40726] ast.Call end_lineno is defined and returns None

Batuhan Taskaya report at bugs.python.org
Fri May 22 05:28:27 EDT 2020


Batuhan Taskaya <isidentical at gmail.com> added the comment:

This is because the 'end_lineno' and 'end_col_offset' are declared as optional attributes in the ASDL spec. The commit 'b7e9525f9c7ef02a1d2ad8253afdeb733b0951d4' made all optional fields and attributes auto initalized with None.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40726>
_______________________________________


More information about the Python-bugs-list mailing list