summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-09-19 13:47:32 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-09-19 13:47:32 (GMT)
commit2777c021fc3bf6d2e33c58b774f8cbeb03ebe78c (patch)
tree149d8bf2d901aa695f357e2d52e3ce20e13add46 /Misc
parent5b5e0b9bf9951ebcafcf09354d770905293a32d5 (diff)
downloadcpython-2777c021fc3bf6d2e33c58b774f8cbeb03ebe78c.zip
cpython-2777c021fc3bf6d2e33c58b774f8cbeb03ebe78c.tar.gz
cpython-2777c021fc3bf6d2e33c58b774f8cbeb03ebe78c.tar.bz2
Patch #462849: Pass Unicode objects to file's .write method.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index f103705..9ea0ac2 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -3,6 +3,11 @@ What's New in Python 2.2a4?
Core
+- PyFile_WriteObject now passes Unicode object to the file's write
+ method. As a result, all file-like object which may be the target
+ of a print statement must support Unicode objects, i.e. they must
+ at least convert them into ASCII strings.
+
- 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.