[issue38634] Symbol resolution conflict when embeding python in an application using libedit
serge-sans-paille
report at bugs.python.org
Mon Nov 4 03:27:47 EST 2019
serge-sans-paille <serge.guelton at telecom-bretagne.eu> added the comment:
@ned I(d rather see this as an evolution of Issue13631, as this solves a problem when libreadline and libedit are both loaded in the same executable. As such, using libedit instead of readline wouldn't solve the issue: what if the program Python is embeded in is linked to readline?
I find python approach relatively elegant: detect the linked library at runtime and use the ad-hoc implementation based on this.
An other option would be to dlopen readline using the RTLD_LOCAL flag, so that we get a better, non intrusive symbol resolution.
What do you think?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38634>
_______________________________________
More information about the Python-bugs-list
mailing list