In Effective Python, 3rd Edition, Item 102 (“Consider Searching Sorted Sequences with bisect”), page 501, the prose says the function should return the index that “is equal to or exceeds” the goal value.
The example implementation right below that line uses the condition:
if goal < value:
return index
This condition handles only the “greater than” case and ignores the “equal to” case mentioned in the text.
Just wanted to flag this discrepancy.
Thanks for the excellent book!