This patch needs to be applied to the PQueue module for it to work
properly; otherwise, it will segfault when a PQueue containing tuples
is freed.

The Debian version (python-pqueue) already has this patch.

Index: pqueuemodule.c
===================================================================
RCS file: /home/earthpig/work/cvs_repository/project/PQueue/pqueuemodule.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- pqueuemodule.c	1999/10/25 12:20:23	1.2
+++ pqueuemodule.c	2000/01/04 12:44:30	1.3
@@ -238,7 +238,7 @@
 	do {
 		heapnode *x = child;
 		if (x->child != NULL) {
-			x->left->right = x->right;
+			x->child->left->right = x->right;
 			x->right = x->child;
 		}
 		Py_DECREF(x->priority);

