STINNER Victor <vstin...@python.org> added the comment:
> 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? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43682> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com