Hi, On Sat, May 26, 2012 at 10:19 PM, Timothy Baldridge <[email protected]> wrote: > To do this, I need an instance of space, but how do I get this in a > global (module level) context?
Try to move the initialization of this data outside module globals. See for example pypy/module/sys/state.py, where exactly one prebuilt instance of State is created during translation by the call "space.fromcache(State)". In State.__init__() you can do anything, as it runs during translation and is not itself translated. A bientôt, Armin. _______________________________________________ pypy-dev mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-dev
