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
Note: See
TracTickets for help on using
tickets.
