Hi Frank,
On 19 December 2016 at 05:29, Frank Wang wrote:
> Attribute 'rb_flags' on
> should be read-only.
Ah, did you adapt or remove this line in class W_Root?
__slots__ = ('__weakref__',)
The annotator complains, I think, because 'rb_flags' is forbidden by
this line (which is useful to
Hi Armin,
If I modify the line to __slots__ = ('__weakref__', 'rb_flags',), I get the
following error:
[translation:ERROR] AssertionError:
: to run register_finalizer() untranslated, the object
must not have __slots__
If I remove that line completely, I get the following error,
[translation:ERR
Oops, forgot to cc pypy-dev...
Carl Friedrich
Original Message
From: Carl Friedrich Bolz
Sent: December 19, 2016 5:59:01 PM GMT+01:00
To: Frank Wang
Subject: Re: [pypy-dev] Adding init/variables to W_Root
Hi Frank,
The solution is to add an _attrs_ = ('__weakref__', 'rb_fl
This also seems to happen in a lot of classes because W_Root is the parent
class for many classes. Is there a way to universally turn off this
immutable flag (assuming it's okay) in all classes?
Frank
On Mon, Dec 19, 2016 at 3:55 PM, Frank Wang wrote:
> Hi Carl,
>
> Thanks for the tip! It's mos
Hi Carl,
Thanks for the tip! It's mostly working. I get this error:
[translation:ERROR] ImmutableConflictError: class has _immutable_=True, but
parent class
defines (at least) the mutable field 'rb_flags'
I'm tempted to set the flag to be False. Is there any reason that W_Root or
any of its su
Hi Frank,
On 20 December 2016 at 01:29, Frank Wang wrote:
> This also seems to happen in a lot of classes because W_Root is the parent
> class for many classes. Is there a way to universally turn off this
> immutable flag (assuming it's okay) in all classes?
You can hack at the place where the e
Hi,
I'm an undergrad Computer Science student from India in
my final year. I'm interested in participating in GSoC 2017 for python, but
I'm new to open source. Would You kindly tell he how I can start
contributing? I'm familiar with C, C++, Java, Python, MATLAB, Verilog MySQL.
Th
Hi Armin,
It seems that with your suggestions, things have started to work!
Thanks again for the help!
On Mon, Dec 19, 2016 at 5:57 PM Armin Rigo wrote:
> Hi Frank,
>
> On 20 December 2016 at 01:29, Frank Wang wrote:
> > This also seems to happen in a lot of classes because W_Root is the
> par