SIGN IN SIGN UP

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.
R
Raymond Hettinger committed
512d2cc64328d06f4ff627497ab444e83e513348
Parent: 5543e81