[Python-checkins] python/dist/src/Modules _heapqmodule.c,1.6,1.7

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Mon Sep 6 09:04:11 CEST 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29812/Modules

Modified Files:
	_heapqmodule.c 
Log Message:
Fix erroneous docstring comment.

Index: _heapqmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_heapqmodule.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- _heapqmodule.c	20 Jun 2004 09:07:52 -0000	1.6
+++ _heapqmodule.c	6 Sep 2004 07:04:08 -0000	1.7
@@ -186,8 +186,9 @@
 This is more efficient than heappop() followed by heappush(), and can be\n\
 more appropriate when using a fixed-size heap.  Note that the value\n\
 returned may be larger than item!  That constrains reasonable uses of\n\
-this routine unless written as part of a larger expression:\n\n\
-    result = item <= heap[0] and item  or  heapreplace(heap, item)\n");
+this routine unless written as part of a conditional replacement:\n\n\
+        if item > heap[0]:\n\
+            item = heapreplace(heap, item)\n");
 
 static PyObject *
 heapify(PyObject *self, PyObject *heap)



More information about the Python-checkins mailing list