chiark / gitweb /
*.pyx: Replace __new__ with __cinit__ like the program says.
[mLib-python] / atom.pyx
index 5c0cde63909e0563d5b4edbcfa63ba3f7055cbc6..9892ba52bf38070d1dee055ef3c7045355618ee7 100644 (file)
--- a/atom.pyx
+++ b/atom.pyx
@@ -27,7 +27,7 @@
 
 cdef class AtomIter:
   cdef atom_iter _i
 
 cdef class AtomIter:
   cdef atom_iter _i
-  def __new__(me):
+  def __cinit__(me):
     atom_mkiter(&me._i, ATOM_GLOBAL)
   def __next__(me):
     cdef atom *a
     atom_mkiter(&me._i, ATOM_GLOBAL)
   def __next__(me):
     cdef atom *a