Staging
v0.5.1
https://github.com/python/cpython
Revision 7105319ada2e663659020cbe9fdf7ff38f421ab2 authored by serge-sans-paille on 04 December 2019, 16:02:57 UTC, committed by Victor Stinner on 04 December 2019, 16:02:57 UTC
The readline module now detects if Python is linked to libedit at runtime
on all platforms.  Previously, the check was only done on macOS.

If Python is used as a library by a binary linking to libedit, the linker
resolves the rl_initialize symbol required by the readline module against
libedit instead of libreadline, which leads to a segfault.

Take advantage of the existing supporting code to have readline module being
compatible with both situations.
1 parent ac0e1c2
History
Tip revision: 7105319ada2e663659020cbe9fdf7ff38f421ab2 authored by serge-sans-paille on 04 December 2019, 16:02:57 UTC
bpo-38634: Allow non-apple build to cope with libedit (GH-16986)
Tip revision: 7105319
File Mode Size
pgen
Python.asdl -rw-r--r-- 5.3 KB
acceler.c -rw-r--r-- 3.3 KB
asdl.py -rw-r--r-- 12.6 KB
asdl_c.py -rwxr-xr-x 46.4 KB
grammar1.c -rw-r--r-- 1.0 KB
listnode.c -rw-r--r-- 1.6 KB
myreadline.c -rw-r--r-- 10.6 KB
node.c -rw-r--r-- 5.1 KB
parser.c -rw-r--r-- 12.4 KB
parser.h -rw-r--r-- 1.4 KB
parsetok.c -rw-r--r-- 14.2 KB
token.c -rw-r--r-- 4.5 KB
tokenizer.c -rw-r--r-- 54.7 KB
tokenizer.h -rw-r--r-- 3.7 KB

back to top