]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20579)
authorVictor Stinner <vstinner@python.org>
Mon, 1 Jun 2020 18:59:35 +0000 (20:59 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Jun 2020 18:59:35 +0000 (20:59 +0200)
commitc353764fd564e401cf47a5d9efab18c72c60014e
treeba1a526bd6e9db6ad6fa180c2c2c0bed65bb98e7
parentb4d5a5cca29426a282e8f1e64b2271fdd1f0a23e
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.
Misc/NEWS.d/next/Core and Builtins/2020-06-01-20-31-07.bpo-40826.XCI4M2.rst [new file with mode: 0644]
Parser/myreadline.c