New-C-API-for-Python
New-C-API-for-Python copied to clipboard
My initial thoughts
I don't know how discussions are supposed to work here, so I'm sending these as an issue:
- This sounds like a Python 2→3 transition, but for the C API. I doubt the existing extension ecosystem can handle the timeline.
- The end goal & rules are very similar to my draft. Of course with a “revolution rather than evolution” approach you can be much stricter & faster, but, this is essentially where I'd like Limited API to end up :)
- For interop with other languages I suggest avoiding some C features: enums, macros, bit fields, to really make this a good common basis for all languages.
- I'd be interested in seeing how type creation would work -- a builder pattern?
- Naming it “new C API” is confusing, at least Victor used the same name for something slightly different.