mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Additional test and documentation for the unicode() changes.
This patch should also be applied to the 2.2b1 trunk.
This commit is contained in:
parent
f6fb171c9d
commit
b5507ecd3c
5 changed files with 93 additions and 37 deletions
|
@ -426,8 +426,9 @@ PyObject *PyUnicode_FromEncodedObject(register PyObject *obj,
|
|||
|
||||
#if 0
|
||||
/* For b/w compatibility we also accept Unicode objects provided
|
||||
that no encodings is given and then redirect to PyObject_Unicode()
|
||||
which then applies the additional logic for Unicode subclasses.
|
||||
that no encodings is given and then redirect to
|
||||
PyObject_Unicode() which then applies the additional logic for
|
||||
Unicode subclasses.
|
||||
|
||||
NOTE: This API should really only be used for object which
|
||||
represent *encoded* Unicode !
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue