Re: Use of context managers with DB API 2

Federico Di Gregorio <[email protected]>
Newsgroups gmane.comp.python.db
Message-ID <[email protected]>
On 05/11/2012 10:28, M.-A. Lemburg 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 :-)

Absolutely. :)

federico

-- 
Federico Di Gregorio                         [email protected]
Studio Associato Di Nunzio e Di Gregorio                  http://dndg.it
  We should forget about small efficiencies, say about 97% of the
   time: premature optimization is the root of all evil.    -- D.E.Knuth
_______________________________________________
DB-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/db-sig
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.