Lines Matching refs:maxlen
104 Py_ssize_t maxlen; member
118 if (d->maxlen != -1 && d->len > d->maxlen) { \
120 assert(rv != NULL && d->len <= d->maxlen); \
151 deque->maxlen = -1; in deque_new()
313 if (deque->maxlen == 0) in deque_extend()
365 if (deque->maxlen == 0) in deque_extendleft()
863 if (((dequeobject *)deque)->maxlen == -1) in deque_copy()
867 deque, ((dequeobject *)deque)->maxlen, NULL); in deque_copy()
894 if (deque->maxlen == -1) in deque_reduce()
897 result = Py_BuildValue("O(On)", Py_TYPE(deque), aslist, deque->maxlen); in deque_reduce()
899 if (deque->maxlen == -1) in deque_reduce()
902 result = Py_BuildValue("O(On)O", Py_TYPE(deque), aslist, deque->maxlen, dict); in deque_reduce()
929 if (((dequeobject *)deque)->maxlen != -1) in deque_repr()
931 ((dequeobject *)deque)->maxlen); in deque_repr()
990 if (((dequeobject *)deque)->maxlen == -1) in deque_tp_print()
993 fprintf(fp, "], maxlen=%" PY_FORMAT_SIZE_T "d)", ((dequeobject *)deque)->maxlen); in deque_tp_print()
1082 Py_ssize_t maxlen = -1; in deque_init() local
1088 maxlen = PyInt_AsSsize_t(maxlenobj); in deque_init()
1089 if (maxlen == -1 && PyErr_Occurred()) in deque_init()
1091 if (maxlen < 0) { in deque_init()
1096 deque->maxlen = maxlen; in deque_init()
1128 if (deque->maxlen == -1) in deque_get_maxlen()
1130 return PyInt_FromSsize_t(deque->maxlen); in deque_get_maxlen()