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 commented on 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…