[issue30877] possibe typo in json/scanner.py

2018-05-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue30877] possibe typo in json/scanner.py

2018-05-22 Thread miss-islington
miss-islington added the comment: New changeset 2baee0aa77055755ac50e92e64bbccfea4108621 by Miss Islington (bot) in branch '3.6': bpo-30877: Fix clearing a cache in the the JSON decoder. (GH-7048) https://github.com/python/cpython/commit/2baee0aa77055755ac50e92e64bbccfea4108621 -- _

[issue30877] possibe typo in json/scanner.py

2018-05-22 Thread miss-islington
miss-islington added the comment: New changeset 25fd6cc5b0ad311bb771ae47ae8173417730bb6a by Miss Islington (bot) in branch '3.7': bpo-30877: Fix clearing a cache in the the JSON decoder. (GH-7048) https://github.com/python/cpython/commit/25fd6cc5b0ad311bb771ae47ae8173417730bb6a -- no

[issue30877] possibe typo in json/scanner.py

2018-05-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +6688 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30877] possibe typo in json/scanner.py

2018-05-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +6687 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30877] possibe typo in json/scanner.py

2018-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry for not fixing this issue earlier. The fix is trivial, but it needed tests. PR 7048 adds a simpler test. -- versions: +Python 3.8 -Python 3.5 ___ Python tracker

[issue30877] possibe typo in json/scanner.py

2018-05-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6685 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue30877] possibe typo in json/scanner.py

2017-07-08 Thread c-fos
c-fos added the comment: Test independent from _json library: import unittest from json.decoder import JSONDecoder from json.scanner import py_make_scanner class Memo_Test(unittest.TestCase): def test_for_empty_memo(self): json_str = '{"a": 1}' decoder = JSONDecoder()

[issue30877] possibe typo in json/scanner.py

2017-07-08 Thread c-fos
c-fos added the comment: The possible test: import unittest from json.decoder import JSONDecoder class Memo_Test(unittest.TestCase): def test_for_empty_memo(self): json_str = '{"a": 1}' decoder = JSONDecoder() decoder.decode(json_str) self.assertEqual(decoder

[issue30877] possibe typo in json/scanner.py

2017-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch c-fos! The scan_once() wrapper was introduced in issue7451, but py_make_scanner() still returns unwrapped _scan_once(). Is it possible to write a test that catches this bug? -- nosy: +pitrou, serhiy.storchaka stage: -> patch review versi

[issue30877] possibe typo in json/scanner.py

2017-07-07 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2697 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30877] possibe typo in json/scanner.py

2017-07-07 Thread PilatFirst
New submission from PilatFirst: Should "py_make_scanner" return "scan_once" function rather than "_scan_once"? -- components: Library (Lib) messages: 297945 nosy: PilatFirst priority: normal severity: normal status: open title: possibe typo in json/scanner.py type: enhancement versions: