Message349007
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. |
|
Date |
User |
Action |
Args |
2019-08-04 21:23:04 | jdemeyer | set | recipients:
+ jdemeyer, vstinner |
2019-08-04 21:23:04 | jdemeyer | set | messageid: <1564953784.67.0.632651482557.issue37645@roundup.psfhosted.org> |
2019-08-04 21:23:04 | jdemeyer | link | issue37645 messages |
2019-08-04 21:23:04 | jdemeyer | create | |
|