[Python-Dev] Special-casing "O"

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon, 28 May 2001 08:36:49 +0200


> How is METH_O different than METH_OLDARGS? 

METH_O will raise an exception if the function is called with more
than one argument, without calling the function. METH_OLDARGS will
pass a tuple in this case.

I believe you cannot distinguish between a single tuple argument and
an invocation with multiple arguments in a METH_OLDARGS function, is
that true?

Regards,
Martin