Author: Armin Rigo <[email protected]>
Branch: cpyext-gc-support
Changeset: r80420:cfafdd5f1139
Date: 2015-10-24 10:31 +0100
http://bitbucket.org/pypy/pypy/changeset/cfafdd5f1139/
Log: Translates (interestingly, as this code unexpectedly *is* RPython)
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
@@ -146,7 +146,6 @@
assert len(slot_names) == 2
struct = getattr(pto, slot_names[0])
if not struct:
- assert not space.config.translating
assert not pto.c_tp_flags & Py_TPFLAGS_HEAPTYPE
if slot_names[0] == 'c_tp_as_number':
STRUCT_TYPE = PyNumberMethods
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit