[docs] [issue35001] ImportFrom level cannot be optional
Serhiy Storchaka
report at bugs.python.org
Wed Oct 17 01:07:29 EDT 2018
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
None is not integer. This field is optional:
>>> from ast import *
>>> x = Module(body=[ImportFrom(names=[alias(name='path', asname=None)], lineno=1, col_offset=0)])
>>> compile(x, '<string>', 'exec')
<code object <module> at 0x7f73b754da00, file "<string>", line 1>
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35001>
_______________________________________
More information about the docs
mailing list