On Fri, Jul 4, 2014 at 7:23 PM, Armin Rigo <[email protected]> wrote:
> Hi Yichao,
>
> On 4 July 2014 02:46, Yichao Yu <[email protected]> wrote:
>> I found the transparent proxy in pypy recently.
>
> As you have noticed, this is an old feature not supported any more
> since a long time (and mostly untested).  It was an experimental
> feature that turned out not to be useful in practice.  Just using
> regular Python, you can mostly achieve the same effects, with the
> exception (mostly) of pretending to have an object of some built-in
> type for built-in function calls.
>
> I'm not sure what kind of objects can be wrapped right now...
> User-defined instances work, but as you found out, most special
> methods on them don't work.  If you want to fix it, you're welcome.

IC....
Well, I am looking at this mainly because I thought it might be
possible to use tproxy as a hack to fix this[1] numpypy issue (make a
type with __getitem__ not iterable). (Or at least see what is the
preferred way of interacting with object space.)

If it is not working anymore, should it be at least reflected on the
document? (given that even the example doesn't work anymore....)

[1] 
https://bitbucket.org/pypy/numpy/issue/10/scalar-types-should-not-be-iterable#comment-10882437

Yichao Yu

>
>
> A bientôt,
>
> Armin.
_______________________________________________
pypy-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to