Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using raw strings
#3
Thanks for your reply stullis, I thought it must be something like that. However, in this case I'm not trying to get a program to work but trying to understand exactly why this behaviour occurs. I thought that the reason for using raw strings was to ensure that no escaping by a backslash character took place. To me that means that r'\'should be exactly the same as '\\'and should give the same result, but this is clearly not happening. Why?
Reply


Messages In This Thread
Using raw strings - by wookie - Nov-10-2018, 12:00 PM
RE: Using raw strings - by stullis - Nov-10-2018, 01:18 PM
RE: Using raw strings - by wookie - Nov-10-2018, 02:22 PM
RE: Using raw strings - by stullis - Nov-10-2018, 03:13 PM
RE: Using raw strings - by Larz60+ - Nov-10-2018, 04:59 PM
RE: Using raw strings - by wookie - Nov-10-2018, 07:03 PM
RE: Using raw strings - by snippsat - Nov-10-2018, 10:21 PM
RE: Using raw strings - by wookie - Nov-10-2018, 10:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to understand strings and lists of strings Konstantin23 2 819 Aug-06-2023, 11:42 AM
Last Post: deanhystad
  Splitting strings in list of strings jesse68 3 1,818 Mar-02-2022, 05:15 PM
Last Post: DeaD_EyE
  Finding multiple strings between the two same strings Slither 1 2,549 Jun-05-2019, 09:02 PM
Last Post: Yoriz
  lists, strings, and byte strings Skaperen 2 4,265 Mar-02-2018, 02:12 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020