[pypy-commit] pypy dynamic-specialized-tuple: 2 more fixes
alex_gaynor
noreply at buildbot.pypy.org
Tue Apr 17 17:07:09 CEST 2012
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: dynamic-specialized-tuple
Changeset: r54466:cf93e89d4822
Date: 2012-04-17 11:06 -0400
http://bitbucket.org/pypy/pypy/changeset/cf93e89d4822/
Log: 2 more fixes
diff --git a/pypy/module/cpyext/sequence.py b/pypy/module/cpyext/sequence.py
--- a/pypy/module/cpyext/sequence.py
+++ b/pypy/module/cpyext/sequence.py
@@ -59,7 +59,7 @@
w_res = w_obj.getitem(index)
else:
assert isinstance(w_obj, tupleobject.W_TupleObject)
- w_res = w_obj.wrappeditems[index]
+ w_res = w_obj.getitem(index)
return borrow_from(w_obj, w_res)
@cpython_api([PyObject], Py_ssize_t, error=CANNOT_FAIL)
@@ -72,7 +72,7 @@
if isinstance(w_obj, listobject.W_ListObject):
return w_obj.length()
assert isinstance(w_obj, tupleobject.W_TupleObject)
- return len(w_obj.wrappeditems)
+ return w_obj.length()
@cpython_api([PyObject, Py_ssize_t, Py_ssize_t], PyObject)
def PySequence_GetSlice(space, w_obj, start, end):
More information about the pypy-commit
mailing list