This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.
History
Date User Action Args
2021-04-12 08:07:43vstinnersetrecipients: + vstinner, rhettinger, mark.dickinson, methane, Mark.Shannon, serhiy.storchaka
2021-04-12 08:07:43vstinnersetmessageid: <1618214863.23.0.617433936757.issue43682@roundup.psfhosted.org>
2021-04-12 08:07:43vstinnerlinkissue43682 messages
2021-04-12 08:07:42vstinnercreate