Re: Does .commit() ensure the .execute()'s and .executemany()'s called before are run atomically?

Peng Yu <[email protected]>
Newsgroups gmane.comp.db.sqlite.general
Message-ID <CABrM6w=M7fJDK1=PJumAMWdtefGumhwS1m1z5+U00k5e1+N_5Q@mail.gmail.com>
Thanks. What is the purpose of contextlib.

If I just use `cur = conn.cursor()`, what problems it will cause?

>     with contextlib.closing(conn.cursor()) as cur:

-- 
Regards,
Peng
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.