[New-bugs-announce] [issue43565] PyUnicode_KIND macro does not has specified return type

Max Bachmann report at bugs.python.org
Fri Mar 19 21:10:53 EDT 2021


New submission from Max Bachmann <kontakt at maxbachmann.de>:

The documentation stated, that the PyUnicode_KIND macro has the following interface:
- int PyUnicode_KIND(PyObject *o)
However it actually returns a value of the underlying type of the PyUnicode_Kind enum. This could be e.g. an unsigned int as well.

----------
components: C API
messages: 389133
nosy: maxbachmann
priority: normal
severity: normal
status: open
title: PyUnicode_KIND macro does not has specified return type
type: behavior

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


More information about the New-bugs-announce mailing list