--- /dev/null
+Fix format strings used for stderrprinter and re.Match reprs. Patch by
+Stephan Hohe.
if (group0 == NULL)
return NULL;
result = PyUnicode_FromFormat(
- "<%s object; span=(%d, %d), match=%.50R>",
+ "<%s object; span=(%zd, %zd), match=%.50R>",
Py_TYPE(self)->tp_name,
self->mark[0], self->mark[1], group0);
Py_DECREF(group0);
static PyObject *
stdprinter_repr(PyStdPrinter_Object *self)
{
- return PyUnicode_FromFormat("<stdprinter(fd=%d) object at 0x%x>",
+ return PyUnicode_FromFormat("<stdprinter(fd=%d) object at %p>",
self->fd, self);
}