[Python-ideas] frozenset literals
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Feb 3 02:27:39 CET 2013
Guido van Rossum wrote:
> You're proposing to do this just for literal_eval(), right? But how
> would you implement it? It seems it would require lots of special
> cases. Where would you stop? dict(key1=..., key2=...)? list({...})?
I think you just do frozenset() and stop there until
someone asks for something else.
dict(key1=..., key2=...) and list({...}) are not needed,
because they can already be spelled as literals.
--
Greg
More information about the Python-ideas
mailing list