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/2004-July/046573.html below:

[Python-Dev] RE: test_sort.py failure

[Python-Dev] RE: test_sort.py failure [Python-Dev] RE: test_sort.py failureTim Peters tim.peters at gmail.com
Sat Jul 31 04:09:25 CEST 2004
[Armin Rigo]
> Actually, inside listobject.c, the 'return 0' comes from the fact that
> list_clear() is used for the type's tp_clear.

Eww, yes.  I missed that.

> 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.
> 
> :-(

You could get away with breaking the pattern for this one, provided
it's documented that behavior is undefined if an object of wrong type
is passed.  Unclear whether it's worth it.  But call it PyList_CLEAR()
and Guido wouldn't even blink <wink>.
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