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

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


> + static int > + checknumargs(PyObject *ob, int n) > + { > + if (!PyTupleCheckExact(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