[Twisted-Python] twisted adbapi question

Nathan nathan.stocks at gmail.com
Tue Jul 15 16:04:37 EDT 2008


On Tue, Jul 15, 2008 at 7:42 AM, Jean-Paul Calderone <exarkun at divmod.com> wrote:
> On Tue, 15 Jul 2008 15:37:12 +0200, Vasil Vangelovski
> <vvangelovski at gmail.com> wrote:
>>
>> does anyone know why is twisted.enterprise.adbapi.safe deprecated?
>> What should I use instead?
>>
>
> Because it's not safe.  Use bind parameters instead.  Google or your
> preferred DB-API 2.0 module should tell you exactly how to do that.

I wish "[the] DB-API 2.0 module[s]" always provided documentation.
psycopg (when it had a working web site) just pointed to PEP 249.
(Unless you count the short "here's an example" docs that are dated
2002)

http://www.python.org/dev/peps/pep-0249/

</pet peeve>

~ Nathan




More information about the Twisted-Python mailing list