Commit ff15b2f7 authored by Stefan Behnel's avatar Stefan Behnel

fix sharing of Generator type across modules

parent 5c85653f
......@@ -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
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment