Lines Matching refs:old
457 "replace($self, old, new, count=-1, /)\n"
460 "Return a copy with all occurrences of substring old replaced by new.\n"
473 bytes_replace_impl(PyBytesObject *self, Py_buffer *old, Py_buffer *new,
480 Py_buffer old = {NULL, NULL};
487 if (PyObject_GetBuffer(args[0], &old, PyBUF_SIMPLE) != 0) {
490 if (!PyBuffer_IsContiguous(&old, 'C')) {
517 return_value = bytes_replace_impl(self, &old, &new, count);
520 /* Cleanup for old */
521 if (old.obj) {
522 PyBuffer_Release(&old);