[New-bugs-announce] [issue28943] Use PyUnicode_MAX_CHAR_VALUE instead of PyUnicode_KIND in some API's short path

Xiang Zhang report at bugs.python.org
Mon Dec 12 06:22:10 EST 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue28943>
_______________________________________


More information about the New-bugs-announce mailing list