A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-November/040250.html below:

[Python-checkins] python/dist/src/Modules heapqmodule.c, 1.1, 1.2

[Python-Dev] Re: [Python-checkins] python/dist/src/Modules heapqmodule.c, 1.1, 1.2Jeremy Fincher fincher.8 at osu.edu
Sat Nov 15 12:23:02 EST 2003
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

More information about the Python-Dev mailing list

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