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 <rep...@bugs.python.org> <http://bugs.python.org/issue29190> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com