[Python-Dev] RE: test_sort.py failure (original) (raw)
Tim Peters tim.peters at gmail.com
Sat Jul 31 04:09:25 CEST 2004
- Previous message: [Python-Dev] RE: test_sort.py failure
- Next message: [Python-Dev] test_sort.py failure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Armin Rigo]
Actually, inside listobject.c, the 'return 0' comes from the fact that listclear() is used for the type's tpclear.
Eww, yes. I missed that.
Something I didn't think about is that the PyListXxx() API checks the type of its first argument. If PyListClear() 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 .
- Previous message: [Python-Dev] RE: test_sort.py failure
- Next message: [Python-Dev] test_sort.py failure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]