On 25/10/14 14:24, Armin Rigo wrote: > Hi, > > On 25 October 2014 10:10, Maciej Fijalkowski <fij...@gmail.com> wrote: >> I would not be surprised if static methods are simply unsupported by >> the JIT (but likely for no good reason) > > That's not a crash of the JIT: > >>> "/Users/tim/oss-not-dropbox/externals/pypy/rpython/annotator/bookkeeper.py", >>> line 396, in getdesc >>> [translation:info] raise Exception("%s: %r" % (msg, pyobj)) >>> [translation:ERROR] Exception: unexpected prebuilt constant: <staticmethod >>> object at 0x10a8d5bb0> > > What is unsupported at all is staticmethod objects in RPython. I have > no clue why uncommenting that jit.unroll_safe makes the annotator sees > some staticmethod object... You have to figure out what this pyobj > is.
I don't understand what you mean by "staticmethod objects" being unsupported. We use staticmethod a bit everywhere in PyPy, no? Anyway, I tried to run translation of pixie to debug the error, and am getting this problem: https://bpaste.net/show/4eb70f41ce44 (which is unrelated) Cheers, Carl Friedrich _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev