Spam.amount attribute has to be declared.
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Thu, 19 Mar 2009 09:01:59 +0000 (18:01 +0900)
committerNicolas Dumazet <nicdumz.commits@gmail.com>
Thu, 19 Mar 2009 09:01:59 +0000 (18:01 +0900)
Demos/spam.pyx

index f954f078af1695d512be0970e4ca11abd9746fce..702e21ade6b7acfb4f471ac56b8bfc20d9207242 100644 (file)
@@ -3,6 +3,7 @@
 #
 
 cdef class Spam:
+  cdef public int amount
 
   def __new__(self):
     self.amount = 0