diff options
Diffstat (limited to 'Demos/spam.pyx')
-rw-r--r-- | Demos/spam.pyx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Demos/spam.pyx b/Demos/spam.pyx index 032d31a34..4784e0a0a 100644 --- a/Demos/spam.pyx +++ b/Demos/spam.pyx @@ -5,19 +5,19 @@ # cdef class Spam: - cdef public int amount + cdef public int amount - def __cinit__(self): - self.amount = 0 + def __cinit__(self): + self.amount = 0 - def __dealloc__(self): - print(self.amount, "tons of spam is history.") + def __dealloc__(self): + print(self.amount, "tons of spam is history.") - def get_amount(self): - return self.amount + def get_amount(self): + return self.amount - def set_amount(self, new_amount): - self.amount = new_amount + def set_amount(self, new_amount): + self.amount = new_amount - def describe(self): - print(self.amount, "tons of spam!") + def describe(self): + print(self.amount, "tons of spam!") |