[issue45010] Remove support of special method __div__ in unittest.mock

2021-08-26 Thread Łukasz Langa
Łukasz Langa added the comment: Agreed, let's get rid of it. Thanks! I grepped for this and there's still one left-over here: https://github.com/python/cpython/blob/f9cd40f5e242d3c64cc20a5064500f5fe864f91f/Lib/importlib/metadata/_meta.py#L40-L41 Fortunately, this was already fixed upstream:

[issue45010] Remove support of special method __div__ in unittest.mock

2021-08-26 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset f9cd40f5e242d3c64cc20a5064500f5fe864f91f by Serhiy Storchaka in branch 'main': bpo-45010: Remove support of special method __div__ in unittest.mock (GH-27965) https://github.com/python/cpython/commit/f9cd40f5e242d3c64cc20a5064500f5fe864f91f -

[issue45010] Remove support of special method __div__ in unittest.mock

2021-08-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26412 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27965 ___ Python tracker ___

[issue45010] Remove support of special method __div__ in unittest.mock

2021-08-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was kept in the previous clean up in issue23641 because I had doubts. But now I do not see reasons to keep it. Rather keeping it can confuse users. -- ___ Python tracker _

[issue45010] Remove support of special method __div__ in unittest.mock

2021-08-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Special method __div__ was used in Python 2, but is not used in Python 3. I think it can be removed from the list of supported special methods in unittest.mock. -- components: Library (Lib) messages: 400314 nosy: michael.foord, serhiy.storchaka p