Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
This wasn't intended to be an exact equivalent. Instead, it focuses on the key action of classmethod which is prepending the class to the call. Though less accurate, the current version communicates better. I suggest adding a short comment to the effect that "newfunc" emulates "types.MethodType(self.f, klass)". ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37203> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com