Issue #13623: Fix a performance regression introduced by issue #12170 in · python/cpython@f8eac00 · GitHub
Skip to content

Commit f8eac00

Browse files
author
Victor Stinner
committed
Issue #13623: Fix a performance regression introduced by issue #12170 in
bytes.find() and handle correctly OverflowError (raise the same ValueError than the error for -1).
1 parent e010fc0 commit f8eac00

2 files changed

Lines changed: 22 additions & 10 deletions

File tree

Lib/test/test_bytes.py

Lines changed: 5 additions & 0 deletions

Objects/stringlib/find.h

Lines changed: 17 additions & 10 deletions

0 commit comments

Comments
 (0)