Hi Wim, On Sat, Mar 30, 2013 at 5:40 PM, <wlavrij...@lbl.gov> wrote: > - 'gbl' : 'pythonify.gbl', > can not be removed, as w/o it 'gbl' will not show up at the module level.
Ah I see, pythonify.py does "sys.modules['cppyy.gbl'] = gbl". I somehow misread that. It should also do in the same place "cppyy.gbl = gbl" to force the value to show up when this initialization code runs. > But again, the real problem is that startup() still runs immediately when I > type './pypy-c' and not when 'import cppyy' later on the prompt Uh, that's strange. The docstrings in interpreter/module.py say specifically the opposite. But the truth looks a bit more complicated indeed, e.g. it depends if getbuiltinmodule('cppyy') was already called during translation or not... A bientôt, Armin. _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev