Re: value "on"=True in pyyaml?
Oren Ben-Kiki <[email protected]> Mon, 29 Feb 2016 17:41:12 +0200
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <CADJiDhtD_=OErbgg4AZTSPZ8kda_83DU2EpP-kPQyWPwQynhAA@mail.gmail.com> |
This is old YAML 1.0/1.1 proposed schema behavior. It was deprecated (to maximize JSON compatibility among other reasons). On Mon, Feb 29, 2016 at 5:20 PM, <[email protected]> wrote: > 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 > > ------------------------------------------------------------------------------ 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