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 samuel72
Recipients samuel72
Date 2020-05-31.07:16:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590909361.92.0.18411743492.issue40832@roundup.psfhosted.org>
In-reply-to
Content
>>> bisect.bisect_right(l, 5.1, -1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: lo must be non-negative

>>> l
[0, 1, 2, 3, 4, 5, 5, 5, 6, 7, 8, 9]

>>> bisect.bisect_right(l, 5.1, 0, -2)
0

In order to be consistent with the behavior for lo and not return  wrong answers when hi is provided with a negative value
History
Date User Action Args
2020-05-31 07:16:01samuel72setrecipients: + samuel72
2020-05-31 07:16:01samuel72setmessageid: <1590909361.92.0.18411743492.issue40832@roundup.psfhosted.org>
2020-05-31 07:16:01samuel72linkissue40832 messages
2020-05-31 07:16:01samuel72create