[New-bugs-announce] [issue35489] Argument Clinic should use "const Py_UNICODE *" for the Py_UNICODE converter

Serhiy Storchaka report at bugs.python.org
Fri Dec 14 03:53:53 EST 2018


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

Format units "Z" and "Z#" in PyArg_Parse* return a pointer to immutable internal data. Therefor the result of the Py_UNICODE converter in Argument Clinic should has type "const Py_UNICODE *".

This would help to catch the bug reported in issue31446.

----------
assignee: serhiy.storchaka
components: Argument Clinic
messages: 331787
nosy: larry, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Argument Clinic should use "const Py_UNICODE *" for the Py_UNICODE converter
type: behavior
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35489>
_______________________________________


More information about the New-bugs-announce mailing list