Re: Use of context managers with DB API 2
Daniele Varrazzo <[email protected]>
| Newsgroups | gmane.comp.python.db |
|---|---|
| Message-ID | <CA+mi_8Z4RZ96Oo-fJ019Azpyd5EUHw0SNywNJ7R=Eadewc6ygQ@mail.gmail.com> |
On Mon, Nov 5, 2012 at 9:28 AM, M.-A. Lemburg <[email protected]> wrote: > On 04.11.2012 23:24, Christoph Zwerschke wrote: >> To wrap everything up, as a result of our discussion, I will do the following in the next version of >> PyGreSQL: >> >> * make connections context managers for transactions >> (may not be the optimal solution, but it's already established) >> * make cursors self-closing context managers (evident) >> * not implement shortcut functions (see above) >> >> Is everybody happy with that? > > Sounds good :-) Is there a final wording for the context managers in the dbapi? -- Daniele _______________________________________________ DB-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/db-sig