Commit 11a91a05 authored by Robert Bradshaw's avatar Robert Bradshaw

We do allow execution in cdef class bodies.

--HG--
rename : tests/errors/e_exestmtinexttype.pyx => tests/run/classbody_exec.pyx
parent 888d2ef3
cdef class Spam:
answer = 42
_ERRORS = u"""
/Local/Projects/D/Pyrex/Source/Tests/Errors2/e_exestmtinexttype.pyx:2:1: Executable statement not allowed here
"""
__doc__ = u"""
>>> print D
{'answer': (42, 42)}
"""
D = {}
def foo(x):
return x, x
cdef class Spam:
answer = 42
D['answer'] = foo(answer)
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