[pypy-dev] Re: Object model

Michael Hudson mwh at python.net
Thu Feb 13 17:51:32 CET 2003

Armin Rigo <arigo at tunes.org> writes:

[cool stuff]

> class BorrowingObjectSpace(ObjectSpace):
>     def wrap(self, x):
>         return x
>     def unwrap(self, x):
>         return x
>     def add(self, x, y):
>         return x+y
>     def type(self, x):
>         return type(x)

"from operator import *" could go here?


> Looks like a cool point of view, doesn't it ?

Yes!  Brain a bit too fried to be sure, but I think so, anyway.


  SPIDER:  'Scuse me. [scuttles off]
  ZAPHOD:  One huge spider.
    FORD:  Polite though.
                   -- The Hitch-Hikers Guide to the Galaxy, Episode 11

More information about the Pypy-dev mailing list