On 12/02/17 23:56, Erik wrote:
r"hello \the" "worl\d"
'hello \\theworl\\d'

Slightly surprising. The concatenated string adopts the initial string's
'rawness'.

"hello \the" r"worl\d" "\t"
'hello \theworl\\d\t'

The initial string is not raw, the following string is. The string
following _that_ becomes raw too.

That's clearly wrong - I mean the final string does _not_ become raw even though it follows a raw string (my point was that the previous example shows a non-raw string becoming raw because it follows a raw string).

E.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to