[Python-ideas] Async API

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Oct 25 02:52:30 CEST 2012


On 25/10/12 11:47, Yury Selivanov wrote:
> Cleanup code for a DB connection
> *will* need to run queries to the database (at least in some circumstances).

That smells like a design problem to me. If something goes wrong,
the most you should have to do is roll back any transactions
you were in the middle of. Trying to perform further queries
is just inviting more trouble.

-- 
Greg



More information about the Python-ideas mailing list