New-C-API-for-Python icon indicating copy to clipboard operation
New-C-API-for-Python copied to clipboard

My initial thoughts

Open encukou opened this issue 1 year ago • 7 comments

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.

encukou avatar Aug 22 '22 08:08 encukou