[Python-ideas] change list() - branch from "More useful slices"
Terry Reedy
tjreedy at udel.edu
Tue Feb 3 01:29:25 CET 2015
On 2/2/2015 2:24 PM, Alexander Heger wrote:
> Well, if something useful comes out of this discussion, maybe it would
> be an idea to extend list to allow the former syntax naively assumed,
>
> list('foo', 'bar', 'baz')
I see no point to this versus ['foo', 'bar', 'baz']
> similar to what exists for dict():
>
> dict(a=1, b=2, c=3)
The point to this is that the alternative {'a': 1, 'b': 2, 'c': 3) is a
bit more awkward to write due to the quoting.
--
Terry Jan Reedy
More information about the Python-ideas
mailing list