what is wrong with that r"\"

Tim Roberts timr at probo.com
Fri Jul 6 01:20:10 EDT 2007


Matthieu TC <matthieutc at yahoo.com> wrote:

>May I suggest giving the possibility to use any delimiter for a raw string?  just like in Vi or ruby.
>
>Vi:
> %s_a_b_g  is valid and so is  %s/a/b/g
>
>Ruby:
> %q{dj'\ks'a\'"}   or %q-dj'\ks'a\'"-
>
>So as long as your regex does not use all the valid characters, readability is maintained.

But what about my program that wants to use r_a_b_ as an identifier?
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list