3 ms·
The decimal module in Python 2.7 is implemented in pure Python: https://github.com/python/cpython/blob/2.7/Lib/decimal.py https://github.com/python/cpython/blob
by brettcannon 10y ago
The decimal module in Python 2.7 is implemented in pure Python: https://github.com/python/cpython/blob/2.7/Lib/decimal.py https://github.com/python/cpython/blob/2.7/Lib/decimal.py (in Python 3 there is an accelerated extension module that's used when available, falling back on the pure Python version otherwise).
- webmaven 10y agoSo, does Decimal work with Grumpy (you're implying it does)? For that matter, does Grumpy match CPython's Float behavior exactly? ie.: >>> 2.2 + 3.1 5.300000000000001 >>>
- brettcannon 10y agoI'm implying that they can get the decimal module into Grumpy by implementing enough of Python to support the module (i.e. they don't need to implement the decimal module from scratch because the module isn't implemented only in C).
- webmaven 10y agoGot it. Thanks for the clarification, Brett.