This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jdemeyer
Recipients jdemeyer, vstinner
Date 2019-08-04.21:23:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
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: <[email protected]>
2019-08-04 21:23:04jdemeyerlinkissue37645 messages
2019-08-04 21:23:04jdemeyercreate