Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-108494: Argument Clinic: Document how to generate code that uses the limited C API#108584
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
vstinner commented Aug 28, 2023 • edited by github-actions bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by github-actions bot
Uh oh!
There was an error while loading. Please reload this page.
vstinner commented Aug 28, 2023
I converted locally multiple C extensions to the limited C API. Since the limited C API is now automatically enabled by "#define Py_LIMITED_API", in fact, the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
serhiy-storchaka commented Aug 29, 2023
Please do not remove the |
erlend-aasland commented Aug 29, 2023
The |
AlexWaygood commented Aug 29, 2023
I don't have a strong opinion either way. I don't see any harm in keeping it, if Serhiy prefers to |
erlend-aasland commented Aug 29, 2023
Yeah, of course you can have both; Argument Clinic can try to autodetect it, and you can override it using the CLI. |
5222084 to 96502dfComparevstinner commented Aug 29, 2023
I updated the PR:
|
Uh oh!
There was an error while loading. Please reload this page.
vstinner commented Aug 29, 2023
If you need it, sure, I can keep it. It's just that for my needs, I didn't use it anymore. I was easier to remove it rather document it :-D |
vstinner commented Aug 29, 2023
I'm not sure that this PR title. Usage of the Limited C API is already determined automatically in the main branch, I did it in a previous change. This PR is more about documenting my recent AC work. |
serhiy-storchaka commented Aug 29, 2023
You could left it undocumented if only I use it. 😄 |
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
vstinner commented Aug 29, 2023
I prefer to document it. Maybe I can add a note: "option reserved to Serhiy's private usage" 🤣 |
AlexWaygood commented Aug 29, 2023
I changed it again ;) |
erlend-aasland commented Aug 29, 2023
Sure, without the code changes, and only the documentation change remaining, it makes sense to title it as a documentation change ;) |
Uh oh!
There was an error while loading. Please reload this page.
Misc/NEWS.d/next/Tools-Demos/2023-08-25-22-40-12.gh-issue-108494.4RbDdu.rst Outdated Show resolvedHide resolved
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
…94.4RbDdu.rst Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
vstinner commented Aug 30, 2023
Merged, thanks. |
* main: pythongh-108520: Fix bad fork detection in nested multiprocessing use case (python#108568) pythongh-108590: Revert pythongh-108657 (commit 400a1ce) (python#108686) pythongh-108494: Argument Clinic: Document how to generate code that uses the limited C API (python#108584) Document Python build requirements (python#108646) pythongh-101100: Fix Sphinx warnings in the Logging Cookbook (python#108678) Fix typo in multiprocessing docs (python#108666) pythongh-108669: unittest: Fix documentation for TestResult.collectedDurations (python#108670) pythongh-108590: Fix sqlite3.iterdump for invalid Unicode in TEXT columns (python#108657) Revert "pythongh-103224: Use the realpath of the Python executable in `test_venv` (pythonGH-103243)" (pythonGH-108667) pythongh-106320: Remove private _Py_ForgetReference() (python#108664) Mention Ellipsis pickling in the docs (python#103660) Revert "Use non alternate name for Kyiv (pythonGH-108533)" (pythonGH-108649) pythongh-108278: Deprecate passing the first param of sqlite3.Connection callback APIs by keyword (python#108632) pythongh-108455: peg_generator: install two stubs packages before running mypy (python#108637) pythongh-107801: Improve the accuracy of io.IOBase.seek docs (python#108268)
… that uses the limited C API (python/cpython#108584) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
… that uses the limited C API (python/cpython#108584) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Remove also the --limited command line option. Now the limited C API is only used if the source code contains "#define Py_LIMITED_API".
📚 Documentation preview 📚: https://cpython-previews--108584.org.readthedocs.build/