Skip to content

Commit

Permalink
Disable CYTHON_FAST_PYCALL on Py3.10 (0.29.x)
Browse files Browse the repository at this point in the history
It causes issues while profiling or debugging where global
variabels can end up inadvertently changed.

Fixes cython#4609
  • Loading branch information
da-woods committed Apr 14, 2022
1 parent 569a063 commit 0faddb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cython/Utility/ModuleSetupCode.c
Expand Up @@ -192,7 +192,8 @@
#ifndef CYTHON_FAST_PYCALL
// Python 3.11 deleted localplus argument from frame object, which is used in our
// fast_pycall code
#define CYTHON_FAST_PYCALL (PY_VERSION_HEX < 0x030B00A1)
// On Python 3.10 is causes issues when used while profiling
#define CYTHON_FAST_PYCALL (PY_VERSION_HEX < 0x030A0000)
#endif
#ifndef CYTHON_PEP489_MULTI_PHASE_INIT
#define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
Expand Down

0 comments on commit 0faddb5

Please sign in to comment.