In Python 3.10, you can report all the errors that a function has failed to resolve. Zak Dodds wrote PEP 678 for this feature; it was received surprisingly well. You can add strings to an exception and call it as many times as you want,. And they will appear in the default trace back that the interpreter prints.