[issue35001] ImportFrom level cannot be optional
thautwarm
report at bugs.python.org
Wed Oct 17 06:10:34 EDT 2018
thautwarm <yaoxiansamma at gmail.com> added the comment:
Firstly, allowing to construct ImportFrom without `level` specified could be the result of referring Python-asdl.
Secondly, in C level, `level` is always an integer.
Last but not the least, when you can access `level` from an ImportFrom AST, it must be an integer, not None.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35001>
_______________________________________
More information about the Python-bugs-list
mailing list