xiazcy opened a new pull request, #3256: URL: https://github.com/apache/tinkerpop/pull/3256
Backported `statics.BigDecimal` implementation from 4.0.0 for `gremlin-python`, with slight updates and fixed related bugs in testing. It now properly calculated the `scale` and unscaled_value` as represented in the Gremlin BigDecimal (JVM-based) for serialization purposes. Added a method to construct it from string or numbers, as well as the `statics.BigDecimal.value` attribute to get a python `decimal.Decimal` representation. Also made both `GraphBinary` and `GraphSON `consistent in deserializing into the new `statics.BigDecimal` class, which could be considered breaking for `GraphSON` users that used to rely on it returning python's `decimal.Decimal` in previous versions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
