When does the escape character work within raw strings?

Robert Kern robert.kern at gmail.com
Sat May 23 23:29:23 CEST 2009

On 2009-05-23 16:05, walterbyrd 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?
> Seems to make python a lot more complicated than it needs to be, but
> okay.

*Any* language would have such issues. Different functions do different things 
to its inputs. That's why you have different functions. I certainly wouldn't 
want my HTML parser to treat its inputs as if they were regular expressions.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Python-list mailing list