On Saturday 15 November 2003 10:43 am, Guido van Rossum wrote: > > + if (!PyList_Check(heap)) { > > + PyErr_SetString(PyExc_ValueError, "heap argument must be a list"); > > + return NULL; > > + } > > + > > As Tim suggested, this should be a TypeError. If only lists are allowed, wouldn't we be better off with a better interface than the current one? I thought the point of the current interface was that we could use containers other than lists as long as they defined pop and append methods. Jeremy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4