Lines Matching defs:new
408 /* Returns a new reference to a PyBytes object, or NULL on failure. */
1847 The result is returned as a new bytes object.
2196 new: Py_buffer
2202 Return a copy with all occurrences of substring old replaced by new.
2209 bytes_replace_impl(PyBytesObject *self, Py_buffer *old, Py_buffer *new,
2215 (const char *)new->buf, new->len, count);
2676 PyObject *new;
2682 new = PyBytes_FromStringAndSize(NULL, view.len);
2683 if (!new)
2685 if (PyBuffer_ToContiguous(((PyBytesObject *)new)->ob_sval,
2689 return new;
2692 Py_XDECREF(new);
3023 /* Multiple references, need to create new object */
3041 as creating a new bytes object and destroying the old one, only