Modify

Ticket #246 (new defect)

Opened 23 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

PyYAML-3.10.patch Download (1.1 KB) - added by genericsoma@… 23 months ago.
resolver patch and test suite update for the ticket

Change History

Changed 23 months ago by genericsoma@…

resolver patch and test suite update for the ticket

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from xi. Next status will be 'new'
The owner will be changed from xi to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.