Staging
v0.5.1
https://github.com/python/cpython
Revision 22216107f2890e7ee2ab055e4983b76ff9c62169 authored by Miss Islington (bot) on 29 July 2020, 01:16:19 UTC, committed by GitHub on 29 July 2020, 01:16:19 UTC

This consolidates the handling of my_fgets return values, so that interrupts are always handled, even if they come after EOF.

 I believe PyOS_StdioReadline is still buggy in that I/O errors will not result in a proper Python exception being set. However, that is a separate issue.
(cherry picked from commit a74eea238f5baba15797e2e8b570d153bc8690a7)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent aa16ac7
History
Tip revision: 22216107f2890e7ee2ab055e4983b76ff9c62169 authored by Miss Islington (bot) on 29 July 2020, 01:16:19 UTC
closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)
Tip revision: 2221610
File Mode Size
pegen
pgen
Python.asdl -rw-r--r-- 5.2 KB
acceler.c -rw-r--r-- 3.3 KB
asdl.py -rw-r--r-- 12.7 KB
asdl_c.py -rwxr-xr-x 48.7 KB
grammar1.c -rw-r--r-- 1.0 KB
listnode.c -rw-r--r-- 1.7 KB
myreadline.c -rw-r--r-- 11.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.0 KB
token.c -rw-r--r-- 4.5 KB
tokenizer.c -rw-r--r-- 56.9 KB
tokenizer.h -rw-r--r-- 3.8 KB

back to top