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 martin.panter
Recipients martin.panter, silvioricardoc
Date 2017-09-06.21:11:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504732317.93.0.0730105681804.issue29396@psf.upfronthosting.co.za>
In-reply-to
Content
I think the difference between Python 2 and 3 here is that Python 2’s file objects, including sys.stdin, wrap C library FILE objects, which is supported by the Readline library. However Python 3 has its own kind of file objects, independent of standard C and Readline. Python 3 only uses Readline if sys.stdin corresponds to the original C stdin FILE object.

Perhaps Python 3 could support Readline with other file objects (or at least file descriptors), but I think that would be a new feature.
History
Date User Action Args
2017-09-06 21:11:57martin.pantersetrecipients: + martin.panter, silvioricardoc
2017-09-06 21:11:57martin.pantersetmessageid: <1504732317.93.0.0730105681804.issue29396@psf.upfronthosting.co.za>
2017-09-06 21:11:57martin.panterlinkissue29396 messages
2017-09-06 21:11:57martin.pantercreate