durusmail: quixote-users: Releasing Resources w/ SCGI
Releasing Resources w/ SCGI
2004-10-18
2004-10-19
2004-10-19
2004-10-19
2004-10-19
Releasing Resources w/ SCGI
Jesse Pavel
2004-10-19

Ah, thanks for the info! The solution in the Wiki works well.

Cheers,
Jesse

David K. Hess on October 19, 2004 wrote:
 >
 > __del__ is not a good way to handle this. When exiting, some things can
 > fail unexpectedly causing spurious errors (like the print oddity you
 > describe). I ran into this using MySQLdb.
 >
 > Check out the Quixote Wiki entry on this topic:
 >
 > http://www.quixote.ca/qx/ReusingConnections
 >
 > An explicit cleanup handler plus a finally: clause does the trick.
 >
 > Dave
 >

reply