[Tutor] Opening and closing SQLite db

Noah Hall enalicho at gmail.com
Tue Dec 28 13:23:46 CET 2010


>
> > But to be sure, it is perfectly safe and valid to open the database on
> program startup, commit changes during the process and close it

> on exit (or unhandled exception)?


As long as it makes sense to do so, yes. There's no point having an open
connection to a database if there doesn't need to be.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101228/3ae0f8db/attachment.html>


More information about the Tutor mailing list