On 2007-07-04, Neil Cerutti <[EMAIL PROTECTED]> wrote:
> On 2007-07-04, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
>> On Wed, 04 Jul 2007 11:21:14 +0000, Neil Cerutti wrote:
>>
>>> If the escaped quotes didn't function in raw strings, I'd be
>>> unable to construct (with a single notation) a regex that
>>> included both kinds of quotes at once.
>>> 
>>>   re.compile(r"'\"")
>>
>> Where's the problem!? ::
>>
>>   re.compile(r''''"''')
>
> That incurs the problem that you can't end with a '. So you
> can't end with *something* either way.

I take that back. With good planning, you can end with whichever
you need by choosing the other delimiter.

Oh well. It seemed like a good explanation at first.

-- 
Neil Cerutti
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to