Commit 635a3949 authored by Stefan Behnel's avatar Stefan Behnel

make the test test something

parent 62cd5864
__doc__ = """
>>>
>>> s = Spam(Eggs("ham"))
>>> test(s)
'ham'
"""
cdef class Eggs:
cdef object ham
def __init__(self, ham):
self.ham = ham
cdef class Spam:
cdef Eggs eggs
def __init__(self, eggs):
self.eggs = eggs
cdef void tomato(Spam s):
cdef object tomato(Spam s):
food = s.eggs.ham
return food
def test(Spam s):
return tomato(s)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment