[Python-checkins] [python/cpython] 918403: bpo-29816: Shift operation now has less opportunit...

GitHub noreply at github.com
Thu Mar 30 02:47:08 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: 918403cfc3304d27e80fb792357f40bb3ba69c4e
      https://github.com/python/cpython/commit/918403cfc3304d27e80fb792357f40bb3ba69c4e
  Author: Serhiy Storchaka <storchaka at gmail.com>
  Date:   2017-03-30 (Thu, 30 Mar 2017)

  Changed paths:
    M Lib/test/test_long.py
    M Misc/NEWS
    M Objects/longobject.c

  Log Message:
  -----------
  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.




More information about the Python-checkins mailing list