[Python-ideas] change list() - branch from "More useful slices"

Paul Moore p.f.moore at gmail.com
Mon Feb 2 20:43:28 CET 2015


On 2 February 2015 at 19:24, Alexander Heger <python at 2sn.net> 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')

So there would be a discontinuity - list('foo') would have to be ['f',
'o', 'o'] for backward compatibility. And that makes list(*args)
problematic, as it behaves differently if len(args)==1.

Paul


More information about the Python-ideas mailing list