Message327854
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 |
|
Date |
User |
Action |
Args |
2018-10-17 03:26:42 | Anthony Sottile | set | recipients:
+ Anthony Sottile, srittau, docs@python, thautwarm |
2018-10-17 03:26:42 | Anthony Sottile | set | messageid: <1539746802.44.0.788709270274.issue35001@psf.upfronthosting.co.za> |
2018-10-17 03:26:42 | Anthony Sottile | link | issue35001 messages |
2018-10-17 03:26:42 | Anthony Sottile | create | |
|