Commit b34b20d4 authored by Stefan Behnel's avatar Stefan Behnel

test case for ticket #18

parent 528fe9df
__doc__ = u"""
>>> f = PyFoo()
>>> print(f.bar)
5
>>> print(f.baz)
someval
>>> f = MyPyFoo()
>>> print(f.bar)
7
>>> print(f.baz)
anotherval
>>> f = CyFoo()
>>> print(f.bar)
5
>>> print(f.baz)
anotherval
>>> f = MyCyFoo()
>>> print(f.bar)
7
>>> print(f.baz)
anotherval
>>> f = AnotherFoo()
>>> print(f.bar)
8
>>> print(f.baz)
yetanotherval
"""
# this works:
class PyFoo(object):
bar = 5
baz = u"someval"
class MyPyFoo(PyFoo):
bar = 7
baz = u"anotherval"
# this doesn't:
cdef class CyFoo:
cdef public int bar = 5
cdef public object baz = u"someval"
cdef class MyCyFoo(CyFoo):
cdef public int bar = 7
cdef public object baz = u"anotherval"
class AnotherFoo(CyFoo):
bar = 8
baz = u"yetanotherval"
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