From: SourceForge.net <no...@so...> - 2003-07-31 18:35:18
|
Bugs item #567844, was opened at 2002-06-12 05:20 Message generated for change (Settings changed) made by pedronis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=567844&group_id=12867 Category: Core >Group: Fixed in 2.2a0 Status: Closed Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Finn Bock (bckfnn) Summary: list() does not make a shallow copy Initial Comment: 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 ---------------------------------------------------------------------- Comment By: Finn Bock (bckfnn) Date: 2002-07-03 21:33 Message: Logged In: YES user_id=4201 This bug has already been fixed in the current CVS. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=567844&group_id=12867 |