[issue37874] json traceback on a float

2019-08-16 Thread af
af added the comment: I understand, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue37874] json traceback on a float

2019-08-16 Thread Eric V. Smith
Eric V. Smith added the comment: I think Serhiy means 1.e-8 is not valid. The spec says that at least one digit is required in the "frac" part, after the decimal. -- nosy: +eric.smith ___ Python tracker __

[issue37874] json traceback on a float

2019-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1.0e-8 is not a format for numbers in JSON. See RFC 7159 (https://tools.ietf.org/html/rfc7159.html#section-6): number = [ minus ] int [ frac ] [ exp ] decimal-point = %x2E ; . digit1-9 = %x31-39 ; 1-9 e = %x65 / %x45

[issue37874] json traceback on a float

2019-08-16 Thread af
Change by af : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue37874] json traceback on a float

2019-08-16 Thread af
New submission from af : json.loads traceback with: [In [16]: json.loads("[1.e-8]") --- JSONDecodeError Traceback (most recent call last) in () > 1 json.loads("[1.e-8]") /scr/fonari/2019-4/in