pydantic / jiter

Fast iterable JSON parser.
https://crates.io/crates/jiter
MIT License
182 stars 11 forks source link

Python: extend `lossless_floats` to support direct creating of `Decimal` #108

Closed samuelcolvin closed 2 months ago

samuelcolvin commented 3 months ago

We've been asked to modify/extend lossless_floats to support eager creating of Decimal rather than an instance ofLosslessFloat`.

This should be as simple as another implementation of MaybeParseNumber and changing lossless_floats to float_mode.