Re: [pypy-dev] Adding init/variables to W_Root

2016-12-16 Thread Armin Rigo
Hi Frank, On 15 December 2016 at 21:06, Frank Wang wrote: > Right now, I know W_Root has no __init__ function, and when I try to add > one. I run into all sorts of problems because TypeDef calls W_Root.__new__ > with some parameters, but "new" function seems to be called nowhere else. I suspect

Re: [pypy-dev] Adding init/variables to W_Root

2016-12-16 Thread Frank Wang
Hi Armin, Thanks for the suggestion! I'll see if that works. Just to make sure. This will give me an instance variable? I need values of the extra dict to be different for different instantiations of W_Root. Frank On Fri, Dec 16, 2016 at 11:19 AM, Armin Rigo wrote: > Hi Frank, > > On 15 Decemb

Re: [pypy-dev] Adding init/variables to W_Root

2016-12-16 Thread Carl Friedrich Bolz
Hi Frank, Yes, you'll get an instance variable that way. Cheers, Carl Friedrich On December 16, 2016 6:05:56 PM GMT+01:00, Frank Wang wrote: >Hi Armin, > >Thanks for the suggestion! I'll see if that works. Just to make sure. >This >will give me an instance variable? I need values of the extr

[pypy-dev] Why does pypy include my code three times in the JIT-capable executable?

2016-12-16 Thread hgualandi
Hi there, I have a question about pypy's compilation process when producing an executable from an RPython source program. Apparently when I compile my program with --opt=JIT, my code gets included 3 times in the resulting executable. I made a little experiment where I included a magic number in m