| 37 | } |
| 38 | |
| 39 | Status PythonDecimalToString(PyObject* python_decimal, std::string* out) { |
| 40 | // Call Python's str(decimal_object) |
| 41 | return PyObject_StdStringStr(python_decimal, out); |
| 42 | } |
| 43 | |
| 44 | // \brief Infer the precision and scale of a Python decimal.Decimal instance |
| 45 | // \param python_decimal[in] An instance of decimal.Decimal |