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
PyArg_ParseTupleAndKeywords supports required keyword only arguments #74366
I opened a pr to remove a line in the docs about $ needing to follow | in PyArg_ParseTupleAndKeywords. In practice, you can just use a $ to create required keyword arguments which intuitively makes sense. I was told this should raise a SystemError; however, you can create required keyword only arguments in Python so I am not sure why we would want to fail when this is done with PyArg_ParseTupleAndKeywords.
Activity
llllllllll commentedon Apr 27, 2017
I opened a pr to remove a line in the docs about $ needing to follow | in PyArg_ParseTupleAndKeywords. In practice, you can just use a $ to create required keyword arguments which intuitively makes sense. I was told this should raise a SystemError; however, you can create required keyword only arguments in Python so I am not sure why we would want to fail when this is done with PyArg_ParseTupleAndKeywords.
Merge branch 'main' into pythongh-74366-kwonly-doc
gh-74366: Fix the documentation of "$" in PyArg_ParseTupleAndKeywords…
[3.13] gh-74366: Fix the documentation of "$" in PyArg_ParseTupleAndK…
[3.14] gh-74366: Fix the documentation of "$" in PyArg_ParseTupleAndK…
[3.15] gh-74366: Fix the documentation of "$" in PyArg_ParseTupleAndK…
pythongh-74366: Fix the documentation of "$" in PyArg_ParseTupleAndKe…