[DB-SIG] Some obscurity with paramstyle
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.
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
More information about the DB-SIG