Message390738
| Author |
vstinner |
| Recipients |
Mark.Shannon, mark.dickinson, methane, rhettinger, serhiy.storchaka, vstinner |
| Date |
2021年04月10日.20:02:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1618084932.97.0.451159197014.issue43682@roundup.psfhosted.org> |
| In-reply-to |
| Content |
> Implement __get__ for C functions. Of course it is breaking change so we should first emit a warning. It will force all users to use staticmethod explicitly if they set a C function as a class attribute. We can also start emitting warnings for all callable non-descriptor class attributes.
Well... such change would impact way more code and sounds to require a painful migration plan.
Also, it doesn't prevent to make static methods callable, no? |
|