Message185620
| Author |
terry.reedy |
| Recipients |
roger.serwy, terry.reedy |
| Date |
2013年03月31日.08:07:42 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1364717262.68.0.09088887666.issue17585@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I thought of this exact patch, but then decided against it.
1. The bug is in site.py -- see thread
[Python-Dev] Idle, site.py, and the release candidates
for a better explanation and solution.
2. The Idle behavior, inherited from io.IOBase is correct.
3. The consequence on *other* Python code of a fake fileno is unknown.
The solution I gave for site.py is to begin .__call__ with
if sys.stdin.__name__ == 'PseudoInputFile': sys.stdin.close()
This should be safe to do without another release candidate.
The name as seen by the user process should be checked but I cannot do so at the moment (on substitute substitute computer). This would only be done in the release by the file managers. The exact decision is up to them.
So I would replace IDLE with site.py in the title. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年03月31日 08:07:42 | terry.reedy | set | recipients:
+ terry.reedy, roger.serwy |
| 2013年03月31日 08:07:42 | terry.reedy | set | messageid: <1364717262.68.0.09088887666.issue17585@psf.upfronthosting.co.za> |
| 2013年03月31日 08:07:42 | terry.reedy | link | issue17585 messages |
| 2013年03月31日 08:07:42 | terry.reedy | create |
|