Message390823
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. |
|
Date |
User |
Action |
Args |
2021-04-12 08:07:43 | vstinner | set | recipients:
+ vstinner, rhettinger, mark.dickinson, methane, Mark.Shannon, serhiy.storchaka |
2021-04-12 08:07:43 | vstinner | set | messageid: <1618214863.23.0.617433936757.issue43682@roundup.psfhosted.org> |
2021-04-12 08:07:43 | vstinner | link | issue43682 messages |
2021-04-12 08:07:42 | vstinner | create | |
|