quoting %

Thomas Guettler guettli at thomas-guettler.de
Wed Oct 13 13:43:45 CEST 2004


Am Wed, 13 Oct 2004 13:32:38 +0200 schrieb Matthias Teege:

> 
> Moin,
> 
> I need a string like this "foo '%value%'" for a database query but
> print "'%%s%'"%value gives me TypeError: not all arguments converted
> during string formatting. How does I quote the "%" sign in this case?

Hi,

%% --> %






More information about the Python-list mailing list