__getattr__ is much slower in Python3.11

王翔 xiang_163_ok at 163.com
Wed Feb 22 05:14:33 EST 2023


hello everyone:
I upgrade my project from Py3.10.4 to Py3.11.1 recently and I noticed Py3.11.1 is faster than Py3.10.4 except for some testcase, like __getattr__.
This is my test code in python discussion:
https://discuss.python.org/t/getattr-is-much-slower-in-python3-11/24028


But no one knows why. I don't know whether this is a Python bug so I wrote this email. 
Thank you for your time.


More information about the Python-list mailing list