Author: mattip <matti.pi...@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): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit