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 vstinner
Recipients John.Malmberg, vstinner
Date 2014-08-31.12:41:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409488866.66.0.91696431788.issue22310@psf.upfronthosting.co.za>
In-reply-to
Content
I don't understand the issue. How and when the EOF keyboard shortcut is not CTRL+d? Can it be configured?

+            # Add 64 to get the ASCII character.
+            eof_char = chr(ord(eof_num) + 64)

I don't understand the trick '\x04' termios.tcgetattr(sys.stdin)[6][termios.VEOF] becomes 'CTRL+D'.

Where does the 64 constant come from? To me, '\x04' is the character sent to signal the end of the file.
History
Date User Action Args
2014-08-31 12:41:06vstinnersetrecipients: + vstinner, John.Malmberg
2014-08-31 12:41:06vstinnersetmessageid: <1409488866.66.0.91696431788.issue22310@psf.upfronthosting.co.za>
2014-08-31 12:41:06vstinnerlinkissue22310 messages
2014-08-31 12:41:06vstinnercreate