You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Argument Clinic: the Py_buffer converter only accepts None as the default value #144545
The Py_buffer converter only accepts None as the default value, even if None is not valid value for Py_buffer. As result, you need to use tricks for optional Py_buffer parameters:
Py_buffer(py_default="b''") = None
or
Py_buffer(py_default="<unrepresentable>") = None
and then check if arg->buf is NULL.
It should support NULL (for "unrepresentable") and arbitrary bytes literals (or at least b'') as default values.
Activity
pythongh-144545: Improve handling of default values in Argument Clinic
gh-144545: Improve handling of default values in Argument Clinic (GH-…
[3.14] pythongh-144545: Improve handling of default values in Argumen…
[3.14] gh-144545: Improve handling of default values in Argument Clin…
pythongh-144545: Improve handling of default values in Argument Clinic (