[issue35194] A typo in a constant in cp932 codec
Alexey Izbyshev
report at bugs.python.org
Fri Nov 9 08:58:03 EST 2018
Alexey Izbyshev <izbyshev at ispras.ru> added the comment:
> Maybe test "Py_CHARMASK(c) == (c)"?
This is a good alternative if multiple evaluation of 'c' is acceptable. Though I'd prefer '(unsigned char)c == c' for this style of fixing because it is bit closer to what happens in '((*outbuf)[i]) = c'.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35194>
_______________________________________
More information about the Python-bugs-list
mailing list