X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/blobdiff_plain/d8d81d1b049836f7d4fae7b0077a8ce9e2fc43ac..a1ce1458d254a60b64add7f1ca44bd638c872097:/mapping.pyx diff --git a/mapping.pyx b/mapping.pyx index 551261e..a7c1e26 100644 --- a/mapping.pyx +++ b/mapping.pyx @@ -50,7 +50,7 @@ cdef class Mapping: raise SystemError, 'unimplemented _iter' ## Initialization - def __new__(me, *hunoz, **hukairz): + def __cinit__(me, *hunoz, **hukairz): me._init() def __init__(me, stuff = None, **kw): me.update(stuff, kw) @@ -169,7 +169,7 @@ cdef class MapIterBase: cdef _MapIterator i cdef int _init(me) except -1: raise TypeError, 'abstract class' - def __new__(me): + def __cinit__(me): me.i = m._iter() me._init() def __iter__(me):