[ANN] istring 1.0.1 released; announce list created

Oleg Broytmann phd at phd.pp.ru
Wed Mar 13 13:30:47 EST 2002


On Wed, Mar 13, 2002 at 08:15:39PM +0100, Andreas Kostyrka wrote:
> And what about:
> db.query("""SELECT   foo, bar
>             FROM     %(table)s
>             WHERE    rsrc_id = %(rsrc_id)d
>             AND      name = '%(name)s'""" % locals())
> 
> pure standard Python :)

   This will fail if name = "O'Hara". Or name = 'Tutti"""Frutti'.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list