[Python-checkins] python/dist/src/Lib copy.py,1.40,1.41

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Fri, 13 Jun 2003 12:26:31 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv4844

Modified Files:
	copy.py 
Log Message:
SF patch 707900, fixing bug 702858, by Steven Taschuk.
Copying a new-style class that had a reference to itself didn't work.
(The same thing worked fine for old-style classes.)


Index: copy.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/copy.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** copy.py	27 Feb 2003 20:14:33 -0000	1.40
--- copy.py	13 Jun 2003 19:26:29 -0000	1.41
***************
*** 335,338 ****
--- 335,339 ----
          args = deepcopy(args, memo)
      y = callable(*args)
+     memo[id(x)] = y
      if listiter is not None:
          for item in listiter: