chiark / gitweb /
*.pyx: Replace __new__ with __cinit__ like the program says.
[mLib-python] / assoc.pyx
index 535fa03aabde5020c967d63aaffa02d0ac104921..e2ba4eeffa4216d3bb0e88309ae9e848bd937db1 100644 (file)
--- 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):