[Python-ideas] list.copy() for consistency with dict.copy()

anatoly techtonik techtonik at gmail.com
Tue Jul 23 14:35:09 CEST 2013


On Tue, Jul 23, 2013 at 1:48 PM, Amaury Forgeot d'Arc
<amauryfa at gmail.com> wrote:
> 2013/7/23 anatoly techtonik <techtonik at gmail.com>
>>
>> The idea is to add list.copy() and make it as fast as slicing.
>
>
> Already done in 3.3, see http://bugs.python.org/issue10516
> and http://docs.python.org/3.3/whatsnew/3.3.html#other-language-changes
>
> And the implementation in C uses list_slice(), so your wishes are fulfilled!

That's wonderful. =)
--
anatoly t.


More information about the Python-ideas mailing list