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 loewis
Recipients alexandre.vassalotti, bhy, lemburg, loewis
Date 2008-05-23.15:47:35
SpamBayes Score 0.0061410214
Marked as misclassified No
Message-id <1211557657.36.0.320365120438.issue2799@psf.upfronthosting.co.za>
In-reply-to
Content
I don't agree that PyUnicode_AsString is useless. There are many cases
where you don't need the length of the string, e.g. when relying on NULL
termination when passing stuff to some C library.

I suggest to close this report as "works for me".

As for the unrelated issue of PyUnicode_AsStringAndSize: AFAICT,
PyString_AsStringAndSize doesn't support Unicode objects (and IMO
shouldn't, either). 

Making PyUnicode_AsStringAndSize and PyString_AsStringAndSize similar is
probably a good idea.
History
Date User Action Args
2008-05-23 15:47:37loewissetspambayes_score: 0.00614102 -> 0.0061410214
recipients: + loewis, lemburg, alexandre.vassalotti, bhy
2008-05-23 15:47:37loewissetspambayes_score: 0.00614102 -> 0.00614102
messageid: <1211557657.36.0.320365120438.issue2799@psf.upfronthosting.co.za>
2008-05-23 15:47:36loewislinkissue2799 messages
2008-05-23 15:47:35loewiscreate