[Python-ideas] frozenset literals

Nick Coghlan ncoghlan at gmail.com
Sat Feb 2 15:28:55 CET 2013


FWIW, I could personally tolerate the introduction of s{} and fs{}
literals. We'd just declare the "s" prefix optional for non-empty sets to
match the current rules.

Encouraging the use of ast.literal_eval() over the security nightmare that
is eval() would be more than enough justification for me. (As a syntax
change, the idea would still need a PEP, though)

Cheers,
Nick.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130203/ed5de645/attachment.html>


More information about the Python-ideas mailing list