Message338055
None can not be ignored in Constant(value=None). [] can not be ignored in Tuple(elts=[]).
There is also a problem with using ast.dump() with annotate_fields=False:
>>> from ast import *
>>> dump(Raise(cause=Name(id='B', ctx=Load())), annotate_fields=False)
"Raise(Name('B', Load()))"
>>> dump(Raise(Name('B', Load())))
"Raise(exc=Name(id='B', ctx=Load()))"
For Raise(cause=X) it outputs a string which is evaluated to Raise(exc=X). |
|
Date |
User |
Action |
Args |
2019-03-16 06:25:33 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, benjamin.peterson, yselivanov, levkivskyi, eamanu |
2019-03-16 06:25:33 | serhiy.storchaka | set | messageid: <1552717533.07.0.930372260541.issue36287@roundup.psfhosted.org> |
2019-03-16 06:25:33 | serhiy.storchaka | link | issue36287 messages |
2019-03-16 06:25:32 | serhiy.storchaka | create | |
|