Hi Tyler,
On 29 July 2014 17:45, Tyler Wade <[email protected]> wrote:
> While working on my GSoC project to move PyPy’s unicode implementation to
> utf-8, I added support for __eq__ to RPython. It was suggested on IRC that
> this may be controversial and I should write to the mailing list for further
> feedback. I’ve pushed my changes to the rpython-__eq__ branch if you’d like
> to look at the code itself.
How much rewrites would be involved if you did instead:
@specialize.argtype(0,1)
def eq(x, y):
if isinstance(x, Utf8Str):
return x.eq(y)
return x == y
and used the global function eq() instead of the == operator where relevant?
A bientôt,
Armin.
_______________________________________________
pypy-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-dev