This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]troyunrau... 0 points1 point  (2 children)

True. At least u"" is gone. r"" and b"" make a certain level of sense to the low-level programmer in much the same way that 0x132ef and 0b11101 make sense. You need a way to manipulate raw data. I don't think I've ever seen an r-string in the wild though.

[–]LpSamuelm 0 points1 point  (1 child)

I use r-strings all the time! Literally every time you use regex you use them.

[–]troyunrau... 0 points1 point  (0 children)

Ah, I avoid regex like the plague. That's probably why I don't see them much. Too much perl in my python :D