chiark / gitweb /
ident.pyx, defs.pxi: Use Pyrex `typecheck' for type checking.
[mLib-python] / assoc.pyx
index 38b8446f4b0ba86411b7a13706f904c7a6eb7629..7685dd6b3f2ebe04959087cd7204318e0c3a5065 100644 (file)
--- a/assoc.pyx
+++ b/assoc.pyx
@@ -73,7 +73,7 @@ cdef class AssocTable (Mapping):
 cdef class _AssocIter (_MapIterator):
   cdef AssocTable t
   cdef assoc_iter i
-  def __cinit__(me, AssocTable t):
+  def __cinit__(me, AssocTable t not None):
     me.t = t
     assoc_mkiter(&me.i, &me.t._t)
   cdef void *_next(me):