[pypy-dev] Re: Release something?
Michael Hudson
mwh at python.net
Thu Feb 27 16:59:48 CET 2003
holger krekel <hpk at trillke.net> writes:
> Also can't we make the trivial's objspace "wrap" and "unwrap"
> actually do something like
>
> def wrap(self, value):
> return Box(value)
> def unwrap(self, w_value):
> return w_value.value
>
> with
>
> class Box:
> def __init__(self, value):
> self.value = value
>
> ?
I think that should be "slightlylesstrivialobjspace.py" or something.
> I just tried but got errors which i am investigating.
> They may indicate incorrect wrap/unwrap arithmetic.
Quite likely there's some of that. You also have to thoroughly
rewrite trivial.py.
Cheers,
M.
--
Every day I send overnight packages filled with rabid weasels to
people who use frames for no good reason.
-- The Usenet Oracle, Oracularity #1017-1
More information about the Pypy-dev
mailing list