Underscore ignored in numbers?

James Stroud <jstroud-7cjBWUY9Vc/2fBVCVOL8/[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
Hello Anyone,

I was using pyyaml to evaluate a yaml document and the mapping

  f : 1_1

became

  {"f" : 11}

Of course I can force the issue with a tag or using quotes around the  
1_1, but it seems like 1_1 should not evaluate to 11 no matter what  
the context.

Is the pyyaml behavior correct? I could not find this behavior in the  
latest YAML specification.

James

--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
611 Charles E. Young Dr. S.
Los Angeles, CA  90095

http://www.jamesstroud.com

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.