On Sun, 3 Feb 2013 00:28:55 +1000 Nick Coghlan ncoghlan@gmail.com wrote:
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)
If it is enough of a justification, then why not literal support for more useful datatypes (decimal, datetime...) rather than frozenset?
Regards
Antoine.