Message73344
Unless I'm missing something, the only way to tell if a deque is empty is
to try and pop() something and catch the resulting IndexError. This is
not only awkward, but mutates the data structure when you may not want to.
It should be trivial to implement, and run in O(1) time. |
|
Date |
User |
Action |
Args |
2008-09-17 21:17:10 | roysmith | set | recipients:
+ roysmith |
2008-09-17 21:17:09 | roysmith | set | messageid: <1221686229.93.0.518355205894.issue3891@psf.upfronthosting.co.za> |
2008-09-17 21:17:01 | roysmith | link | issue3891 messages |
2008-09-17 21:17:01 | roysmith | create | |
|