[pypy-dev] special methods

Christian Tismer tismer at stackless.com
Fri Mar 30 00:14:59 CEST 2007

On 29.03.2007, at 19:35, Armin Rigo wrote:

> Hi Simon,
> On Thu, Mar 29, 2007 at 10:18:06AM -0700, Simon Burton wrote:
>> What is your concern here ? Does it screw up the JIT, or some  
>> other aspect
>> I am missing ?
> No, just the obscurity of these methods: the full Python
> __add__/__radd__ semantics are more than a little tricky.

And no RPython programmer needs them.

> The RPython approach so far has at least a clear message: no special
> methods, apart from __init__() and __del__().  I'm not against  
> adding a
> few of them, to be honest; e.g. __getitem__() would be my  
> favorite.  But
> then they should be fully implemented.  For example, I just realized
> that without the full rtyper solution, your patch can work for str(x)
> but not for '%s' % (x,), which looks rather inconsistent.

And for that reason, you would drop the whole thing, waiting for
a complete solution?

This is not realistic, it will probably happen, anyway.

why do I try this, again -- chris

More information about the Pypy-dev mailing list