Message667

Author nobody
Recipients
Date 2002-06-12.05:20:47
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
History
Date User Action Args
2008-02-20 17:17:06adminlinkissue567844 messages
2008-02-20 17:17:06admincreate