[issue29190] Avoid possible errors in comparing strings

Xiang Zhang report at bugs.python.org
Sat Jan 7 04:21:58 EST 2017


Xiang Zhang added the comment:

Paste my point here:

I prefer checking the result PyUnicode_Compare to see it's a success or failure.
getrandom doesn't use any lower level unicode operations so it doesn't get a
responsibility to ready the unicode.

----------
nosy: +xiang.zhang

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


More information about the Python-bugs-list mailing list