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

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sat, 14 Jun 2003 00:10:08 -0700


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

Modified Files:
	copy.py 
Log Message:
Copy builtin functions as atomic. Fixes #746304. Will backport to 2.2.


Index: copy.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/copy.py,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** copy.py	13 Jun 2003 19:26:29 -0000	1.41
--- copy.py	14 Jun 2003 07:10:06 -0000	1.42
***************
*** 121,124 ****
--- 121,125 ----
  d[types.XRangeType] = _copy_atomic
  d[types.ClassType] = _copy_atomic
+ d[types.BuiltinFunctionType] = _copy_atomic
  
  def _copy_list(x):
***************
*** 234,237 ****
--- 235,239 ----
  d[types.XRangeType] = _deepcopy_atomic
  d[types.ClassType] = _deepcopy_atomic
+ d[types.BuiltinFunctionType] = _deepcopy_atomic
  
  def _deepcopy_list(x, memo):