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
{{ message }}
Repository navigation
Strings that could be interpreted as sexagesimal should always be emitted quoted #387
Python 2.7.17 (default, Jul 20 2020, 15:37:01)
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> yaml.safe_load("---\na: 1:0:0:0")
{'a': 216000}
Python 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> yaml.safe_load("---\na: 1:0:0:0")
{'a': 216000}
Activity
alexjfisher commentedon Aug 13, 2020
Another example. https://community.theforeman.org/t/custom-facts-in-foreman/20036/3
The scsi-id string is not being quoted when output. Older versions of ruby are thinking it's an int.
alexjfisher commentedon Aug 13, 2020
@tenderlove Any chance this could be looked at? It's causing real problems for users consuming yaml with other implementations.
4ae7a3e has broken conformance to yaml 1.1
alexjfisher commentedon Aug 13, 2020
FWIW, the implementation before the change was broken too (but possibly not noticed by anyone as it's a daft feature of the spec)
eg in ruby 2.1, two different values being loaded as the same int
Compare to python