String handling bug in Python
Colin Brown
cbrown at metservice.com
Thu Apr 25 16:33:16 EDT 2002
On Wed, Apr24, 2002 at 21:02, Anders J. Munch wrote
> Python raw strings are delineated like this:
>
> A raw string ends at the first matching quote character which is not
> preceded by an odd number of consecutive backslashes.
>
Thanks Anders, a definition that I can understand.
> It would be great if I could have written this instead:
> A raw string ends at the first matching quote character.
>
Indeed, intuitively that is how I expected raw string handling to work.
> Much simpler, every bit as useful and - dare I say it - more pythonic
> than the current semantics.
>
My sentiments exactly.
More information about the Python-list
mailing list