summaryrefslogtreecommitdiffstats
path: root/Modules/resource.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-02-14 19:50:32 (GMT)
committerGuido van Rossum <guido@python.org>1997-02-14 19:50:32 (GMT)
commit775af9191149059bf5ebfcda6dd9bf0251ce511a (patch)
tree66cf34fc0ca605b6d073e7869461c052204c296c /Modules/resource.c
parent7433b12a5ca8c1c6a6685160edb09efbf61c4544 (diff)
downloadcpython-775af9191149059bf5ebfcda6dd9bf0251ce511a.zip
cpython-775af9191149059bf5ebfcda6dd9bf0251ce511a.tar.gz
cpython-775af9191149059bf5ebfcda6dd9bf0251ce511a.tar.bz2
My version of Lee Busby's patches to make '-i' pretend stdin is a tty
even if it isn't. Changes: - set the global flag Py_InteractiveFlag when -i is given - call Py_FdIsInteractive() instead of isatty() - make stdin unbuffered, too, when using -u - make stdin and stdout line buffered, when stdin is interactive and not -u Note that setting the environment variable PYTHONINSPECT does not have these extra effects of -i. (Should it?) Unlike Lee's changes, I don't set change the prompt to go to stderr when -i is given.
Diffstat (limited to 'Modules/resource.c')
0 files changed, 0 insertions, 0 deletions