[Python-checkins] CVS: python/dist/src/Misc NEWS,1.241,1.242

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


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

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


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.241
retrieving revision 1.242
diff -C2 -d -r1.241 -r1.242
*** NEWS	2001/09/12 23:40:29	1.241
--- NEWS	2001/09/13 05:38:55	1.242
***************
*** 4,7 ****
--- 4,12 ----
  Core
  
+ - The builtin file type can be subclassed now.  In the usual pattern,
+   "file" is the name of the builtin type, and file() is a new builtin
+   constructor, with the same signature as the builtin open() function.
+   file() is now the preferred way to open a file.
+ 
  - In 2.2a3, hash() applied to an instance of a subclass of str or unicode
    always returned 0.  This has been repaired.