
Jan. 11, 2016
6:24 p.m.
On 2016-01-11 7:47 PM, Nick Coghlan wrote:
Perhaps the specialisation call should also move to being a pure C API, only exposed through _testcapi for testing purposes?
That would move both this and the dict versioning PEP into the same territory as the dynamic memory allocator PEP: low level C plumbing that enables interesting CPython specific extensions (like tracemalloc, in the dynamic allocator case) without committing other implementations to emulating features that aren't useful to them in any way.
+1. Exposing 'FunctionType.specialize()'-like APIs to Python level feels very wrong to me. Yury