Lawrence D'Oliveiro wrote:

> In message <[EMAIL PROTECTED]>, John
> Machin wrote:
> 
>> 1. Reasoning: How do you get a literal "'" into an SQL string constant?
>> How do you get a literal "\" into a Python string constant? How do you
>> get a literal "$" into some *x shell command lines? Do you detect a
>> pattern?
> 
> None of which applies to escaping of % characters in format strings.

Its the pattern of escaping here, and yes, it applies: usually, a escaping
character can be literally inserted by doubling it. I'm currently a bit
unsure of the single-quote for sql though, but I'm oscillating between ''
or '''. So - it applies.

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to