Message225588
> 3) It's not clear whether users would not be served better by
> using functions from libmpdec directly (much faster,
> probably less error handling).
That's what I meant. The issue here is that Python's libmpdec is not exposed to third-party code at all. Also there should probably be a (thin?) API to get at the underlying mpdec object from a cdecimal PyObject (apologies for the poor wording, I'm actually not acquainted with the libmpdec APIs).
As for the Capsule method, well, at least it would be better than nothing (or than any platform-specific hack).
> 2) I would not like to spend time on it if we go ahead and
> make decimal a builtin (double effort).
I haven't heard any consensus on that yet :-)
(for the record, the context is that we would like to support decimal objects efficiently in Numba) |
|
Date |
User |
Action |
Args |
2014-08-20 20:31:27 | pitrou | set | recipients:
+ pitrou, skrah |
2014-08-20 20:31:27 | pitrou | set | messageid: <1408566687.52.0.428705332346.issue22194@psf.upfronthosting.co.za> |
2014-08-20 20:31:27 | pitrou | link | issue22194 messages |
2014-08-20 20:31:27 | pitrou | create | |
|