sys.exc_clear

exc_clear()

This function clears all information relating to the current or last exception that occurred in the current thread. After calling this function, sys.exc_info will return three None values until another exception is raised in the current thread or the execution stack returns to a frame where another exception is being handled.

This function is only needed in only a few obscure situations. These include logging and error handling systems that report information on the last or current exception. This function can also be used to try to free resources and trigger object finalization, though no guarantee is made as to what objects will be freed, if any. New in version 2.3.

 

A Django site. this page was rendered by a django application in 0.02s 2008-12-04 00:55:47.624865. hosted by webfaction.