Commit 79f88002 authored by gabrieldemarmiesse's avatar gabrieldemarmiesse

Changed a comment to make it more meaningful.

parent d5e107a9
...@@ -39,7 +39,7 @@ cdef class Queue: ...@@ -39,7 +39,7 @@ cdef class Queue:
cdef extend_ints(self, int* values, size_t count): cdef extend_ints(self, int* values, size_t count):
cdef int value cdef int value
for value in values[:count]: # It is possible to slice pointers in Cython. for value in values[:count]: # Slicing pointer to limit the iteration boundaries.
self.append(value) self.append(value)
cpdef int peek(self) except? -1: cpdef int peek(self) except? -1:
......
...@@ -343,7 +343,7 @@ Adding an ``extend()`` method should now be straight forward:: ...@@ -343,7 +343,7 @@ Adding an ``extend()`` method should now be straight forward::
"""Append all ints to the queue. """Append all ints to the queue.
""" """
cdef int value cdef int value
for value in values[:count]: # It is possible to slice pointers in Cython. for value in values[:count]: # Slicing pointer to limit the iteration boundaries.
self.append(value) self.append(value)
This becomes handy when reading values from a C array, for example. This becomes handy when reading values from a C array, for example.
......
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