[issue22194] access to cdecimal / libmpdec API

Stefan Krah report at bugs.python.org
Wed Sep 3 11:07:59 CEST 2014


Stefan Krah added the comment:

Well, we have two issues now:

  1) Make the _decimal API available via capsule.

  2) Make the libmpdec symbols public (i.e. remove "GCC visibility push(hidden)"
     from Modules/_decimal/libmpdec/mpdecimal.h.


The question here is now whether 2) is safe. Note that active symbol
hiding has always only worked for gcc (but I think on Windows and AIX
the symbols are hidden by default anyway).


A third option is to make both the _decimal and libmpdec APIs available
via capsule, which is a lot of work (300 functions). Also people would
likely want the API to work on 2.7, which would mean that large parts
of the cdecimal on PyPI (which uses the incompatible libmpdec-2.3)
would need to be rewritten.

----------

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


More information about the Python-bugs-list mailing list