]> granicus.if.org Git - python/commitdiff
Note about enhancements to unicode().
authorMarc-André Lemburg <mal@egenix.com>
Thu, 20 Sep 2001 12:59:37 +0000 (12:59 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Thu, 20 Sep 2001 12:59:37 +0000 (12:59 +0000)
Misc/NEWS

index c22cf245649d1fc42652a65754678dbad1d057dc..93555e6fada7761523a0259c27aae2c85507952a 100644 (file)
--- 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