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
For some reason numbers ending in 8 or 9 are dumped as integers, but they should be strings just like the rest of the numbers. Using larger numbers shows that all numbers ending in 8 or 9 are always dumped as integers.
The text was updated successfully, but these errors were encountered:
Although I don't completely understand the reason why it's exported like this I realize that it does not cause any problem in loading again the generated YAML, which loads as string, so I'm closing the issue.
I transferred the issue to pyyaml.
There are already existing issues here that discuss this. 000008 is not an integer because pyyaml implements YAML 1.1 currently, and scalars starting with a zero are resolved as octal numbers if they only contain 0-7. 8 and 9 are not octal digits.
Here's a small snippet to reproduce the problem:
And here the output:
For some reason numbers ending in 8 or 9 are dumped as integers, but they should be strings just like the rest of the numbers. Using larger numbers shows that all numbers ending in 8 or 9 are always dumped as integers.
The text was updated successfully, but these errors were encountered: