diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-13 05:38:56 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-13 05:38:56 (GMT) |
commit | 59c9a645e2f44b0b546225678d704787d9eae35d (patch) | |
tree | 56179a5250e747d330a93b4f5fe66eeb65859329 /Misc | |
parent | 93a696f49171c0593b23817bbf56ab44269a9587 (diff) | |
download | cpython-59c9a645e2f44b0b546225678d704787d9eae35d.zip cpython-59c9a645e2f44b0b546225678d704787d9eae35d.tar.gz cpython-59c9a645e2f44b0b546225678d704787d9eae35d.tar.bz2 |
SF bug [#460467] file objects should be subclassable.
Preliminary support. What's here works, but needs fine-tuning.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3,6 +3,11 @@ What's New in Python 2.2a4? 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. |