[pypy-dev] fun with functions

Armin Rigo arigo at tunes.org
Sat Jun 26 20:28:10 CEST 2004


Hello Holger,

On Sat, Jun 26, 2004 at 01:04:39PM +0200, holger krekel wrote:
> We could ask who is relying on this behaviour that builtin functions don't
> get bound on classes.  Or maybe just ask who even *knows* it let alone relies
> on it :-) 
> (...)  Can you think of any real world use case? 

PyPy used to store built-ins in the TrivialObjSpace class as operations.  I've
used it occasionally in situations where hacking was kind of allowed.  I don't
think any use of that should be regarded as really strong...


Armin



More information about the Pypy-dev mailing list