2.3 list reverse() bug?

Paul Rubin http
Sat Dec 27 21:11:31 EST 2003


Andrew MacIntyre <andymac at bullseye.apana.org.au> writes:
> > list(x) is my favourite way to make a shallow copy of list x, but x[:]
> > and copy.copy(x) are essentially equivalent.
> 
> Behaviourally yes, performance wise no.

Eh?  Last time I looked at the copy module, x[:] is exactly what it did.




More information about the Python-list mailing list