[Python-Dev] XXX - in funcobject.c

Guido van Rossum guido at python.org
Wed Feb 6 17:10:39 CET 2008


On Feb 6, 2008 1:49 AM, Kristján Valur Jónsson <kristjan at ccpgames.com> wrote:
>
>
> > -----Original Message-----
> > From: Amaury Forgeot d'Arc [mailto:amauryfa at gmail.com]
> > Sent: Wednesday, February 06, 2008 00:02
> > To: Guido van Rossum
> > Cc: Kristján Valur Jónsson; python-dev at python.org
> > Subject: Re: [Python-Dev] XXX - in funcobject.c
> >
> > Yet Another Kind Of Tuple... However this seems the correct thing to
> > do.
> >
> > In addition, if we agree to restrict arguments names to str (and
> > disallow subclasses), there are easy optimizations in
> > PyEval_EvalCodeEx, somewhere around the "XXX slow" comment (!)
>
> Super.  I think I'll do this myself and see if the crashes go away (even though I know that doesn't constitute a proof).
> Also, allow me to suggest that we preallocate stack space for, say, 10 kwargs, to avoid the malloc for the common cases.

Great idea! If you come up with a useful patch, can you attach it to
the appropriate bug issue? (issues 2015 and 2016 on bugs.python.org)

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


More information about the Python-Dev mailing list