trouble using \ to escape %

Maarten Sneep iintbeumtnbfkcpntohw__NOSP at M__xs4all.nl.invalid
Fri Apr 15 19:18:16 EDT 2005


In article <1113606334.524947.54630 at l41g2000cwc.googlegroups.com>,
 "Lucas Machado" <LMachado1 at gmail.com> wrote:

> I'm writing a python script that modifies the smb.conf file, and i need
> to write the characters '%U' in the file.  

print "%s = %%U" % "a" yields a = %U for me.

Maarten



More information about the Python-list mailing list