value "on"=True in pyyaml?

<[email protected]> Mon, 29 Feb 2016 15:20:58 +0000
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
Is this as expected?


kbriggs> cat yaml_on.py


import yaml
x="""
 0: on
 1: ON
 2: 'ON'
"""
print yaml.load(x)


kbriggs> python yaml_on.py
{0: True, 1: True, 2: 'ON'}




Keith

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core