Strings and % sign fails - Help Please

Jorge Godoy godoy at
Fri Mar 24 04:18:11 CET 2006

siasookhteh at 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 '%'"... 

Jorge Godoy      <godoy at>

"Quidquid latine dictum sit, altum sonatur."
- Qualquer coisa dita em latim soa profundo.
- Anything said in Latin sounds smart.

More information about the Python-list mailing list