Additional test and documentation for the unicode() changes.

This patch should also be applied to the 2.2b1 trunk.
This commit is contained in:
Marc-André Lemburg 2001-10-19 12:02:29 +00:00
parent f6fb171c9d
commit b5507ecd3c
5 changed files with 93 additions and 37 deletions

View file

@ -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 !