Message249108
As Robert suggests, I think it's OK to issue the deprecation warnings for code run via "python < script.py" or "cat script.py | python". Reverting to the current behaviour if folks actually want that would just be a matter of passing the file in directly, rather than piping it via stdin: "python script.py".
That eliminates any need to care about whether the input is a tty or not, and we can just focus on the code paths. If you grep the CPython code base for "ps1" you're likely to find most of the relevant places ("sys.ps1" hold the interactive prompt, while "sys.ps2" holds the continuation prompt) |
|
Date |
User |
Action |
Args |
2015-08-25 06:03:04 | ncoghlan | set | recipients:
+ ncoghlan, terry.reedy, rbcollins, ezio.melotti, njs, takluyver, martin.panter, Jim.Jewett, serhiy.storchaka, The Compiler, mbussonn |
2015-08-25 06:03:04 | ncoghlan | set | messageid: <1440482584.38.0.610351551052.issue24294@psf.upfronthosting.co.za> |
2015-08-25 06:03:04 | ncoghlan | link | issue24294 messages |
2015-08-25 06:03:03 | ncoghlan | create | |
|