[pypy-commit] pypy cpyext-ext: add NotImplemented getsiice, setslice
mattip
pypy.commits at gmail.com
Sat Feb 27 23:18:56 EST 2016
Author: mattip <matti.picus at gmail.com>
Branch: cpyext-ext
Changeset: r82595:67b8df2d7d8d
Date: 2016-02-27 20:58 -0500
http://bitbucket.org/pypy/pypy/changeset/67b8df2d7d8d/
Log: add NotImplemented getsiice, setslice
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
@@ -254,6 +254,17 @@
storage = self.unerase(w_list.lstorage)
return storage._elems
+ def getslice(self, w_list, start, stop, step, length):
+ #storage = self.unerase(w_list.lstorage)
+ raise oefmt(w_list.space.w_NotImplementedError,
+ "settting a slice of a PySequence_Fast is not supported")
+
+ def setslice(self, w_list, start, stop, step, length):
+ #storage = self.unerase(w_list.lstorage)
+ raise oefmt(w_list.space.w_NotImplementedError,
+ "settting a slice of a PySequence_Fast is not supported")
+
+
PyObjectList = lltype.Ptr(lltype.Array(PyObject, hints={'nolength': True}))
class CPyListStorage(object):
More information about the pypy-commit
mailing list