Author: Maciej Fijalkowski <[email protected]>
Branch: kill-more-multimethods
Changeset: r51755:ef9ea1a64a8e
Date: 2012-01-25 16:49 +0200
http://bitbucket.org/pypy/pypy/changeset/ef9ea1a64a8e/

Log:    a branch to perform some experiments on killing some multimethods. a
        performance experiment (Completely invalid)

diff --git a/pypy/objspace/std/tupleobject.py b/pypy/objspace/std/tupleobject.py
--- a/pypy/objspace/std/tupleobject.py
+++ b/pypy/objspace/std/tupleobject.py
@@ -54,11 +54,12 @@
 def getitem__Tuple_ANY(space, w_tuple, w_index):
     # getindex_w should get a second argument space.w_IndexError,
     # but that doesn't exist the first time this is called.
-    try:
-        w_IndexError = space.w_IndexError
-    except AttributeError:
-        w_IndexError = None
-    index = space.getindex_w(w_index, w_IndexError, "tuple index")
+    #try:
+    #    w_IndexError = space.w_IndexError
+    #except AttributeError:
+    #    w_IndexError = None
+    #index = space.getindex_w(w_index, w_IndexError, "tuple index")
+    index = space.int_w(w_index)
     try:
         return w_tuple.wrappeditems[index]
     except IndexError:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to