[Python-checkins] CVS: python/dist/src/Lib types.py,1.17,1.18
Martin v. L?wis
loewis@users.sourceforge.net
Wed, 08 Aug 2001 09:02:03 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv15883
Modified Files:
types.py
Log Message:
Patch #449083: Use builtins to initalize the module.
Index: types.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/types.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** types.py 2001/08/02 04:15:00 1.17
--- types.py 2001/08/08 16:02:01 1.18
***************
*** 11,27 ****
ObjectType = object
! IntType = type(0)
! LongType = type(0L)
! FloatType = type(0.0)
try:
! ComplexType = type(complex(0,1))
except NameError:
pass
! StringType = type('')
! UnicodeType = type(u'')
BufferType = type(buffer(''))
! TupleType = type(())
ListType = list
DictType = DictionaryType = dictionary
--- 11,27 ----
ObjectType = object
! IntType = int
! LongType = long
! FloatType = float
try:
! ComplexType = complex
except NameError:
pass
! StringType = str
! UnicodeType = unicode
BufferType = type(buffer(''))
! TupleType = tuple
ListType = list
DictType = DictionaryType = dictionary