On Fri, Jan 04, 2019 at 12:26:59AM +0100, Christoph Zwerschke wrote:
> Am 04.01.2019 um 00:08 schrieb Justin Pryzby:
> > I suggest it should actually be:
> >
> > |+    def query_prepared(self, *args, **kwargs):
> > |+    def prepare(self, command, **kwargs):
> >
> > name=kwargs.get('name', '')
> >
> > So one *has* to pass name as named param.
> 
> For prepare() we don't need that trick. But for query_prepared, yes, that
> looks like a feasible solution. You can now leave the name out, but if you
> want one, you need to pass it as named param.
> 
> The question is now - should we use this different signature only in the DB
> wrapper method or already in the underlying C extension method?

I don't have any opinion on this.

Justin
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo/pygresql

Reply via email to