Oops, forgot to cc pypy-dev...
Carl Friedrich
-------- Original Message --------
From: Carl Friedrich Bolz
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:ERROR] Exception:
has slots or _attrs_, but not its base class Processing block: block@3 is a in (pypy.interpreter.mixedmodule:83)MixedModule.getdictvalue containing the following operations: v0 = getattr(space_0, ('finditem_str')) v1 = getattr(self_0, ('w_dict')) w_value_0 = simple_call(v0, v1, name_0) v2 = getattr(self_0, ('lazy')) v3 = bool(v2) --end-- I wonder what error in your opinion is easier to get around.
Thanks for the help!
Frank
On Mon, Dec 19, 2016 at 2:26 AM, Armin Rigo
wrote: Hi Frank,
Attribute 'rb_flags' on
On 19 December 2016 at 05:29, Frank Wang
wrote: baseobjspace.W_Root'> 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 avoid having random attributes accidentally move up to W_Root).
A bientôt,
Armin.
------------------------------------------------------------------------
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
participants (4)
-
Armin Rigo
-
Carl Friedrich Bolz
-
Frank Wang
-
William ML Leslie