Ok, once I have the nightly I'll do it. A bit backwards, but translating takes like an hour.
Alex On Mon, Apr 1, 2013 at 11:28 PM, Maciej Fijalkowski <fij...@gmail.com>wrote: > On Tue, Apr 2, 2013 at 5:30 AM, alex_gaynor <nore...@buildbot.pypy.org> > wrote: > > Author: Alex Gaynor <alex.gay...@gmail.com> > > Branch: > > Changeset: r62924:73524812269e > > Date: 2013-04-01 20:30 -0700 > > http://bitbucket.org/pypy/pypy/changeset/73524812269e/ > > > > Log: unroll isinstance checks with old style classes > > > > diff --git a/pypy/module/__builtin__/abstractinst.py > b/pypy/module/__builtin__/abstractinst.py > > --- a/pypy/module/__builtin__/abstractinst.py > > +++ b/pypy/module/__builtin__/abstractinst.py > > @@ -94,9 +94,8 @@ > > return w_obj.w_class.is_subclass_of(w_klass_or_tuple) > > return _abstract_isinstance_w_helper(space, w_obj, w_klass_or_tuple) > > > > -@jit.dont_look_inside > > + > > def _abstract_isinstance_w_helper(space, w_obj, w_klass_or_tuple): > > - > > # -- case (anything, abstract-class) > > check_class(space, w_klass_or_tuple, > > "isinstance() arg 2 must be a class, type," > > @@ -111,7 +110,7 @@ > > return _issubclass_recurse(space, w_abstractclass, > w_klass_or_tuple) > > > > > > -@jit.dont_look_inside > > +@jit.unroll_safe > > def _issubclass_recurse(space, w_derived, w_top): > > """Internal helper for abstract cases. Here, w_top cannot be a > tuple.""" > > if space.is_w(w_derived, w_top): > > _______________________________________________ > > pypy-commit mailing list > > pypy-com...@python.org > > http://mail.python.org/mailman/listinfo/pypy-commit > > That definitely requires a test_pypy_c > _______________________________________________ > pypy-dev mailing list > pypy-dev@python.org > http://mail.python.org/mailman/listinfo/pypy-dev > -- "I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire) "The people's good is the highest law." -- Cicero
_______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev