[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:

https://github.com/python/importlib_metadata/issues/334

Next time Jason syncs importlib.metadata with upstream this will be solved as 
well. Currently we're synced with 4.6.0 while the fix went in in 4.6.4.

Also fortunately, this is low-pri since this is only in type annotations.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-08-26 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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-08-26 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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-08-26 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
priority: normal
severity: normal
status: open
title: Remove support of special method __div__ in unittest.mock
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com