[Python-Dev] Re: Speed up function calls

Fredrik Lundh fredrik at pythonware.com
Sun Jan 23 20:23:09 CET 2005


Neal Norwitz wrote:

> The patch adds a new method type (flags) METH_ARGS that is used in
> PyMethodDef. METH_ARGS means the min and max # of arguments are
> specified in the PyMethodDef by adding 2 new fields.

> * the defn of the MethodDef (# args) is separate from the function defn
> * potentially more error prone to write C methods???

"potentially"?  sounds like a recipe for disaster.  but the patch is nice, and more
speed never hurts.  maybe it's time to write that module fixup preprocessor thing
that Guido should have written some 15 years ago... ;-)

</F> 





More information about the Python-Dev mailing list