diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-17 08:14:30 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-17 08:14:30 (GMT) |
commit | 483405bcca9f371bc6910dda7f9b5ba74395682c (patch) | |
tree | 3afeb1990bf2ab9d24fdea4409317a08a97af7eb /Modules/_json.c | |
parent | 77c041ba64f87ac021c2a7a9314d9a3a1145057f (diff) | |
download | cpython-483405bcca9f371bc6910dda7f9b5ba74395682c.zip cpython-483405bcca9f371bc6910dda7f9b5ba74395682c.tar.gz cpython-483405bcca9f371bc6910dda7f9b5ba74395682c.tar.bz2 |
Issue #22883: Got rid of outdated references to PyInt and PyString in comments.
Diffstat (limited to 'Modules/_json.c')
-rw-r--r-- | Modules/_json.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_json.c b/Modules/_json.c index 031471e..076859f 100644 --- a/Modules/_json.c +++ b/Modules/_json.c @@ -827,7 +827,7 @@ bail: static PyObject * _parse_array_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t idx, Py_ssize_t *next_idx_ptr) { - /* Read a JSON array from PyString pystr. + /* Read a JSON array from PyUnicode pystr. idx is the index of the first character after the opening brace. *next_idx_ptr is a return-by-reference index to the first character after the closing brace. @@ -899,8 +899,8 @@ bail: } static PyObject * -_parse_constant(PyScannerObject *s, char *constant, Py_ssize_t idx, Py_ssize_t *next_idx_ptr) { - /* Read a JSON constant from PyString pystr. +_parse_constant(PyScannerObject *s, const char *constant, Py_ssize_t idx, Py_ssize_t *next_idx_ptr) { + /* Read a JSON constant. constant is the constant string that was found ("NaN", "Infinity", "-Infinity"). idx is the index of the first character of the constant @@ -932,7 +932,7 @@ _match_number_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t start, Py_ the number. Returns a new PyObject representation of that number: - PyInt, PyLong, or PyFloat. + PyLong, or PyFloat. May return other types if parse_int or parse_float are set */ void *str; |