[DB-SIG] Some obscurity with paramstyle

William wilk at flibuste.net
Sun Jul 24 15:29:42 CEST 2011

On 18-07-2011, M.-A. Lemburg wrote:
>> IMHO I would prefer to see the DBAPI have exactly two paramstyles, 
>> named and qmark, and have all DBAPIs support both consistently.    
>> The (py)format styles continuously introduce the mixing of Python's 
>> string formatting behavior with the presentation of bound parameters, 
>> which are two completely different things.
> +1

+1 also

Too many formats are a risk that user will not bother and use string 

To help we could provide reference implementation of current formats 
converters. It's not a bottleneck since the parsing is done only one 

William Dodé - http://flibuste.net
Informaticien Indépendant

More information about the DB-SIG mailing list