Kaydet (Commit) b4bbcd76 authored tarafından Tim Peters's avatar Tim Peters

Ack! Restore the COUNT_ALLOCS one_strings code.

üst cf5ad5d6
......@@ -563,8 +563,12 @@ string_item(PyStringObject *a, register int i)
v = (PyObject *)characters[*pchar & UCHAR_MAX];
if (v == NULL)
v = PyString_FromStringAndSize(pchar, 1);
else
else {
#ifdef COUNT_ALLOCS
one_strings++;
#endif
Py_INCREF(v);
}
return v;
}
......
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