clarify comment in example
authorStefan Behnel <stefan_ml@behnel.de>
Fri, 1 Feb 2013 21:23:42 +0000 (22:23 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Fri, 1 Feb 2013 21:23:42 +0000 (22:23 +0100)
docs/src/tutorial/queue_example/queue.pyx

index 8ace78b..b7801cd 100644 (file)
@@ -44,7 +44,7 @@ cdef class Queue:
                 raise IndexError("Queue is empty")
         return value
 
-    def __bool__(self):    # or __nonzero__ for Python 2.x
+    def __bool__(self):    # same as __nonzero__ in Python 2.x
         return not cqueue.queue_is_empty(self._c_queue)
 
 DEF repeat_count=10000