Mark Shannon
Mark Shannon
Raising an exception for deleting fast locals sounds like it is probably the best solution. @gaogaotiantian do you think the implementation is complete enough to submit PEP 667 to the...
https://github.com/python/steering-council/issues/239
PEP 667 has been accepted https://discuss.python.org/t/pep-667-consistent-views-of-namespaces/46631/14 The test of the PEP regarding deprecation may need to be tweaked, but that doesn't impact this PR.
That looks like a malformed code object. What is `code` on the line `sys_monitoring.set_local_events(self.myid, code, local_events)`?
My guess is that Cython code is firing a `PY_START` event, then coverage is calling `sys_monitoring.set_local_events(self.myid, code, local_events)` on the fake code object created by Cython. We discussed how Cython...
I'm a bit surprised that you are getting meaningful data for Cython, as coverage's call to `sys.monitoring.set_local_events` will have no effect. I can fix `sys.monitoring.set_local_events` by getting `PyMonitoring_EnterScope` to account...
What is the `Py_SIZE()` of Cython code objects? If you set `_co_firsttraceable = 0` then instrumentation could trash whatever Cython stores in the bytecode array and could crash (or worse)...
We also need a few functions for querying and extracting the value of a Python int. We want to query its sign: ```C int PyInt_IsNegative(); int PyInt_IsPositive(); int PyInt_IsZero(); int...
`mpz_import` and `mpz_export` take 6 parameters each, and four of those are small numbers describing the layout. Having many int parameters is hard to read and error-prone. We should combine...
Feel free to close this issue, if you've decided to stick with naming style in the current C API.