question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Raw strings vs regular strings

See original GitHub issue

One can use both r'abc' and 'abc' to represent a simple string. But, r strings are only required when dealing with \ in your strings. So, the rule is: if there’s no \ in your string, then do not use r

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
sobolevncommented, Feb 23, 2020

You can use ignored_types= parameter on assert_errors. This happens when old tests are executed on updated visitor.

Or you can refactor old tests. Both cases are fine.

1reaction
sobolevncommented, Feb 23, 2020

Sure, @fwald! Thanks a lot! Feel free to ask any questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - What exactly do "u" and "r" string prefixes do, and ...
'raw string' means it is stored as it appears. For example, '\' is just a backslash ...
Read more >
Beauty of Raw Strings in Python - Dev Genius
Now, I think you have a clear understanding of raw string usage in python. This is cool but the real use comes with...
Read more >
Python Raw Strings
Raw strings are useful when you deal with strings that have many backslashes, for example, regular expressions or directory paths on Windows.
Read more >
How To Use Python Raw String | DigitalOcean
Python raw string treats the backslash character (\) as a literal character. Raw string is useful when a string needs to contain a...
Read more >
What is Raw String Notation in Python regular expression?
In contrast to a conventional string, a raw string considers backslashes () as literal characters. When working with strings that include a lot ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found