Oleg Iarygin <o...@arhadthedev.net> added the comment:

> because this modification does not affect behavior

Unfortunately, this one (that I missed by not reading the report thoroughly) 
makes the framework totally unsuitable for CI.

However, looking at such false positives allows to muse about reasons behind 
design choises. For example (in a snippet you cited), why Python runtime stores 
bases as a tuple, not as a linked list. Anyway, application of the method 
resolution order scans them sequentially, they are not of a primitive type (so 
tuples give no optimization), a call of bases.index() may be replaced with a 
reference property inside class internals, etc.

Though, I perfectly understand that such treatment leads to immense amount of 
refactoring with no performance gain, probably counterweighted with removal of 
couple of internal packages that will become unused after it. That's why I 
wrote about "a task of the OP themselves".

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45672>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to