Author eric.smith
Recipients Rhamphoryncus, amaury.forgeotdarc, belopolsky, eric.smith, ezio.melotti, lemburg, loewis, pitrou, vstinner
Date 2010-11-27.00:45:14
SpamBayes Score 2.01787e-05
Marked as misclassified No
Message-id <1290818716.17.0.349711155502.issue10542@psf.upfronthosting.co.za>
In-reply-to
Content
I'd need access to this without having to build a PyUnicodeObject, for efficiency. But it sounds like it does have the basic functionality I need.

For my use I'd really need it to take the result of Py_UNICODE_NEXT. Something like:
Py_ssize_t
Py_UNICODE_NUM_NEEDED(Py_UCS4 c)
and it would always return 1 or 2. Always 1 for a wide build, and for a narrow build 1 if c is in the BMP else 2. Choose a better name, of course.
History
Date User Action Args
2010-11-27 00:45:16eric.smithsetrecipients: + eric.smith, lemburg, loewis, amaury.forgeotdarc, belopolsky, Rhamphoryncus, pitrou, vstinner, ezio.melotti
2010-11-27 00:45:16eric.smithsetmessageid: <1290818716.17.0.349711155502.issue10542@psf.upfronthosting.co.za>
2010-11-27 00:45:14eric.smithlinkissue10542 messages
2010-11-27 00:45:14eric.smithcreate