Lines Matching defs:size
29 to minimize the size of the element structure itself (this only
435 Py_ssize_t size;
447 size = self->extra->length + extra; /* never overflows */
449 if (size > self->extra->allocated) {
451 size = (size >> 3) + (size < 9 ? 3 : 6) + size;
457 size = size ? size : 1;
458 if ((size_t)size > PY_SSIZE_T_MAX/sizeof(PyObject*))
466 size * sizeof(PyObject*));
470 children = PyObject_Malloc(size * sizeof(PyObject*));
478 self->extra->allocated = size;
1876 "attempt to assign sequence of size %zd "
1877 "to extended slice of size %zd",
2326 Py_ssize_t index; /* current stack size (0 means empty) */
2752 Py_ssize_t size = PyBytes_GET_SIZE(self->data);
2753 if (_PyBytes_Resize(&self->data, size + 1) < 0)
2755 PyBytes_AS_STRING(self->data)[size] = PyBytes_AS_STRING(data)[0];
2990 /* FIXME: check stack size? */
3077 Py_ssize_t size = (Py_ssize_t) strlen(string);
3082 key = PyBytes_FromStringAndSize(string, size);
3100 for (i = 0; i < size; i++)
3103 if (i != size) {
3105 tag = PyBytes_FromStringAndSize(NULL, size+1);
3112 memcpy(p+1, string, size);
3113 size++;
3122 value = PyUnicode_DecodeUTF8(p, size, "strict");
3897 PyErr_SetString(PyExc_OverflowError, "size does not fit in an int");
3911 PyErr_SetString(PyExc_OverflowError, "size does not fit in an int");
3979 PyErr_SetString(PyExc_OverflowError, "size does not fit in an int");
4415 (size_t)expat_capi->size < sizeof(struct PyExpat_CAPI) ||