When does the escape character work within raw strings?
Rhodri James
rhodri at wildebst.demon.co.uk
Sat May 23 18:34:15 EDT 2009
On Sat, 23 May 2009 22:05:10 +0100, walterbyrd <walterbyrd at iname.com>
wrote:
> On May 22, 12:22 pm, "Rhodri James"
>> How do you know how a string object is going to be treated by any
>> given function? Read the Fine Manual for that function.
>
> So am I to understand that there is no consistency in string handling
> throughout the standard modules/objects/methods?
How can there be? They all have different requirements, after all.
In C, for example, you wouldn't expect "^\\s*[qwerty]+" to be remotely
useful as a printf() format, but it might be exactly what you want for
some regular expression library.
--
Rhodri James *-* Wildebeeste Herder to the Masses
More information about the Python-list
mailing list