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

Martin v. Loewis martin@v.loewis.de
25 Mar 2002 19:11:46 +0100


Neal Norwitz <neal@metaslash.com> writes:

Should the use of PyArgNoArgs() be deprecated?

There are many uses (53) throughout Modules/*.c. It seems that this check is not useful anymore if the MethodDef is set to METHNOARGS. Is this correct? If so, I can make a patch.

I would prefer if you could simultaneously remove occurences of METH_OLDARGS (introducing METH_O where possible), so that modules get cleaned-up entirely, rather than just replacing the easy parts :-)

The reason why such changes haven't been applied to all modules is that some of the modules are old in themselves, and I would have no way to verify that the module is working properly after the changes.

Regards, Martin