[Python-checkins] CVS: python/dist/src/Misc NEWS,1.99,1.100
M.-A. Lemburg
lemburg@users.sourceforge.net
Wed, 17 Jan 2001 09:09:55 -0800
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv21826/Misc
Modified Files:
NEWS
Log Message:
This patch adds a new builtin unistr() which behaves like str()
except that it always returns Unicode objects.
A new C API PyObject_Unicode() is also provided.
This closes patch #101664.
Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.99
retrieving revision 1.100
diff -C2 -r1.99 -r1.100
*** NEWS 2001/01/17 15:54:45 1.99
--- NEWS 2001/01/17 17:09:53 1.100
***************
*** 4,7 ****
--- 4,15 ----
Core language, builtins, and interpreter
+ - There is a new Unicode companion to the builtin str() function
+ called unistr(). Like str(), it calls either the tp_str slot of
+ objects or the "__str__" method and converts the returned value
+ to an Unicode object (in case this is necessary).
+
+ The unistr() is complemented by a new PyObject_Unicode() C API
+ which behaves in the same way.
+
- The comparison operators support "rich comparison overloading" (PEP
207). C extension types can provide a rich comparison function in