Hi Armin,

You can recreate it in PyPy by putting the following two lines pretty much 
anywhere in interpreter level code other than the 
setup_after_space_initialization methods

from pypy.module.pypyjit.hooks import pypy_hooks
pypy_hooks.foo = “foo”

What I can’t understand is what is special about the 
setup_after_space_initialization methods that makes it work there.

Cheers,
Magnus
        
> On 15 Mar 2016, at 15:32, Armin Rigo <ar...@tunes.org> wrote:
> 
> Hi Magnus,
> 
> On 15 March 2016 at 15:45, Magnus Morton <m...@magnusmorton.com> wrote:
>> Yes, it has all the methods defined. If I take out the assignment, but still 
>> define a JitPolicy with the hooks, it translates fine.
> 
> Can't help, I would need to reproduce the problem first.  Please give
> step-by-step instructions about how to reach that error.
> 
> 
> Armin

_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to