[issue40519] Preserve AttributeError exception context in __getattr__

2020-05-05 Thread Arusekk
Arusekk added the comment: Feel free to reuse the patches if you have better ideas -- Added file: https://bugs.python.org/file49123/robust.patch ___ Python tracker ___ ___

[issue40519] Preserve AttributeError exception context in __getattr__

2020-05-05 Thread Arusekk
New submission from Arusekk : This is another attempt at issue 39865, but with a different attitude. Please see that issue for some extra motivation for this change. My suggestion is to change getattr logic, which now is (in this case): def getattr(obj, attr): try: return normal_g