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
Improve the readability and maintainability of test_capi using the AC #104469
Currently, most of test_capi modules do not use the Argument Clinic tool.
As a result, we manually implement docstrings containing explanations for the test codes and handle parameter parsing manually: PyArg_ParseTuple .
To maintain code consistency in test_capi, I suggest using the Argument Clinic tool.
While some might criticize this as code churn, I believe it is necessary for maintaining consistent test code writing practices. I will attach a sample PR to illustrate how it can help improve the understanding of the test code. I hope this will help clarify the rationale behind it.
changed the title [-]Improve the readability and maintainability of test_capi using the Argument Clinic tool[/-][+]Improve the readability and maintainability of test_capi using the AC[/+]on May 14, 2023
Activity
pythongh-104469 Convert _testcapi/flaot.c to use AC
[-]Improve the readability and maintainability of test_capi using the Argument Clinic tool[/-][+]Improve the readability and maintainability of test_capi using the AC[/+]pythongh-104469 Convert _testcapi/flaot.c to use AC
sunmy2019 commentedon May 14, 2023
LGTM
gh-104469 Convert _testcapi/float.c to use AC (gh-104470)
corona10 commentedon May 15, 2023
I am working on test_exceptions.
pythongh-104469 Convert _testcapi/exceptions to use AC
sobolevn commentedon May 15, 2023
I am working on
_testcapi/watchers.c👍pythongh-104469: Convert _testcapi/watchers.c to use AC
erlend-aasland commentedon May 15, 2023
Let's establish some guidelines:
asfeature to override the C namecc. @sobolevn @corona10
sobolevn commentedon May 15, 2023
Agreed, updated my PR.
corona10 commentedon May 15, 2023
+1, Super great
Update README.txt? (I prefer to update it to README.md either)
or publish it to https://devguide.python.org/developer-workflow/c-api/#c-api here?
Merge branch 'main' into supermon
23 remaining items
Revert "pythongh-104469 : Convert _testcapi/vectorcall_limited.c to u…
pythongh-104469 Fix limited C API issue for WASI
pythongh-104469 Fix limited C API issue for WASI
Revert "gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC … (
Revert "pythongh-104469 : Convert _testcapi/vectorcall_limited.c to u…
pythongh-104469: Disallow using Py_LIMITED_API with Py_BUILD_CORE
pythongh-104469: Disallow using Py_LIMITED_API with Py_BUILD_CORE
pythongh-104469: Convert _testcapi/vectorcall_limited.c to use AC
pythongh-104469: Disallow using Py_LIMITED_API with Py_BUILD_CORE
gh-104469: Disallow using Py_LIMITED_API with Py_BUILD_CORE (#109690)
gh-104469: Convert _testcapi/vectorcall_limited.c to use AC (#109691)
pythongh-104469: Disallow using Py_LIMITED_API with Py_BUILD_CORE (py…
pythongh-104469: Convert _testcapi/vectorcall_limited.c to use AC (py…
pythongh-104469: Disallow using Py_LIMITED_API with Py_BUILD_CORE (py…
pythongh-104469: Convert _testcapi/vectorcall_limited.c to use AC (py…