Home
last modified time | relevance | path

Searched refs:scanstring (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Lib/test/test_json/
Dtest_scanstring.py7 scanstring = self.json.decoder.scanstring
9 scanstring('"z\U0001d120x"', 1, True),
13 scanstring('"\\u007b"', 1, True),
17 scanstring('"A JSON payload should be an object or array, not a string."', 1, True),
21 scanstring('["Unclosed array"', 2, True),
25 scanstring('["extra comma",]', 2, True),
29 scanstring('["double extra comma",,]', 2, True),
33 scanstring('["Comma after the close"],', 2, True),
37 scanstring('["Extra close"]]', 2, True),
41 scanstring('{"Extra comma": true,}', 2, True),
[all …]
D__init__.py36 self.assertEqual(self.json.decoder.scanstring.__module__,
44 self.assertEqual(self.json.decoder.scanstring.__module__, '_json')
Dtest_speedups.py11 self.assertEqual(self.json.decoder.scanstring.__module__, "_json")
12 self.assertIs(self.json.decoder.scanstring, self.json.decoder.c_scanstring)
/third_party/python/Lib/json/
Ddecoder.py7 from _json import scanstring as c_scanstring
130 scanstring = c_scanstring or py_scanstring variable
167 key, end = scanstring(s, end, strict)
327 self.parse_string = scanstring
/third_party/python/Misc/NEWS.d/
D3.9.0a1.rst1949 ``_json.scanstring`` is now up to 3x faster when there are many backslash