Ken Jin <kenjin4...@gmail.com> added the comment:

@Pablo yup the 3.10 opcache used tp_version_tag. But it also does identity 
(pointer) comparison of type/class object 
https://github.com/python/cpython/blob/3.10/Python/ceval.c#L3432. Which is why 
it doesn't fail.

I created this issue because we don't do type pointer comparisons anymore in 
3.11's new specialization infrastructure, and rely only on tp_version_tag and 
dict keys version.

----------

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

Reply via email to