Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

> Do you see a way to make C functions and Python functions behave the same?

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.

----------

_______________________________________
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

Reply via email to