Commit a8bdadbe authored by Stefan Behnel's avatar Stefan Behnel

new test case for bug found in cython-devel that is fixed in cython-closures

parent a17c79d6
def if_list_nogil(list obj):
"""
>>> if_list_nogil( [] )
False
>>> if_list_nogil( [1] )
True
>>> if_list_nogil(None)
False
"""
return _if_list_nogil(obj)
cdef bint _if_list_nogil(list obj) nogil:
if obj:
return True
else:
return False
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