Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

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).

Alternate option: make staticmethod(func) returning func if it is not a 
descriptor.

----------
nosy: +serhiy.storchaka

_______________________________________
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