Commit ea7d3f0b authored by Kevin Modzelewski's avatar Kevin Modzelewski

Get file_writing.py working

parent 6d18ce0a
......@@ -990,7 +990,8 @@ extern "C" Box* PyList_GetSlice(PyObject* a, Py_ssize_t ilow, Py_ssize_t ihigh)
assert(PyList_Check(a));
BoxedList* self = static_cast<BoxedList*>(a);
// Lots of extra copies here; we can do better if we need to:
return listGetitemSlice<CAPI>(self, new BoxedSlice(boxInt(ilow), boxInt(ihigh), boxInt(1)));
return listGetitemSlice<CAPI>(
self, autoDecref(new BoxedSlice(autoDecref(boxInt(ilow)), autoDecref(boxInt(ihigh)), autoDecref(boxInt(1)))));
}
static inline int listContainsShared(BoxedList* self, Box* elt) {
......
# expected: reffail
import os
import tempfile
import array
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment