Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
My instincts are to leave this alone and not gum up heavily trafficked core business logic. I don't like the external calls, the extra increfs and decrefs (and possible rentrancy issues), performance impact, or the pattern of holding the exception across a call that can invoke arbitrary code. The code for slot_tp_getattr_hook() is currently very clean and it would be nice to keep it that way. ISTM that the problem is better addressed by unittesting, linting, and static type checking rather than by gumming-up runtime. ---------- nosy: +tim.peters versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39865> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com