diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-04-19 15:22:48 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-04-19 15:22:48 +0200 |
commit | ff15b2f7fe298b93e25903ef5d11244a21720378 (patch) | |
tree | dfe65b0101922c3a3c92df230400a8f15bc07493 | |
parent | 5c85653f495aac2884a442baae7d13c0fad5917f (diff) | |
download | cython-ff15b2f7fe298b93e25903ef5d11244a21720378.tar.gz |
fix sharing of Generator type across modules
-rw-r--r-- | CHANGES.rst | 2 | ||||
-rw-r--r-- | Cython/Utility/Generator.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index ff30f9a56..791bd5215 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,6 +14,8 @@ Bugs fixed * Tracing exception handling code could enter the trace function with an active exception set. +* The internal generator function type was not shared across modules. + * Comparisons of (inferred) ctuples failed to compile. * Using ``const`` C++ references in intermediate parts of longer expressions diff --git a/Cython/Utility/Generator.c b/Cython/Utility/Generator.c index 031057057..a37f097b6 100644 --- a/Cython/Utility/Generator.c +++ b/Cython/Utility/Generator.c @@ -703,7 +703,7 @@ static PyTypeObject __pyx_GeneratorType_type = { static __pyx_GeneratorObject *__Pyx_Generator_New(__pyx_generator_body_t body, PyObject *closure, PyObject *name, PyObject *qualname) { __pyx_GeneratorObject *gen = - PyObject_GC_New(__pyx_GeneratorObject, &__pyx_GeneratorType_type); + PyObject_GC_New(__pyx_GeneratorObject, __pyx_GeneratorType); if (gen == NULL) return NULL; |