Modify ↓
Ticket #246 (new defect)
Opened 11 months ago
scientific notation resolver bug
| Reported by: | genericsoma@… | Owned by: | xi |
|---|---|---|---|
| Priority: | normal | Component: | pyyaml |
| Severity: | normal | Keywords: | scientific float resolve |
| Cc: |
Description
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.
See also: http://code.google.com/p/snakeyaml/issues/detail?id=130
Attachments
Change History
Changed 11 months ago by genericsoma@…
-
attachment
PyYAML-3.10.patch
added
Note: See
TracTickets for help on using
tickets.

resolver patch and test suite update for the ticket