[issue45100] Improve help() by making typing.overload() information accessible at runtime
Raymond Hettinger
report at bugs.python.org
Sun Sep 5 12:53:27 EDT 2021
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
Note, I'm not proposing a create_function() decorator. That is just for the proof of concept. The actual logic would go into normal function creation, the same place that __annotations__ gets added.
Also, there may be a better place than func.__globals__ to accumulate the overloads. For the proof-of-concept, it was just the easiest way to go.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45100>
_______________________________________
More information about the Python-bugs-list
mailing list