blob: 0c1dbf5c0570500c116cfc725735d5c7baf35ed8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
from __future__ import print_function
cimport dishes
from dishes cimport spamdish
cdef void prepare(spamdish *d):
d.oz_of_spam = 42
d.filler = dishes.sausage
def serve():
cdef spamdish d
prepare(&d)
print(f'{d.oz_of_spam} oz spam, filler no. {d.filler}')
|