Author jdemeyer
Recipients jdemeyer, vstinner
Date 2019-08-04.21:23:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564953784.67.0.632651482557.issue37645@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-08-04 21:23:04jdemeyersetrecipients: + jdemeyer, vstinner
2019-08-04 21:23:04jdemeyersetmessageid: <1564953784.67.0.632651482557.issue37645@roundup.psfhosted.org>
2019-08-04 21:23:04jdemeyerlinkissue37645 messages
2019-08-04 21:23:04jdemeyercreate