[Python-ideas] Have list/deque grow a copy() method
Georg Brandl
g.brandl at gmx.net
Tue May 15 17:10:35 CEST 2007
Josiah Carlson schrieb:
> "Ian D. Bollinger" <ian.bollinger at gmail.com> wrote:
>> It would be nice if containers had a more consistent interface. The
>> standard idiom for copying a list has been L[:], but this isn't
>
> The standard way of copying a list (or producing a list from an
> arbitrary sequence) is list(L).
The first part is news to me. Who defined that standard?
Georg
More information about the Python-ideas
mailing list