[issue37944] Adjacent escape character in json.load()

Serhiy Storchaka report at bugs.python.org
Fri Aug 30 10:26:40 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

There is no a bug.

"\\\"" is the same as r"\\" -- a 2-charackter string consisting of a backslash character and a doublequote character. r"\\\"" is a different string, it contains 3 backslash characters.

>>> print("\\\"")
\"
>>> print(repr("\\\""))
'\\"'

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37944>
_______________________________________


More information about the Python-bugs-list mailing list