[Python-3000] No Container Literals

Calvin Spealman ironfroggy at gmail.com
Sun Jul 9 05:55:35 CEST 2006


On 7/8/06, Ka-Ping Yee <python at zesty.ca> wrote:
> 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'.

I don't see a correlation between those. I don't see strings as a
container type, either. This also changes, drastically, how we would
write every element within the container, which nothing I've proposed
does.


More information about the Python-3000 mailing list