This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou, skrah
Date 2014-08-20.20:31:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408566687.52.0.428705332346.issue22194@psf.upfronthosting.co.za>
In-reply-to
Content
>  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)
History
Date User Action Args
2014-08-20 20:31:27pitrousetrecipients: + pitrou, skrah
2014-08-20 20:31:27pitrousetmessageid: <1408566687.52.0.428705332346.issue22194@psf.upfronthosting.co.za>
2014-08-20 20:31:27pitroulinkissue22194 messages
2014-08-20 20:31:27pitroucreate