New submission from Xiang Zhang: Some unicode APIs like PyUnicode_Contains get a short path comparing kinds. But this get a problem cannot apply to ascii and latin1. PyUnicode_MAX_CHAR_VALUE could be used instead to make the short path also apply to ascii and latin1. This skill is already used in PyUnicode_Replace.
---------- components: Interpreter Core files: short-path.patch keywords: patch messages: 282982 nosy: serhiy.storchaka, xiang.zhang priority: normal severity: normal stage: patch review status: open title: Use PyUnicode_MAX_CHAR_VALUE instead of PyUnicode_KIND in some API's short path type: enhancement versions: Python 3.7 Added file: http://bugs.python.org/file45856/short-path.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28943> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com