On Sun, Jan 19, 2014 at 5:23 AM, Shai Berger <s...@platonix.com> wrote:
>
> Still, spreading with-blocks all over the code for this looks very ugly to
> me.
> I'd rather add an execute_single() or execute_and_close() method to the
> cursors instead. Perhaps even only as private API, as that usage is mostly
> common within Django's code.
>

You would rather deviate from PEP 249 to avoid requiring the users of a
cursor to explicitly close it? Interesting...

Regards,
Michael Manfre

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAGdCwBtzXMjwGnAAC33pKMRANWS%3D%2BGtfRbjcLWMj8Wgssq1SBw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to