[Python-checkins] CVS: python/dist/src/Lib types.py,1.14.10.3,1.14.10.4

Guido van Rossum gvanrossum@users.sourceforge.net
Thu, 07 Jun 2001 12:03:11 -0700


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

Modified Files:
      Tag: descr-branch
	types.py 
Log Message:
Use type, object, list, dictionary built-ins.


Index: types.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/types.py,v
retrieving revision 1.14.10.3
retrieving revision 1.14.10.4
diff -C2 -r1.14.10.3 -r1.14.10.4
*** types.py	2001/06/06 15:41:02	1.14.10.3
--- types.py	2001/06/07 19:03:08	1.14.10.4
***************
*** 7,12 ****
  
  NoneType = type(None)
! TypeType = type(NoneType)
! ObjectType = NoneType.__bases__[0]
  
  IntType = type(0)
--- 7,12 ----
  
  NoneType = type(None)
! TypeType = type
! ObjectType = object
  
  IntType = type(0)
***************
*** 23,28 ****
  
  TupleType = type(())
! ListType = type([])
! DictType = DictionaryType = type({})
  
  def _f(): pass
--- 23,28 ----
  
  TupleType = type(())
! ListType = list
! DictType = DictionaryType = dictionary
  
  def _f(): pass