Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

> We cannot change all user code, so we should change the interpreter code so 
> that it will work correctly with existing user code.

If we made a change that make all user code suddenly incorrect, that change 
should be reverted. The GC has clear rules about what tp_traverse should and 
should not do, and we should not violate those rules and make special cases in 
the gc just because we forced some classes to be incorrect. This will make much 
more difficult to reason about GC bugs, the tp_traverse implementation of 
classes and much difficult to maintain the GC itself.

----------

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

Reply via email to