[issue35083] Fix documentation for __instancecheck__

2020-12-15 Thread M. Eric Irrgang


M. Eric Irrgang  added the comment:

Actually, it looks like performance concerns were raised as issues 
[2303](https://bugs.python.org/issue2303) and 
[2534](https://bugs.python.org/issue2534). For #2534, the issue was different.

For issue #2303, behavior-changing optimization was proposed. The first comment 
describes the cost of requiring a check to whether `__instancecheck__` is 
present (though I don't see what the comment refers to in 
1b7f891f416830d0c46ca1c9e1bfe62f05cda655, which is the commit containing the 
cited r58099, as best I can tell). However, the discussion may have ended 
prematurely when the optimization https://bugs.python.org/file9742/isinst.diff 
slipped in through a different change.

See https://bugs.python.org/issue2303 for discussion.

For what it's worth, Guido (author of PEP 3119) did not seem to object to 
https://codereview.appspot.com/504/diff/1/Objects/abstract.c and no one seems 
to have discussed the apparent inconsistency with PEP 3119.

--

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



[issue35083] Fix documentation for __instancecheck__

2020-12-15 Thread M. Eric Irrgang


M. Eric Irrgang  added the comment:

The optimization appears to have been made without this level of discussion. 
The change to PEP 3119 was likely overlooked. The intended PEP 3119 behavior 
seems clear and reasonable.

r61575 was a small part of the SVN merge that became git commit 
d5e2b6f3bcef9fea744bef331ad7278052223f11

Suggest reverting the `/* Quick test for an exact match */`.

If either the optimization is important, or the documented PEP 3119 behavior 
should be revised, suggest re-raising the issue as a proposed revision to PEP 
3119.

--

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



[issue35083] Fix documentation for __instancecheck__

2020-12-15 Thread M. Eric Irrgang


Change by M. Eric Irrgang :


--
nosy: +eirrgang

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



[issue32996] Improve What's New in 3.7

2019-10-08 Thread M. Eric Irrgang


Change by M. Eric Irrgang :


--
pull_requests: +16231
pull_request: https://github.com/python/cpython/pull/16648

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