[New-bugs-announce] [issue28511] Use the "U" format for parsing Unicode object arg in PyArg_Parse*

Serhiy Storchaka report at bugs.python.org
Sat Oct 22 16:53:54 EDT 2016


New submission from Serhiy Storchaka:

Proposed patch uses the "U" format in PyArg_Parse* functions instead of the "O!" format with &PyUnicode_Type argument. This makes code cleaner, faster, and allows to remove additional PyUnicode_READY checks.

The patch is inspired by the patch of Xiang Zhang (issue28504).

----------
components: Interpreter Core
files: parse_unicode_arg.patch
keywords: patch
messages: 279219
nosy: serhiy.storchaka, xiang.zhang
priority: normal
severity: normal
stage: patch review
status: open
title: Use the "U" format for parsing Unicode object arg in PyArg_Parse*
type: enhancement
versions: Python 3.7
Added file: http://bugs.python.org/file45192/parse_unicode_arg.patch

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


More information about the New-bugs-announce mailing list