mirror of
https://github.com/python/cpython
synced 2026-09-28 07:38:20 +03:00
Updating NEWS to match the current state of affairs.
This commit is contained in:
parent
b0e754d488
commit
ebb195b270
1 changed files with 4 additions and 7 deletions
11
Misc/NEWS
11
Misc/NEWS
|
|
@ -3,13 +3,10 @@ What's New in Python 2.1 alpha 1?
|
||||||
|
|
||||||
Core language, builtins, and interpreter
|
Core language, builtins, and interpreter
|
||||||
|
|
||||||
- There is a new Unicode companion to the builtin str() function
|
- There is a new Unicode companion to the PyObject_Str() API
|
||||||
called unistr(). Like str(), it calls either the tp_str slot of
|
called PyObject_Unicode(). It behaves in the same way as the
|
||||||
objects or the "__str__" method and converts the returned value
|
former, but assures that the returned value is an Unicode object
|
||||||
to an Unicode object (in case this is necessary).
|
(applying the usual coercion if 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
|
- The comparison operators support "rich comparison overloading" (PEP
|
||||||
207). C extension types can provide a rich comparison function in
|
207). C extension types can provide a rich comparison function in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue