(target_class, scale)
| 54 | ) |
| 55 | |
| 56 | def to_decimal_processor_factory(target_class, scale): |
| 57 | # Note that the scale argument is not taken into account for integer |
| 58 | # values in the C implementation while it is in the Python one. |
| 59 | # For example, the Python implementation might return |
| 60 | # Decimal('5.00000') whereas the C implementation will |
| 61 | # return Decimal('5'). These are equivalent of course. |
| 62 | return DecimalResultProcessor(target_class, "%%.%df" % scale).process |