STINNER Victor <vstin...@python.org> added the comment:

Serhiy Storchaka:
> If make staticmethod a calllable and always wrap open, we need to change also 
> its repr and add the __doc__ attribute (and perhaps other attributes to make 
> it more interchangeable with the original function).

You right and I like this idea! I created PR 25268 to inherit the function 
attributes (__name__, __doc__, etc.) in @staticmethod and @classmethod wrappers.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43682>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to