Commit 5750946c authored by Stefan Behnel's avatar Stefan Behnel

Add comment in doc example to explain that two ways to compare pointers are equivalent

parent c1e8b921
......@@ -12,7 +12,7 @@ def open_file():
def allocating_memory(number=10):
cdef double *my_array = <double *> malloc(number * sizeof(double))
if not my_array:
if not my_array: # same as 'is NULL' above
raise MemoryError()
...
free(my_array)
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