[Python-Dev] Use of PyArg_NoArgs() (original) (raw)

Guido van Rossum guido@python.org
Mon, 25 Mar 2002 12:17:52 -0500


Should the use of PyArgNoArgs() be deprecated?

Sure, why not.

There are many uses (53) throughout Modules/*.c. It seems that this check is not useful anymore if the MethodDef is set to METHNOARGS.

Yes, that's the recommended way.

Is this correct? If so, I can make a patch.

You can just check it in.

--Guido van Rossum (home page: http://www.python.org/~guido/)