Re: API 3.0 limiting paramstyle to ['named', 'qmark'] is okay. ('format' is not desirable)
"Vernon D. Cole" <[email protected]>
| Newsgroups | gmane.comp.python.db |
|---|---|
| Message-ID | <CAH-ZgAcd6MdZOihvSy670=x7pdKf0ceBftE_FA4UrWu8K6OVcQ@mail.gmail.com> |
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) or dbapi_module.Connection.paramstyle = 'oddball' conn = dbapi_module.Connection().connect(parameters) _______________________________________________ DB-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/db-sig