types.CodeType doesnt exist?

gods1child alankarmisra at hotmail.com
Fri Jun 29 15:13:47 CEST 2001


Platform: Win2000, Python 2.0

I was looking at the copy.py source and found this snippet
-----------------------------------------------------
d = {}
d[types.UnicodeType] = _copy_atomic
try:
	d[types.CodeType] = _copy_atomic
except AttributeError:
	pass
d[types.TypeType] = _copy_atomic
-----------------------------------------------------
under what circumstances will the types module not have attribute CodeType?



More information about the Python-list mailing list