bpo-44558: Make the implementation consistency of operator.indexOf (GH-27012)

(cherry picked from commit 09302405d22e86884d6058226790c0cdf5b72f14)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
3 files changed