[Python-Dev] Re: [Python-checkins] python/dist/src/Objects typeobject.c, 2.254, 2.255

Raymond Hettinger python at rcn.com
Sun Dec 14 11:57:09 EST 2003


> > + static int
> > + check_num_args(PyObject *ob, int n)
> > + {
> > + 	if (!PyTuple_CheckExact(ob)) {
> 
> Is it actually possible for this check to fail?  I spent a while
> trying to make it fail, but couldn't manage it.

I would support changing this to an assertion.


Raymond




More information about the Python-Dev mailing list