Author: Antonio Cuni <[email protected]>
Branch: cpyext-fast-typecheck
Changeset: r94123:8375d03c4b5a
Date: 2018-03-23 15:06 +0000
http://bitbucket.org/pypy/pypy/changeset/8375d03c4b5a/
Log: translation fix: we need pass a non-resizable list because of
immutable_fields[*]
diff --git a/pypy/module/cpyext/typeobject.py b/pypy/module/cpyext/typeobject.py
--- a/pypy/module/cpyext/typeobject.py
+++ b/pypy/module/cpyext/typeobject.py
@@ -340,7 +340,7 @@
continue
assert issubclass(wrapper_class, W_PyCWrapperObject)
- w_obj = wrapper_class(space, pto, method_name, doc, func_voidp,
offset=offset)
+ w_obj = wrapper_class(space, pto, method_name, doc, func_voidp,
offset=offset[:])
dict_w[method_name] = w_obj
if pto.c_tp_doc:
dict_w['__doc__'] = space.newtext(
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit