[pypy-dev] Builtin-in functions

holger krekel hpk at trillke.net
Tue May 3 21:22:49 CEST 2005


Hi Armin, 

On Tue, May 03, 2005 at 19:02 +0100, Armin Rigo wrote:
> Builtin-in functions differ from Python function in that you can't bind the
> former as methods.  ... 
> 
> Samuele came up with a nice proposal: the attribute loading code of LazyModule
> (i.e. our internal modules) is a natural place to turn our functions into some
> kind of built-in functions.  ... 

Good idea!   

> The proposal is thus to wrap functions into a <type 'builtin_function'> which
> behaves mostly like the original one, but doesn't have a __get__().

And i see you already hacked this, nice. 

For all the others: PyPy is now passing more than 80% of the 
core python language tests now, see here: 

    http://codespeak.net/~hpk/pypy-testresult/

cheers, 

    holger



More information about the Pypy-dev mailing list