Message390823
| Author |
vstinner |
| Recipients |
Mark.Shannon, mark.dickinson, methane, rhettinger, serhiy.storchaka, vstinner |
| Date |
2021年04月12日.08:07:42 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1618214863.23.0.617433936757.issue43682@roundup.psfhosted.org> |
| In-reply-to |
| Content |
Ok, static methods are now callable in Python 3.10. Moreover, @staticmethod and @classmethod copy attributes from the callable object, same as functools.wraps().
Thanks to this change, I was able to propose to PR 25354 "bpo-43680: _pyio.open() becomes a static method".
Serhiy: if you want to "Implement __get__ for C functions", I suggest you opening a new issue for that. To be honest, I'm a little bit scared by the migration path, I expect that it will require to fix *many* projects. |
|