homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Guilherme.Simões, Todd.Rovito, roger.serwy, serhiy.storchaka, terry.reedy
Date 2013年04月28日.17:47:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367171252.46.0.709762136156.issue17838@psf.upfronthosting.co.za>
In-reply-to
Content
Roger: yes. This solves immediate problem and makes Idle more like console interpreter. Same should be done for all three.
Serhiy: the sole and documented purpose of sys.__stdxyz__ is to serve as backup bindings for the three i/o streams, so rebinding them is senseless. I would be willing to say 'you get what you deserve if you do that'. But since console tolerates double rebinding, we can make Idle do so too. Again, same should be done for all three streams.
See attached patch. It seems to work, but someone please recheck for typos. Are we sure that binding streams to handler object cannot cause problems, such as during shutdown with atexit handlers?
History
Date User Action Args
2013年04月28日 17:47:32terry.reedysetrecipients: + terry.reedy, roger.serwy, Todd.Rovito, serhiy.storchaka, Guilherme.Simões
2013年04月28日 17:47:32terry.reedysetmessageid: <1367171252.46.0.709762136156.issue17838@psf.upfronthosting.co.za>
2013年04月28日 17:47:32terry.reedylinkissue17838 messages
2013年04月28日 17:47:32terry.reedycreate

AltStyle によって変換されたページ (->オリジナル) /