Antonio Cuni wrote: > Jean-Paul Calderone wrote: >> Does this break (by ignoring) custom __add__ implementations on int >> subclasses? > > uh, right! :-/ > > Well, that means that we should check for the exact classes/python type > instead for subclasses, but I think the optimization is still worth of.
Isn't this the optimization that Michael already tried? See objspace/std/objspace.py line 65. command line option is --objspace-std-withsmallint I turned out to not be worth it in many cases. Cheers, Carl Friedrich _______________________________________________ [email protected] http://codespeak.net/mailman/listinfo/pypy-dev
