10000 gh-91102: Port 8-argument _warnings.warn_explicit to Argument Clinic by arhadthedev · Pull Request #92891 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-91102: Port 8-argument _warnings.warn_explicit to Argument Clinic #92891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 20, 2022
Prev Previous commit
Remove sales pitch from the NEWS entry
  • Loading branch information
arhadthedev authored Jul 7, 2022
commit d5528cb22aae668d3640fe28c98d14f5430bd798
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
8-argument :meth:`_warnings.warn_explicit` is ported to Argument Clinic.
Benefits:

1. :c:data:`METH_VARARGS` calling convention is replaced with
a little faster :c:data:`METH_FASTCALL` (no extra tuple creation)
2. :c:func:`PyArg_ParseTupleAndKeywords` call is replaced with
:c:func:`_PyArg_UnpackKeywords` and a tailored parser generated specially
for the ported function.
:meth:`_warnings.warn_explicit` is ported to Argument Clinic.
0