This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Anthony Sottile
Recipients Anthony Sottile, docs@python, srittau, thautwarm
Date 2018-10-17.03:26:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539746802.44.0.788709270274.issue35001@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-10-17 03:26:42Anthony Sottilesetrecipients: + Anthony Sottile, srittau, docs@python, thautwarm
2018-10-17 03:26:42Anthony Sottilesetmessageid: <1539746802.44.0.788709270274.issue35001@psf.upfronthosting.co.za>
2018-10-17 03:26:42Anthony Sottilelinkissue35001 messages
2018-10-17 03:26:42Anthony Sottilecreate