Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision 6f7346bb3983cd7a6aa97eeeafffb3cecd5292b8 authored by Victor Stinner on 03 June 2020, 16:28:18 UTC, committed by GitHub on 03 June 2020, 16:28:18 UTC
* bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20579) Fix GIL usage in PyOS_Readline(): lock the GIL to set an exception. Pass tstate to my_fgets() and _PyOS_WindowsConsoleReadline(). Cleanup these functions. (cherry picked from commit c353764fd564e401cf47a5d9efab18c72c60014e) * bpo-40826: Add _PyOS_InterruptOccurred(tstate) function (GH-20599) my_fgets() now calls _PyOS_InterruptOccurred(tstate) to check for pending signals, rather calling PyOS_InterruptOccurred(). my_fgets() is called with the GIL released, whereas PyOS_InterruptOccurred() must be called with the GIL held. test_repl: use text=True and avoid SuppressCrashReport in test_multiline_string_parsing(). Fix my_fgets() on Windows: fgets(fp) does crash if fileno(fp) is closed. (cherry picked from commit fa7ab6aa0f9a4f695e5525db5a113cd21fa93787)
1 parent 5b8787e
Tip revision: 6f7346bb3983cd7a6aa97eeeafffb3cecd5292b8 authored by Victor Stinner on 03 June 2020, 16:28:18 UTC
[3.9] bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20613) (GH-20616)
[3.9] bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20613) (GH-20616)
Tip revision: 6f7346b
File | Mode | Size |
---|---|---|
bdist_wininst | ||
clinic | ||
icons | ||
layout | ||
WinMain.c | -rw-r--r-- | 449 bytes |
_msi.c | -rw-r--r-- | 32.6 KB |
_testconsole.c | -rw-r--r-- | 3.3 KB |
classicAppCompat.can.xml | -rw-r--r-- | 3.9 KB |
classicAppCompat.cat | -rw-r--r-- | 10.7 KB |
classicAppCompat.sccd | -rw-r--r-- | 18.1 KB |
config.c | -rw-r--r-- | 5.5 KB |
crtlicense.txt | -rw-r--r-- | 1.7 KB |
dl_nt.c | -rw-r--r-- | 4.6 KB |
empty.c | -rw-r--r-- | 137 bytes |
errmap.h | -rw-r--r-- | 4.9 KB |
errmap.mak | -rw-r--r-- | 95 bytes |
frozen_dllmain.c | -rw-r--r-- | 3.9 KB |
getpathp.c | -rw-r--r-- | 35.4 KB |
invalid_parameter_handler.c | -rw-r--r-- | 549 bytes |
launcher.c | -rw-r--r-- | 63.7 KB |
msvcrtmodule.c | -rw-r--r-- | 15.6 KB |
pyconfig.h | -rw-r--r-- | 20.0 KB |
pylauncher.rc | -rw-r--r-- | 1.5 KB |
pyshellext.cpp | -rw-r--r-- | 18.3 KB |
pyshellext.def | -rw-r--r-- | 141 bytes |
pyshellext.idl | -rw-r--r-- | 277 bytes |
pyshellext.rc | -rw-r--r-- | 1.1 KB |
pyshellext_d.def | -rw-r--r-- | 143 bytes |
python.manifest | -rw-r--r-- | 1.3 KB |
python3.def | -rw-r--r-- | 40.6 KB |
python3dll.c | -rw-r--r-- | 134 bytes |
python_exe.rc | -rw-r--r-- | 1.2 KB |
python_nt.rc | -rw-r--r-- | 1.2 KB |
python_uwp.cpp | -rw-r--r-- | 6.5 KB |
python_ver_rc.h | -rw-r--r-- | 970 bytes |
pythonw_exe.rc | -rw-r--r-- | 1.2 KB |
readme.txt | -rw-r--r-- | 3.5 KB |
sqlite3.rc | -rw-r--r-- | 1.3 KB |
store_info.txt | -rw-r--r-- | 5.6 KB |
testpy.py | -rw-r--r-- | 831 bytes |
validate_ucrtbase.py | -rw-r--r-- | 2.7 KB |
winreg.c | -rw-r--r-- | 63.5 KB |
winsound.c | -rw-r--r-- | 6.5 KB |
Computing file changes ...