[issue39158] ast.literal_eval() doesn't support empty sets

Jan. 5, 2020
4:02 a.m.
Pablo Galindo Salgado <pablogsal@gmail.com> added the comment:
And if add support of non-literals, where should we stop? Should we support also frozenset() and bytearray()? inf and nan? infj and nanj? complex()? Ellipsis? __debug__?
Then the name of the function would be a bit misleading (for frozenset() and bytearray()), no? I think the set() change is somehow inconsistent already with the function name. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39158> _______________________________________
2011
Age (days ago)
2011
Last active (days ago)
0 comments
1 participants
participants (1)
-
Pablo Galindo Salgado