Update spam demo.
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 10 Dec 2010 22:36:39 +0000 (14:36 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 10 Dec 2010 22:36:39 +0000 (14:36 -0800)
Demos/spam.pyx

index 702e21ade6b7acfb4f471ac56b8bfc20d9207242..2992d0a456c6924cef04e41a74a9b8e52b9b335e 100644 (file)
@@ -5,7 +5,7 @@
 cdef class Spam:
   cdef public int amount
 
-  def __new__(self):
+  def __cinit__(self):
     self.amount = 0
 
   def __dealloc__(self):