Commit 4abbbafe authored by John Kirkham's avatar John Kirkham

Use the print function in the nonecheck example

parent 4c3229fe
......@@ -13,7 +13,7 @@ def func():
try:
# Turn nonecheck on again for a block
with cython.nonecheck(True):
print obj.myfunc() # Raises exception
print(obj.myfunc()) # Raises exception
except AttributeError:
pass
print(obj.myfunc()) # Hope for a crash!
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