[Python-Dev] Null checking
Michael Hudson
mwh@python.net
10 Jun 2002 14:37:30 +0100
Guido van Rossum <guido@python.org> writes:
> > I'd also like to know why all the (for instance) methods in
> > tupleobject.c start with "if (!PyTuple_Check(self)". You'd have to
> > try REALLY hard to get those tests to fail...
>
> I found exactly one call to PyTuple_Check() that satisfies that
> description, and it was in your own (uncommitted) addition,
> tuplesubscript(). :-)
Yeah. I wonder what I was thinking when I wrote that (it was two
years ago now, after all).
Never mind, I'll do my research better before my next post.
Cheers,
M.
--
GET *BONK*
BACK *BONK*
IN *BONK*
THERE *BONK* -- Naich using the troll hammer in cam.misc