X-Git-Url: https://git.distorted.org.uk/~mdw/mLib-python/blobdiff_plain/23bff39b96e98bc1969d275bc7c43e1d6dd28429..376ad06df03e59ebf0796b2f475417150e82252d:/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):