Jeroen Demeyer <jeroen.k.deme...@gmail.com> added the comment:
Another solution would be to change the __str__ of various function objects to a prettier output. For example, we currently have >>> def f(): pass >>> print(f) <function f at 0x7f9f4bbe5e18> We could change this to >>> def f(): pass >>> print(f) f() and then use "%S" to display the functions in error messages. But I have a feeling that this is a more controversial change than PR 14890. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37645> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com