[python] quote % in shell script

Alex Martelli aleax at aleax.it
Sun May 11 05:16:35 EDT 2003


<posted & mailed>

Wolfgang Wilhelm wrote:
   ...
> The % (percent) in <table width="100%"> causes the error.
> How do i escape the percent correct?

Write it as: <table width="100%%">

Doubling up the % sign is the way to "escape" it.


Alex





More information about the Python-list mailing list