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?

The latter would be a little bit more complicated, but less confusing when people are using the raw connection.

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

Reply via email to