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 rhettinger
Recipients rhettinger
Date 2019-12-29.21:42:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1577655730.41.0.646692068238.issue39158@roundup.psfhosted.org>
In-reply-to
Content
We already support sets but not empty sets.  After the PR, this now works:

    >>> from ast import literal_eval
    >>> literal_eval('set()')
    set()

If we wanted, it would be a simple matter to extend it frozensets:

    >>> literal_eval('frozenset({10, 20, 30})')
    frozenset({10, 20, 30})
History
Date User Action Args
2019-12-29 21:42:10rhettingersetrecipients: + rhettinger
2019-12-29 21:42:10rhettingersetmessageid: <1577655730.41.0.646692068238.issue39158@roundup.psfhosted.org>
2019-12-29 21:42:10rhettingerlinkissue39158 messages
2019-12-29 21:42:10rhettingercreate