[Tutor] sqlite3 COMMIT directive

Alex Kleider akleider at sonic.net
Tue Oct 1 11:57:03 CEST 2013


Thank you to respondents.

That the code worked at all is something I don't understand.
As Alan G pointed out, I had forgotten to include the "cur = 
con.cursor()" line.
After this was corrected and the try/except statement deleted, it worked 
as I expected.

Thanks to "-nick" for pointing me to the references regarding 
transactions.  That's not easy stuff.
I was aware that 'bare except' statements are to be eschewed but now, 
thanks to Mark Lawrence, have a better idea of why.

Much appreciated.

alex


More information about the Tutor mailing list