4 ms·
Thanks, I appreciate it. I think I got a little over-zealous in escaping my %s. Interestingly, in Python, "%%%s" % "foo" != "%%foo"
by witten 18y ago
Thanks, I appreciate it. I think I got a little over-zealous in escaping my %s.
Interestingly, in Python, "%%%s" % "foo" != "%%foo"
- lacker 18y agoIt works just like \ in standard unix parsing - you escape the escape character by doubling it. So in "%%%s": "%%" -> "%" "%s" -> "foo" for a result of "%foo".
- witten 18y agoRight, but the escaping by doubling does not work in Python unless it's in a format string. So "%%foo" does not count as escaped. That's what threw me off.