[issue45100] Improve help() by making typing.overload() information accessible at runtime

Jelle Zijlstra report at bugs.python.org
Mon Feb 21 18:03:43 EST 2022


Jelle Zijlstra <jelle.zijlstra at gmail.com> added the comment:

I'm OK with not fully supporting overloads created in nested functions; that's a pretty marginal use case. But it's true that my proposed implementation would create a memory leak if someone does do that. I don't immediately see a way to fix that with weakrefs. Maybe we need to put something in the defining namespace, as Raymond suggested.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45100>
_______________________________________


More information about the Python-bugs-list mailing list