]> granicus.if.org Git - python/commit
Issue #11004: Repair edge case in deque.count().
authorRaymond Hettinger <python@rcn.com>
Tue, 25 Jan 2011 21:32:39 +0000 (21:32 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 25 Jan 2011 21:32:39 +0000 (21:32 +0000)
commit512d2cc64328d06f4ff627497ab444e83e513348
tree6d3599b5f69310a74dba4eb02c79e91899aba4a0
parent5543e8135240cfe4f3d1021c1debe752e3cd7309
Issue #11004:  Repair edge case in deque.count().
(Reviewed by Georg Brandl.)

Also made similar changes to deque.reverse() though this wasn't
strictly necessary (the edge case cannot occur with two pointers
moving to meet in the middle).  Making the change in reverse()
was more a matter of future-proofing.
Lib/test/test_deque.py
Misc/NEWS
Modules/_collectionsmodule.c