Anthony Sottile <asott...@umich.edu> added the comment:
In fact, trying to use an `ImportFrom` without an integer `level` results in a `ValueError`: >>> x = ast.parse('from os import path') >>> x.body[0].level = None >>> compile(x, '<string>', 'exec') Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: invalid integer value: 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