[Python-checkins] CVS: python/dist/src/Lib copy.py,1.15,1.16

M.-A. Lemburg python-dev@python.org
Thu, 7 Sep 2000 04:00:06 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv30621/Lib

Modified Files:
	copy.py 
Log Message:
Added Unicode objects to the copy mechanism. Since these are immutable,
they are copied as atomic types.

Index: copy.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/copy.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** copy.py	2000/08/17 05:06:49	1.15
--- copy.py	2000/09/07 11:00:03	1.16
***************
*** 85,88 ****
--- 85,89 ----
  d[types.FloatType] = _copy_atomic
  d[types.StringType] = _copy_atomic
+ d[types.UnicodeType] = _copy_atomic
  try:
  	d[types.CodeType] = _copy_atomic
***************
*** 161,164 ****
--- 162,166 ----
  d[types.FloatType] = _deepcopy_atomic
  d[types.StringType] = _deepcopy_atomic
+ d[types.UnicodeType] = _deepcopy_atomic
  d[types.CodeType] = _deepcopy_atomic
  d[types.TypeType] = _deepcopy_atomic