types.CodeType doesnt exist?

gods1child alankarmisra at hotmail.com
Fri Jun 29 09:13:47 EDT 2001

Platform: Win2000, Python 2.0

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

More information about the Python-list mailing list