Author: Armin Rigo <[email protected]>
Branch: null_byte_after_str
Changeset: r85945:6b77b11738cf
Date: 2016-07-31 09:42 +0200
http://bitbucket.org/pypy/pypy/changeset/6b77b11738cf/

Log:    Can't really do shrinklength() on a ll2ctypesified object

diff --git a/rpython/rtyper/lltypesystem/ll2ctypes.py 
b/rpython/rtyper/lltypesystem/ll2ctypes.py
--- a/rpython/rtyper/lltypesystem/ll2ctypes.py
+++ b/rpython/rtyper/lltypesystem/ll2ctypes.py
@@ -697,6 +697,9 @@
         # we have no clue, so we allow whatever index
         return 0, maxint
 
+    def shrinklength(self, newlength):
+        raise NotImplementedError
+
     def getitem(self, index, uninitialized_ok=False):
         res = self._storage.contents._getitem(index, boundscheck=False)
         if isinstance(self._TYPE.OF, lltype.ContainerType):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to