From 3e99005ae431ff6dc470c58c90258e371e72230e Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Sun, 19 Jan 2020 10:19:17 -0500 Subject: [PATCH] Clarify for quoting examples The example of the use of backslash to escape a double-quote makes more sense when used inside a double-quoted string. If the string is quoted with single quotes, one could of course just write 'wt"f' withouth requiring any escaping. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b5c96f..0f1b3bc 100644 --- a/README.md +++ b/README.md @@ -1210,7 +1210,7 @@ True - In a usual python string, the backslash is used to escape characters that may have a special meaning (like single-quote, double-quote, and the backslash itself). ```py - >>> 'wt\"f' + >>> "wt\"f" 'wt"f' ``` - In a raw string literal (as indicated by the prefix `r`), the backslashes pass themselves as is along with the behavior of escaping the following character.