Message390496
| Author |
vstinner |
| Recipients |
Mark.Shannon, mark.dickinson, rhettinger, serhiy.storchaka, vstinner |
| Date |
2021年04月07日.23:16:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1617837364.67.0.588350471795.issue43682@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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. |
|