Commit ee13f54f authored by Vitja Makarov's avatar Vitja Makarov

Add testcase for cdef class method with closure

parent d1781ddc
cdef class SelfInClosure(object):
"""
>>> o = SelfInClosure()
>>> o.closure_method()() == o
True
"""
def closure_method(self):
def nested():
return self
return nested
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