Chris Withers <ch...@withers.org> added the comment:
The tough one is that no-one wants an ugly sys._getframe() call, but by avoiding it in the standard library, we force each library that needs this to have the ugly sys._getframe() call rather than it being an unpleasant implementation detail of get_type_hints that users of the function don't have to know about. That said, I've only hit this so far when writing a unit test, but will update this issue if I see real-world cases of this. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41872> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com