[Python-Dev] Removing METH_OLDARGS

Neal Norwitz neal@metaslash.com
Sun, 31 Mar 2002 11:06:32 -0500


"Martin v. Loewis" wrote:
> 
> 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 :-)

I've finished the first step of getting rid of many uses of METH_OLDARGS.
The bad news is that there are many more uses of METH_OLDARGS that
were implicit in the declaration.

Here's the current count of uses of METH_OLDARGS:

    Modules/audioop.c        22  
    Modules/clmodule.c       42  
    Modules/flmodule.c      103 
    Modules/fmmodule.c        6   
    Modules/glmodule.c      430 
    Modules/imageop.c        15  
    Modules/mpzmodule.c       8   
    Modules/sgimodule.c       2   
    Modules/_sre.c            2   
    Modules/stropmodule.c     7   
    Modules/svmodule.c       34  
    Modules/_tkinter.c        3   

I will try to go through and get rid of more uses.  I don't believe
there are any uses outside of Modules/ now.

Sorry if I broke anything.

Neal