[Python-Dev] [Python-checkins] cpython: Document requierements of Unicode kinds (original) (raw)

Victor Stinner victor.stinner at haypocalc.com
Thu Oct 6 01:53:19 CEST 2011


Le mercredi 5 octobre 2011 21:25:22, Terry Reedy a écrit :

> + - PyUnicode1BYTEKIND (1): > + > + * character type = PyUCS1 (8 bits, unsigned) > + * if ascii is 1, at least one character must be in range > + U+80-U+FF, otherwise all characters must be in range > U+00-U+7F

Given that 1==True, this looks backwards.

I changed the doc to:

PyUnicode_1BYTE_KIND (1):

Is it better?

> + - PyUnicode2BYTEKIND (2): > + > + * character type = PyUCS2 (16 bits, unsigned) > + * at least one character must be in range U+0100-U+1FFFF

/U+1FFFF/U+FFFF/ ?

Oops, correct. I fixed the doc, thanks for the review.

Victor



More information about the Python-Dev mailing list