[issue29190] Avoid possible errors in comparing strings

Serhiy Storchaka report at bugs.python.org
Sat Jan 7 03:27:49 EST 2017


Serhiy Storchaka added the comment:

An alternative patch checks the result of PyUnicode_Compare() (as Xiang suggested) instead of checking the value before calling PyUnicode_Compare(). Stephan, what way do you prefer?

----------
nosy: +facundobatista, mark.dickinson, rhettinger, skrah
Added file: http://bugs.python.org/file46186/unicode_compare_2.patch

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


More information about the Python-bugs-list mailing list