A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-July/046563.html below:

[Python-Dev] RE: test_sort.py failure

[Python-Dev] RE: test_sort.py failure [Python-Dev] RE: test_sort.py failureArmin Rigo arigo at tunes.org
Fri Jul 30 11:57:27 CEST 2004
Hello Tim,

On Fri, Jul 30, 2004 at 01:01:13AM -0400, Tim Peters wrote:
> > About clearing lists efficiently: what about adding PyList_Clear() to the
> > public API?
> 
> +1 provided the signature is changed to return void.  Even inside
> listobject.c, the "it always returns 0" qurik is used only once.

Actually, inside listobject.c, the 'return 0' comes from the fact that
list_clear() is used for the type's tp_clear.

Something I didn't think about is that the PyList_Xxx() API checks the type of
its first argument.  If PyList_Clear() does it too it cannot return void.

:-(


Armin
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