-
-
Notifications
You must be signed in to change notification settings - Fork 33k
Closed as not planned
Closed as not planned
Copy link
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtopic-C-APItype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
In gh-135763 / gh-138150 the Argument Clinic converter for Py_ssize_t
was extended to optionally validate for values to be non-negative / >=0
.
In principle, it would now also make sense to offer similar behavior/features for PyArg_Parse
In principle, it would now also make sense to offer similar behavior/features for PyArg_Parse*
.
As n
is the format unit for "signed" Py_ssize_t
values, I propose N
as the "unsigned" format unit for Py_ssize_t
values.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
Linked PRs
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtopic-C-APItype-featureA feature request or enhancementA feature request or enhancement