Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-114626: add PyCFunctionFast and PyCFunctionFastWithKeywords#114627
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 ourterms of service andprivacy 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
ghost commentedJan 26, 2024 • edited by ghost
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by ghost
Uh oh!
There was an error while loading.Please reload this page.
encukou left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Makes sense to me.
The type names aren't really needed in C code -- you typically just define a function with the given signature -- so they were left out.
The names should be added toMisc/stable_abi.toml (see[typedef.PyCFunction] there.)
This is a limited API; let's play by the book (well, the book we want to write) and let the C-API WG know. (edit: opened issue atcapi-workgroup/decisions#11 )
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
davidhewitt commentedFeb 13, 2024
@encukou thanks for tidying this up, sorry it was just off the top of my to-do list and I hadn't quite got around to it yet 😞 |
encukou commentedFeb 15, 2024
No problem! Thanks for bringing it up and starting. |
Python 3.13a4 adds a public PyCFunctionFastWithKeywords type.*python/cpython@9e3729b*python/cpython#114627*capi-workgroup/decisions#11Python 3.13a1 removed the private _PyCFunctionFastWithKeywords type.
Python 3.13a4 adds a public PyCFunctionFastWithKeywords type andremoves the private _PyCFunctionFastWithKeywords type:*python/cpython@9e3729b*python/cpython#114627*capi-workgroup/decisions#11
vstinner commentedFeb 16, 2024
FYI PR to update Cython:cython/cython#6003 |
Python 3.13a4 adds a public PyCFunctionFastWithKeywords andPyCFunctionFast types and removes the private_PyCFunctionFastWithKeywords and _PyCFunctionFast types:*python/cpython@9e3729b*python/cpython#114627*capi-workgroup/decisions#11
…3a4 (GH-6003)Python 3.13a4 adds a public PyCFunctionFastWithKeywords andPyCFunctionFast types and removes the private_PyCFunctionFastWithKeywords and _PyCFunctionFast types:*python/cpython@9e3729b*python/cpython#114627*capi-workgroup/decisions#11
vstinner commentedFeb 16, 2024
Wait, the old name is |
vstinner commentedFeb 16, 2024
I wrotecython/cython@e9b08d3 to make Cython compatibility with Python 3.13 alpha4. |
vstinner commentedFeb 16, 2024
I wrote PR#115561 to fix this typo. |
…3a4 (GH-6003)Python 3.13a4 adds a public PyCFunctionFastWithKeywords andPyCFunctionFast types and removes the private_PyCFunctionFastWithKeywords and _PyCFunctionFast types:*python/cpython@9e3729b*python/cpython#114627*capi-workgroup/decisions#11
Uh oh!
There was an error while loading.Please reload this page.
Closes#114626
I basically did a find-and-replace, plus added typedefs to keep
_PyCFunctionFastand_PyCFunctionFastWithKeywordsaround for backwards compatibility._PyCFunctionFastand_PyCFunctionFastWithKeywords#114626📚 Documentation preview 📚:https://cpython-previews--114627.org.readthedocs.build/