[Python-ideas] Add "has_surrogates" flags to string object
M.-A. Lemburg
mal at egenix.com
Tue Oct 8 18:28:51 CEST 2013
On 08.10.2013 18:16, Serhiy Storchaka wrote:
> 08.10.13 14:58, M.-A. Lemburg написав(ла):
>> I guess you could use one bit from the kind structure
>> for that:
>
> The kind of string should be equal to the size of character unit. This assumption is used in a lot
> of code.
Ok, then just add the flag to the end of the list... we'd still
have at least 7 bits left on most platforms, IICC.
PS: I guess this use of kind should be documented clearly somewhere.
The unicodeobject.h file only hints at this and for
PyUnicode_WCHAR_KIND this interpretation cannot be used.
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Oct 08 2013)
>>> Python Projects, Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope/Plone.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
2013-10-14: PyCon DE 2013, Cologne, Germany ... 6 days to go
::::: Try our mxODBC.Connect Python Database Interface for free ! ::::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
More information about the Python-ideas
mailing list