Commit df3efb3e authored by scoder's avatar scoder Committed by GitHub

Merge pull request #2533 from jakirkham/use_print_func_nonecheck

Use the print function in the nonecheck example
parents e2343f6d 4abbbafe
......@@ -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