This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexandre.vassalotti
Recipients alexandre.vassalotti, bhy, lemburg, loewis
Date 2008-06-05.19:14:38
SpamBayes Score 0.04441809
Marked as misclassified No
Message-id <1212693280.68.0.603039245244.issue2799@psf.upfronthosting.co.za>
In-reply-to
Content
I now think the proposed changes wouldn't be bad thing, after all. I
have been bitten myself by the confusing naming of the Unicode API. So,
there is definitely a potential for errors. 

The main problem with PyUnicode_AsString(), as Marc-André pointed out,
is it doesn't follow the API signature of the rest of the Unicode API:

char *PyUnicode_AsString(PyObject *unicode);
PyObject *PyUnicode_AsUTF8String(PyObject *unicode);
PyObject *PyUnicode_AsASCIIString(PyObject *unicode);

On the other hand, I do like the simple API of PyUnicode_AsString. Also,
I have to admit that the apparent similarity between the PyString and
the PyUnicode API helped me to port my code to Py3K when I first started
working on Python core. So, pragmatism might beat purity here.
History
Date User Action Args
2008-06-05 19:14:41alexandre.vassalottisetspambayes_score: 0.0444181 -> 0.04441809
recipients: + alexandre.vassalotti, lemburg, loewis, bhy
2008-06-05 19:14:40alexandre.vassalottisetspambayes_score: 0.0444181 -> 0.0444181
messageid: <1212693280.68.0.603039245244.issue2799@psf.upfronthosting.co.za>
2008-06-05 19:14:39alexandre.vassalottilinkissue2799 messages
2008-06-05 19:14:39alexandre.vassalotticreate