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

Tim Peters tim_one@users.sourceforge.net
Wed, 12 Sep 2001 22:38:57 -0700


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

Modified Files:
	types.py 
Log Message:
SF bug [#460467] file objects should be subclassable.
Preliminary support.  What's here works, but needs fine-tuning.


Index: types.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/types.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** types.py	2001/08/17 18:39:24	1.20
--- types.py	2001/09/13 05:38:55	1.21
***************
*** 58,67 ****
  
  ModuleType = type(sys)
! 
! try:
!     FileType = type(sys.__stdin__)
! except AttributeError:
!     # Not available in restricted mode
!     pass
  XRangeType = type(xrange(0))
  
--- 58,62 ----
  
  ModuleType = type(sys)
! FileType = file
  XRangeType = type(xrange(0))