[Python-3000] No Container Literals

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Jul 10 02:13:12 CEST 2006


Calvin Spealman wrote:

> dict(1=2) could be allowed, with additional syntax rules.

No, it couldn't, unless you were willing to give up
on dict(a=2) being equivalent to {'a':2} rather than
{a:2}.

--
Greg


More information about the Python-3000 mailing list