Issue 26496: Exhausted deque iterator should free a reference to a deque (original) (raw)

Issue26496

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/70683

classification

Title: Exhausted deque iterator should free a reference to a deque
Type: enhancement Stage: needs patch
Components: Extension Modules Versions: Python 3.6

process

Status: closed Resolution: rejected
Dependencies: 26494 Superseder:
Assigned To: rhettinger Nosy List: rhettinger, serhiy.storchaka
Priority: low Keywords:

Created on 2016-03-06 18:53 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg261265 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-03-06 18:53
It is common that exhausted iterator frees a reference to iterating sequence. All builtin sequences (list, tuple, str, bytes, bytearray), set and dict support this. It would be nice if dequeue will support this too.
msg261282 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2016-03-07 06:51
I don't think this is even slightly important but will take a look to see if there is an easy way to incorporate it that doesn't mess-up previous efforts to fine-tune the iterator.
msg261283 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-03-07 07:21
This should be not very hard. It is just reminder to me, I'll write a patch after closing related and .
msg275979 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2016-09-12 06:56
I would like to leave this one alone.
History
Date User Action Args
2022-04-11 14:58:28 admin set github: 70683
2016-09-12 06:56:00 rhettinger set status: open -> closedresolution: rejectedmessages: +
2016-03-07 07:21:28 serhiy.storchaka set dependencies: + Double deallocation on iterator exhaustingmessages: +
2016-03-07 06:51:48 rhettinger set priority: normal -> lowassignee: rhettingermessages: +
2016-03-07 06:22:17 serhiy.storchaka set title: Exhausted dequeue iterator should free a reference to a deque -> Exhausted deque iterator should free a reference to a deque
2016-03-06 18:53:27 serhiy.storchaka create