[issue22194] access to cdecimal / libmpdec API

Stefan Krah report at bugs.python.org
Fri Aug 15 20:37:34 CEST 2014


Stefan Krah added the comment:

I'm a little unsure what to do with the API, see also #15237:

  1) I'm not too fond of the Capsule method, especially because
     it *seems* possible to get at the symbols directly on Linux
     and Windows (provided that they aren't static of course).

  2) I would not like to spend time on it if we go ahead and
     make decimal a builtin (double effort).

  3) It's not clear whether users would not be served better by
     using functions from libmpdec directly (much faster,
     probably less error handling).


For 3) I've attached a draft that illustrates the issue.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22194>
_______________________________________


More information about the Python-bugs-list mailing list