Odd Behavior with Standard Loader and Scientific Notation
I'm noticing some odd behavior with PyYaml v3.10 (from Ubuntu 12.04 repos) regarding scientific notation, and could not find anything about it in the old PyYAML issue tracker.
I expected the following string to be converted to floats, but not all of them get there:
In : yaml.load('[350e1, 350e-1, 350.e1, 350.e-1, 1e2, 1.e-2, 1e12, 1.e-12, 1e-12]') Out: ['350e1', '350e-1', '350.e1', 35.0, '1e2', 0.01, '1e12', 1e-12, '1e-12'] In : print yaml.__version__ 3.10
I parsed the same string with yaml-cpp and SnakeYaml (default loaders / parsers) and they produced all floats.