Serhiy Storchaka <[email protected]> added the comment:
This is due to use functools.wraps(). If __all__ is not defined all non-builtin
functions should have correct __module__ to be displayed by pydoc.
functools.wraps() assigns __module__, __name__, __qualname__, __doc__ and
__annotations__. __module__ should be preserved ('signal', not '_signal'),
__name__ and __qualname__ are already correct, __annotations__ does not exist.
So only __doc__ should be copied.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue27718>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com