X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/blobdiff_plain/d8d81d1b049836f7d4fae7b0077a8ce9e2fc43ac..a1ce1458d254a60b64add7f1ca44bd638c872097:/assoc.pyx diff --git a/assoc.pyx b/assoc.pyx index 535fa03..e2ba4ee 100644 --- a/assoc.pyx +++ b/assoc.pyx @@ -75,7 +75,7 @@ cdef class AssocTable (Mapping): cdef class _AssocIter (_MapIterator): cdef AssocTable t cdef assoc_iter i - def __new__(me, AssocTable t): + def __cinit__(me, AssocTable t): me.t = t assoc_mkiter(&me.i, &me.t._t) cdef void *_next(me):