[issue12751] Use macros for surrogates in unicodeobject.c

Antoine Pitrou report at bugs.python.org
Mon Aug 15 14:11:28 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> HIGH_SURROGATE and LOW_SURROGATE require that their ordinal argument
> has been preproceed to fit in [0; 0xFFFF]. I added this requirement in
> the comment of these macros.

The macros should preprocess the argument themselves. It will make the
code even simpler.
Otherwise +1.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12751>
_______________________________________


More information about the Python-bugs-list mailing list