Message185620
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. |
|
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 | |
|