[issue35118] Add peek() or first() method in queue
Alexey Volkov
report at bugs.python.org
Sat Mar 6 01:22:10 EST 2021
Alexey Volkov <alexey.volkov at ark-kun.com> added the comment:
>For Queue, I'm not sure I've ever seen any use case for peek. What do you have in mind?
I want to examine the first (oldest) element in queue and remove it if it's too old.
The queue should not be modified unless the oldest element is too old.
----------
nosy: +Ark-kun
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35118>
_______________________________________
More information about the Python-bugs-list
mailing list