Strings and % sign fails - Help Please

Erik Max Francis max at alcyone.com
Fri Mar 24 05:14:53 CET 2006


Jorge Godoy wrote:

> siasookhteh at gmail.com writes:
> 
>> heh.. It works except I am using psycopg.Binary(somebinarystructure),
>> and I am not really doing it by hand to just add the extra %, and
>> psycopg.Binary doesn't do it. I'd imagine it's a bug with psycopg
>> package.  Any quick way to project a string from freak '%' problems?
> 
> Try using r"string '%'"... 

Raw strings don't have anything to do with format specifiers.

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   If the sky should fall, hold up your hands.
   -- (a Spanish proverb)



More information about the Python-list mailing list