Post #2753042
2024-02-08 18:27 UTC
@ambv@mastodon.social Oh, wow, I somehow missed that, even though this has bugged me for years...
The thing is, it escapes the quote in a _very_ weird way. I just ran your example, and it prints:
>>> print(r"A\"B")
A\"B
And... I never realized you can actually do that. So I always thought it's just a legacy tokenizer issue. But since it actually works inside a literal string, I guess it can't be changed...
Replies (1)
-
@tmr232@mastodon.social 2024-02-08 18:28
@ambv@mastodon.social Thanks! and also - I'm really enjoying your podcast!