Message249108
| Author |
ncoghlan |
| Recipients |
Jim.Jewett, The Compiler, ezio.melotti, martin.panter, mbussonn, ncoghlan, njs, rbcollins, serhiy.storchaka, takluyver, terry.reedy |
| Date |
2015年08月25日.06:03:03 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1440482584.38.0.610351551052.issue24294@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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) |
|
History
|
|---|
| 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 |
|