You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encoded TOML: a = 1e-09
Traceback (most recent call last):
File "test.py", line 5, in <module>
qtoml.loads(string)
File "/HOME/miniconda3/lib/python3.6/site-packages/qtoml/decoder.py", line 514, in loads
(kl, v), p = parse_pair(p)
File "/HOME/miniconda3/lib/python3.6/site-packages/qtoml/decoder.py", line 428, in parse_pair
v, p = parse_value(p)
File "/HOME/miniconda3/lib/python3.6/site-packages/qtoml/decoder.py", line 391, in parse_value
raise TOMLDecodeError("can't parse type", p)
qtoml.decoder.TOMLDecodeError: can't parse type (line 1, column 4)
This is a clash between the current TOML specification and the way programming languages output numbers in scientific notation (see my bugreport toml-lang/toml#356). qtoml should remove the trailing zero from exponentials.
The text was updated successfully, but these errors were encountered:
I'm running Miniconda 3.6.7 on a Linux machine. The following program works as expected:
However, changing the value of
a
from 1.0 to 1.0e-9 makes qtoml crash:The error is the following:
This is a clash between the current TOML specification and the way programming languages output numbers in scientific notation (see my bugreport toml-lang/toml#356). qtoml should remove the trailing zero from exponentials.
The text was updated successfully, but these errors were encountered: