bpo-29816: Shift operation now has less opportunity to raise OverflowError. (#680)
ValueError always is raised rather than OverflowError for negative counts. Shifting zero with non-negative count always returns zero.
S
Serhiy Storchaka committed
918403cfc3304d27e80fb792357f40bb3ba69c4e
Parent: 762bf40
Committed by GitHub <noreply@github.com>
on 3/30/2017, 6:47:07 AM