Author: Lukas Diekmann <[email protected]>
Branch: 
Changeset: r44447:1a71c2e2dc13
Date: 2011-04-07 12:46 +0200
http://bitbucket.org/pypy/pypy/changeset/1a71c2e2dc13/

Log:    fail if type in tupleobject is neither W_TupleObject nor
        W_SmallTupleObject

diff --git a/pypy/module/cpyext/tupleobject.py 
b/pypy/module/cpyext/tupleobject.py
--- a/pypy/module/cpyext/tupleobject.py
+++ b/pypy/module/cpyext/tupleobject.py
@@ -28,6 +28,8 @@
         w_t.wrappeditems[pos] = w_obj
     elif isinstance(w_t, W_SmallTupleObject):
         w_t.setitem(pos, w_obj)
+    else:
+        assert False
 
 @cpython_api([PyObject, Py_ssize_t], PyObject)
 def PyTuple_GetItem(space, w_t, pos):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to