Author: Manuel Jacob
Branch: remove-tuple-smm
Changeset: r64404:61e272188959
Date: 2013-05-21 16:22 +0200
http://bitbucket.org/pypy/pypy/changeset/61e272188959/
Log: Remove bootstrapping magic and see what happens.
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
@@ -171,13 +171,7 @@
start += step
return space.newtuple(subitems)
- # 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")
+ index = space.getindex_w(w_index, space.w_IndexError, "tuple index")
try:
return self.wrappeditems[index]
except IndexError:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit