Re: [DB-SIG] Context manager support for cursors

2018-07-26 Thread Daniele Varrazzo
On Thu, Jul 26, 2018 at 4:30 AM, Daniel Lenski wrote: > On Tue, Jul 24, 2018 at 12:37 AM, Federico Di Gregorio wrote: >> On 06/21/2018 01:31 AM, Gerald Venzl wrote: >>> >>> Hi all, >>> >>> I was wondering whether there has been any particular reason that the >>> specification of the Cursor object

Re: [DB-SIG] Context manager support for cursors

2018-07-26 Thread Mike Bayer
On Thu, Jul 26, 2018 at 7:56 AM, Daniele Varrazzo wrote: > >> Python Database API Specification v3.0, anyone…? :-P > > In case there would be work in its direction, points to touch, on top > of my mind (implemented in various way by different drivers) are also > likely: > > - unicode support yes

Re: [DB-SIG] Context manager support for cursors

2018-07-26 Thread Daniele Varrazzo
On Thu, Jul 26, 2018 at 2:18 PM, Mike Bayer wrote: Oh hi! If there is someone who has experience in how much effort it takes to beat every different driver into submission that's you :) >> - should execute(query) with no param go for a round of placeholders >> escape on the string as it would e

Re: [DB-SIG] Context manager support for cursors

2018-07-26 Thread Mike Bayer
On Thu, Jul 26, 2018 at 9:45 AM, Daniele Varrazzo wrote: > On Thu, Jul 26, 2018 at 2:18 PM, Mike Bayer wrote: > > Oh hi! If there is someone who has experience in how much effort it > takes to beat every different driver into submission that's you :) > > >>> - should execute(query) with no param

Re: [DB-SIG] Context manager support for cursors

2018-07-26 Thread Daniel Lenski
On Thu, Jul 26, 2018 at 6:45 AM, Daniele Varrazzo wrote: > On Thu, Jul 26, 2018 at 2:18 PM, Mike Bayer wrote: > > Oh hi! If there is someone who has experience in how much effort it > takes to beat every different driver into submission that's you :) > > >>> - should execute(query) with no param

Re: [DB-SIG] Context manager support for cursors

2018-07-26 Thread Daniele Varrazzo
On Thu, Jul 26, 2018 at 2:57 PM, Mike Bayer wrote: > On Thu, Jul 26, 2018 at 9:45 AM, Daniele Varrazzo >> Maybe it's easy enough to use the most generic one ("%s" and >> "%(name)s"? "{}" and "{name}"?) and provide a conversion library to >> help implementing drivers using whatever different forma

Re: [DB-SIG] Context manager support for cursors

2018-07-26 Thread Mike Bayer
On Thu, Jul 26, 2018 at 1:03 PM, Daniele Varrazzo wrote: > On Thu, Jul 26, 2018 at 2:57 PM, Mike Bayer wrote: >> On Thu, Jul 26, 2018 at 9:45 AM, Daniele Varrazzo > >>> Maybe it's easy enough to use the most generic one ("%s" and >>> "%(name)s"? "{}" and "{name}"?) and provide a conversion librar