[Python-Dev] Difference between PyUnicode_IS_ASCII and PyUnicode_IS_COMPACT_ASCII ?

Antoine Pitrou solipsis at pitrou.net
Tue Dec 20 09:54:40 CET 2011


Hello,
The include file (unicodeobject.h) seems to imply that some pure ASCII
strings can be non-compact, but I don't understand how that can happen.
Besides, the following comment also seems wrong:
 - compact:
 * structure = PyCompactUnicodeObject
 * test: PyUnicode_IS_ASCII(op) && !PyUnicode_IS_COMPACT(op)
Regards
Antoine.


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /