Strings and % sign fails - Help Please
Erik Max Francis
max at alcyone.com
Fri Mar 24 01:01:57 EST 2006
Jorge Godoy wrote:
> I know. I'm just trying to see if there might be some magic going on with his
> driver...
Since raw strings have no effect on format specifiers, that won't tell
you anything.
>>> r'%' == '%'
True
His problem is that cursor.execute does format expansion with %, so a
single % is not legal.
--
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
We are victims of our circumstance.
-- Sade Adu
More information about the Python-list
mailing list