Skip to content

Commit 963ca6b

Browse files
author
Uno
committed
update docstring
1 parent 6d309b6 commit 963ca6b

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

Modules/_json.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,14 +652,19 @@ _json.scanstring as py_scanstring
652652
653653
Scan the string s for a JSON string.
654654
655-
Return a tuple of the decoded string and the index of the character in s
655+
End is the index of the character in s after the quote that started the
656+
JSON string. Unescapes all valid JSON string escape sequences and raises
657+
ValueError on attempt to decode an invalid string. If strict is False
658+
then literal control characters are allowed in the string.
659+
660+
Returns a tuple of the decoded string and the index of the character in s
656661
after the end quote.
657662
[clinic start generated code]*/
658663

659664
static PyObject *
660665
py_scanstring_impl(PyObject *module, PyObject *pystr, Py_ssize_t end,
661666
int strict)
662-
/*[clinic end generated code: output=961740cfae07cdb3 input=d9077453fa0ca27c]*/
667+
/*[clinic end generated code: output=961740cfae07cdb3 input=9d46d7df7ac749b0]*/
663668
{
664669
PyObject *rval;
665670
Py_ssize_t next_end;

Modules/clinic/_json.c.h

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)