Library
-------
+- Accessing io.StringIO.buffer now raises an AttributeError instead of
+ io.UnsupportedOperation.
+
- Issue #6271: mmap tried to close invalid file handle (-1) when annonymous.
(On Unix)
Py_RETURN_TRUE;
}
-static PyObject *
-stringio_buffer(stringio *self, void *context)
-{
- PyErr_SetString(IO_STATE->unsupported_operation,
- "buffer attribute is unsupported on type StringIO");
- return NULL;
-}
-
static PyObject *
stringio_closed(stringio *self, void *context)
{
Hopefully, a better solution, than adding these pseudo-attributes,
will be found.
*/
- {"buffer", (getter)stringio_buffer, NULL, NULL},
{"line_buffering", (getter)stringio_line_buffering, NULL, NULL},
{NULL}
};