Issue567844

classification
Title: list() does not make a shallow copy
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: bckfnn Nosy List: bckfnn
Priority: normal Keywords:

Created on 2002-06-12.05:20:47 by anonymous, last changed 2002-07-03.21:33:27 by bckfnn.

Messages
msg667 (view) Author: Nobody/Anonymous (nobody) Date: 2002-06-12.05:20:47
Guido's book says list(x) makes a shallow copy if x is 
already a list.  But I observe this behavior:

Jython 2.1a3 on java1.3.0 (JIT: null)
Type "copyright", "credits" or "license" for more 
information.
>>> a=[1,2,3]
>>> b=list(a)
>>> a[1]=5
>>> a
[1, 5, 3]
>>> b
[1, 5, 3]
>>>

Sorry if I've misunderstood something or if this has 
already been fixed.

-Greg
msg668 (view) Author: Finn Bock (bckfnn) Date: 2002-07-03.21:33:27
Logged In: YES 
user_id=4201

This bug has already been fixed in the current CVS.
History
Date User Action Args
2002-06-12 05:20:47anonymouscreate