[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-db-sig
Subject:    Re: [DB-SIG] Use of context managers with DB API 2
From:       Federico Di Gregorio <fog () dndg ! it>
Date:       2012-11-05 9:34:57
Message-ID: 50978841.7020903 () dndg ! it
[Download RAW message or body]

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                         federico.digregorio@dndg.it
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  -  DB-SIG@python.org
http://mail.python.org/mailman/listinfo/db-sig
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic