[Python-Dev] PEP 447: add type.__locallookup__

Antoine Pitrou solipsis at pitrou.net
Mon Jul 29 15:41:25 CEST 2013


Le Mon, 29 Jul 2013 15:26:41 +0200,
Ronald Oussoren <ronaldoussoren at mac.com> a écrit :
> 
> On 29 Jul, 2013, at 15:07, Ronald Oussoren <ronaldoussoren at mac.com>
> wrote:
> 
> > 
> > On 29 Jul, 2013, at 14:58, Antoine Pitrou <solipsis at pitrou.net>
> > wrote:
> > 
> >> 
> >> Hi,
> >> 
> >> Le Mon, 29 Jul 2013 14:49:18 +0200,
> >> Ronald Oussoren <ronaldoussoren at mac.com> a écrit :
> >>> Hi,
> >>> 
> >>> This PEP proposed to add a __locallookup__ slot to type objects,
> >>> which is used by _PyType_Lookup and super_getattro instead of
> >>> peeking in the tp_dict of classes.  The PEP text explains why
> >>> this is needed.
> >>> 
> >>> Differences with the previous version:
> >>> 
> >>> * Better explanation of why this is a useful addition
> >>> 
> >>> * type.__locallookup__ is no longer optional.
> >>> 
> >>> * I've added benchmarking results using pybench.
> >>> (using the patch attached to issue 18181)
> >> 
> >> Could you please run the whole benchmark suite?
> >> http://hg.python.org/benchmarks/
> > 
> > Sure.
> 
> That's harder than I had expected, when I use the "make_perf3.sh" to
> create a python 3 compatible version of the benchmark suite and then
> run the suite it craps out because it cannnot find "spitfire", which
> isn't translated (as are several other benchmarks).

Ah, sorry. I think it's enough to run the "2n3" subsuite here, though.

Regards

Antoine.




More information about the Python-Dev mailing list