Ticket #246 (new defect)
Opened 21 months ago
scientific notation resolver bug
|Reported by:||genericsoma@…||Owned by:||xi|
|Severity:||normal||Keywords:||scientific float resolve|
There is a problem with scientific notation for numbers without floating point and also without '+' or '-' after 'e'. They are resolved as strings instead of float.
>>> import yaml >>> yaml.load('2e5') '2e5'
Attached patch solves this problem by providing a more complex implicit float resolver.