2.3 list reverse() bug?

Paul Rubin http
Sun Dec 28 03:11:31 CET 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