Guido van Rossum <gu...@python.org> added the comment:
> I use the same heuristic as Pypy: the callable is a bound method, the first > name in the definition is not named "self" and it was called with n+1 > positional arguments. Okay, that makes sense, you could have said so in the bug or PR description. :-) Do you also exclude class and static methods? I still worry that this might confuse users when a library for some reason uses a different name than 'self'. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42978> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com