[Python-checkins] python/dist/src/Lib copy.py,1.22.10.5,1.22.10.6

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sat, 14 Jun 2003 00:20:07 -0700


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

Modified Files:
      Tag: release22-maint
	copy.py 
Log Message:
copy and deepcopy builtin functions atomically. Fixes #746304.
Also backport 2.36 (deepcopy classes atomically).


Index: copy.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/copy.py,v
retrieving revision 1.22.10.5
retrieving revision 1.22.10.6
diff -C2 -d -r1.22.10.5 -r1.22.10.6
*** copy.py	12 Aug 2002 20:21:43 -0000	1.22.10.5
--- copy.py	14 Jun 2003 07:20:04 -0000	1.22.10.6
***************
*** 113,116 ****
--- 113,117 ----
  d[types.XRangeType] = _copy_atomic
  d[types.ClassType] = _copy_atomic
+ d[types.BuiltinFunctionType] = _copy_atomic
  
  def _copy_list(x):
***************
*** 212,215 ****
--- 213,218 ----
  d[types.TypeType] = _deepcopy_atomic
  d[types.XRangeType] = _deepcopy_atomic
+ d[types.ClassType] = _deepcopy_atomic
+ d[types.BuiltinFunctionType] = _deepcopy_atomic
  
  def _deepcopy_list(x, memo):