Why is foo: 1:2:3:4 an integer in yaml?
Aimon Bustardo <[email protected]> Fri, 1 Apr 2016 12:38:26 -0500
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am trying to figure out an oddity (at least to me) in YAML. Why is
foo: 1:2:3:4 seen as an integer and what is it doing to calculate? It is
different between languages as seen below:
Ruby:
irb(main):003:0> YAML.load('foo: 1:2:3:4')
=> {"foo"=>3963}
Python:
>>> print yaml.load('foo: 1:2:3:4')
>>> {'foo': 223384}
Thanks.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140