[Python-3000] No Container Literals

Ka-Ping Yee python at zesty.ca
Sun Jul 9 05:50:32 CEST 2006


On Sat, 8 Jul 2006, Calvin Spealman wrote:
> Just throwing this out there, but I would love to see a complete
> dropping of container literals from Python. That is why I proposed the
> coercion syntax (ex: list from something) because it would allow
> things like list(1, 2, 3) and we can already do dict(ten=10,
> eleven=11), so what is the real need for literals as they are?

This to me makes about as much sense as forcing programmers to write
str('h', 'e', 'l', 'l', 'o') instead of 'hello'.


-- ?!ng


More information about the Python-3000 mailing list