Lines Matching defs:new
110 PyByteArrayObject *new;
124 new = PyObject_New(PyByteArrayObject, &PyByteArray_Type);
125 if (new == NULL)
129 new->ob_bytes = NULL;
134 new->ob_bytes = PyObject_Malloc(alloc);
135 if (new->ob_bytes == NULL) {
136 Py_DECREF(new);
140 memcpy(new->ob_bytes, bytes, size);
141 new->ob_bytes[size] = '\0'; /* Trailing null byte */
143 Py_SET_SIZE(new, size);
144 new->ob_alloc = alloc;
145 new->ob_start = new->ob_bytes;
146 new->ob_exports = 0;
148 return (PyObject *)new;
780 PyObject *encoded, *new;
790 new = bytearray_iconcat(self, encoded);
792 if (new == NULL)
794 Py_DECREF(new);
1401 new: Py_buffer
1407 Return a copy with all occurrences of substring old replaced by new.
1415 Py_buffer *new, Py_ssize_t count)
1420 (const char *)new->buf, new->len, count);
1475 separator itself, and the part after it as new bytearray objects.
1512 separator, the separator itself, and the part after it as new bytearray
2004 The result is returned as a new bytearray object.