thautwarm <yaoxiansa...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue35001> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com