[issue44558] Make the implementation consistency of operator.countOf/indexOf

2021-07-07 Thread Rupert Tombs
Change by Rupert Tombs : -- pull_requests: +25610 pull_request: https://github.com/python/cpython/pull/27054 ___ Python tracker <https://bugs.python.org/issue44

[issue44558] operator.countOf `is` / `==` inconsistency

2021-07-03 Thread Rupert Tombs
Change by Rupert Tombs : -- keywords: +patch pull_requests: +25567 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27007 ___ Python tracker <https://bugs.python.org/issu

[issue44558] operator.countOf `is` / `==` inconsistency

2021-07-03 Thread Rupert Tombs
New submission from Rupert Tombs : operator.countOf behaves differently in its docstring and its c and python implementations when `is` and `==` differ. help(countOf) -> countOf(a, b, /) Return the number of times b occurs in a. This could be read to say that it returns equal