Re: Use of context managers with DB API 2
Vernon Cole <[email protected]>
| Newsgroups | gmane.comp.python.db |
|---|---|
| Message-ID | <CAH-ZgAek=EW+K77mwWJSa6rSGJmC-ZtSAv9J3EmPNzgAM2-OFQ@mail.gmail.com> |
I've been scratching my head over this question, too. Someone (Christoph?) please craft for us a little sample program, as small as possible, showing how this ought to look in practice. It ought to be obvious (see PEP 20 aphorism 13) but I am in need of a Dutch person (see PEP 20 aphorism 14) to point it out to me. I will happily implement a sample of the right-looking solution into a fork of adodbapi (which is in pure Python and can talk to a LOT of different databases) to kick it around for testing. -- Vernon Cole _______________________________________________ DB-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/db-sig