| 30 | namespace internal { |
| 31 | |
| 32 | Status ImportDecimalType(OwnedRef* decimal_type) { |
| 33 | OwnedRef decimal_module; |
| 34 | RETURN_NOT_OK(ImportModule("decimal", &decimal_module)); |
| 35 | RETURN_NOT_OK(ImportFromModule(decimal_module.obj(), "Decimal", decimal_type)); |
| 36 | return Status::OK(); |
| 37 | } |
| 38 | |
| 39 | Status PythonDecimalToString(PyObject* python_decimal, std::string* out) { |
| 40 | // Call Python's str(decimal_object) |
no test coverage detected