2.9.6. Explanation of less familiar Python statements from Topic 6 – Servers

traceback.print_exc()

Found on page 456 inside an except block. This is a way to print the execution stack when an exception occurs without raising the exception. In this usage, it allows the server to continue to run, which might be useful for debugging and development purposes. It is not real clear to me that a statement like this is desired in production code. I’m not real certain about this, so if you have information related to this, please let me know.

Previous topic

2.9.5. Explanation of less familiar Python statements from Topic 5 – SSL

Next topic

3. Topic 1 – Programming with Sockets

This Page