[Python-checkins] CVS: python/dist/src/Misc NEWS,1.247,1.248
M.-A. Lemburg
lemburg@users.sourceforge.net
Thu, 20 Sep 2001 05:59:39 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv13939/Misc
Modified Files:
NEWS
Log Message:
Note about enhancements to unicode().
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.247
retrieving revision 1.248
diff -C2 -d -r1.247 -r1.248
*** NEWS 2001/09/20 05:30:24 1.247
--- NEWS 2001/09/20 12:59:37 1.248
***************
*** 4,7 ****
--- 4,13 ----
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