Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r69764:83b9a24138f1
Date: 2014-03-06 14:42 -0800
http://bitbucket.org/pypy/pypy/changeset/83b9a24138f1/
Log: restore these which we still rely on
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -1275,6 +1275,18 @@
else:
return index
+ def getslice(space, w_obj, w_start, w_stop):
+ w_slice = space.newslice(w_start, w_stop, space.w_None)
+ return space.getitem(w_obj, w_slice)
+
+ def setslice(space, w_obj, w_start, w_stop, w_sequence):
+ w_slice = space.newslice(w_start, w_stop, space.w_None)
+ return space.setitem(w_obj, w_slice, w_sequence)
+
+ def delslice(space, w_obj, w_start, w_stop):
+ w_slice = space.newslice(w_start, w_stop, space.w_None)
+ return space.delitem(w_obj, w_slice)
+
def r_longlong_w(self, w_obj, allow_conversion=True):
bigint = self.bigint_w(w_obj, allow_conversion)
try:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit