Lines Matching refs:new_deque
520 dequeobject *new_deque; in deque_copy() local
523 new_deque = (dequeobject *)deque_new(&deque_type, (PyObject *)NULL, (PyObject *)NULL); in deque_copy()
524 if (new_deque == NULL) in deque_copy()
526 new_deque->maxlen = old_deque->maxlen; in deque_copy()
530 rv = deque_append(new_deque, item); in deque_copy()
532 rv = deque_extend(new_deque, deque); in deque_copy()
536 return (PyObject *)new_deque; in deque_copy()
538 Py_DECREF(new_deque); in deque_copy()
562 PyObject *new_deque, *result; in deque_concat() local
575 new_deque = deque_copy((PyObject *)deque); in deque_concat()
576 if (new_deque == NULL) in deque_concat()
578 result = deque_extend((dequeobject *)new_deque, other); in deque_concat()
580 Py_DECREF(new_deque); in deque_concat()
584 return new_deque; in deque_concat()
764 dequeobject *new_deque; in deque_repeat() local
767 new_deque = (dequeobject *)deque_copy((PyObject *) deque); in deque_repeat()
768 if (new_deque == NULL) in deque_repeat()
770 rv = deque_inplace_repeat(new_deque, n); in deque_repeat()
771 Py_DECREF(new_deque); in deque_repeat()