[pypy-commit] pypy cpyext-fast-typecheck: translation fix: we need pass a non-resizable list because of immutable_fields[*]
antocuni
pypy.commits at gmail.com
Fri Mar 23 11:53:54 EDT 2018
Author: Antonio Cuni <anto.cuni at gmail.com>
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(
More information about the pypy-commit
mailing list