summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2001-09-20 12:59:37 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2001-09-20 12:59:37 (GMT)
commitaefd766eedad6d0315ef16c276ab7f30a5b3d690 (patch)
tree30a8173f01fcf7597323acadbb283313487aceb9 /Misc
parent35b0cb09d7077cfe0a7c707249630097406b5f00 (diff)
downloadcpython-aefd766eedad6d0315ef16c276ab7f30a5b3d690.zip
cpython-aefd766eedad6d0315ef16c276ab7f30a5b3d690.tar.gz
cpython-aefd766eedad6d0315ef16c276ab7f30a5b3d690.tar.bz2
Note about enhancements to unicode().
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index c22cf24..93555e6 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -3,6 +3,12 @@ What's New in Python 2.2a4?
Core
+- PyUnicode_FromEncodedObject() now works very much like
+ PyObject_Str(obj) in that it tries to use __str__/tp_str
+ on the object if the object is not a string or buffer. This
+ makes unicode() behave like str() when applied to non-string/buffer
+ objects.
+
- 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