Modify

Ticket #142 (new enhancement)

Opened 4 years ago

decimal type support in pyYAML

Reported by: anonymous Owned by: xi
Priority: normal Component: pyyaml
Severity: normal Keywords:
Cc:

Description

I would like to be able to faithfully round trip real numbers with YAML avoiding the imprecision that happens in the conversions decimal text => binary float => decimal text. Is it possible to override the default pyYAML conversion of reals to double and use the decimal type instead? I want to avoid decorating the YAML document with explicit types.

Attachments

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.