[issue45671] str(CancelledError()) is empty
lilydjwg
report at bugs.python.org
Fri Oct 29 23:19:04 EDT 2021
lilydjwg <lilydjwg at gmail.com> added the comment:
Oh, I find that many exceptions return an empty string when created without any arguments, but most raised ones do have a descriptive error message.
Yes, if it's going to change, we'd change all of them. But now I doubt if it's worth the effort... What if we change so that if the exception were going to return an empty string, it returns the class name instead?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45671>
_______________________________________
More information about the Python-bugs-list
mailing list