[DB-SIG] API 3.0 limiting paramstyle to ['named', 'qmark'] is okay. ('format' is not desirable)

Vernon D. Cole vernondcole at gmail.com
Fri May 17 19:52:19 CEST 2013

I am worried about what the module-level attribute does to thread-safety.
If this feature is kept, it should be a class attribute, not a module
attribute.  We should be doing connections using new style classes.

conn = dbapi_module.Connection()
conn.paramstyle = 'oddball'
conn.connect(your, parameters, here)


dbapi_module.Connection.paramstyle = 'oddball'
conn = dbapi_module.Connection().connect(parameters)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/db-sig/attachments/20130517/88fef76f/attachment-0001.html>

More information about the DB-SIG mailing list