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.

Author roysmith
Recipients roysmith
Date 2008-09-17.21:17:00
SpamBayes Score 0.0004331295
Marked as misclassified No
Message-id <1221686229.93.0.518355205894.issue3891@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-09-17 21:17:10roysmithsetrecipients: + roysmith
2008-09-17 21:17:09roysmithsetmessageid: <1221686229.93.0.518355205894.issue3891@psf.upfronthosting.co.za>
2008-09-17 21:17:01roysmithlinkissue3891 messages
2008-09-17 21:17:01roysmithcreate