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 JosephArmbruster
Recipients JosephArmbruster, gvanrossum
Date 2007-12-20.18:28:08
SpamBayes Score 0.32047248
Marked as misclassified No
Message-id <1198175288.43.0.311890790474.issue1667@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, just did as so:

sys.stdout.write(prompt)
sys.stdout.flush()
key = sys.stdin.readline()
print(repr(key))
print(len(key))
if key not in ('', 'q'):

Results:

All Python releases are Open Source (see http://www.opensource.org for
Hit Return for more, or q (and Return) to quit:
'\n'
1
Hit Return for more, or q (and Return) to quit: q
'q\n'
2
History
Date User Action Args
2007-12-20 18:28:08JosephArmbrustersetspambayes_score: 0.320472 -> 0.32047248
recipients: + JosephArmbruster, gvanrossum
2007-12-20 18:28:08JosephArmbrustersetspambayes_score: 0.320472 -> 0.320472
messageid: <1198175288.43.0.311890790474.issue1667@psf.upfronthosting.co.za>
2007-12-20 18:28:08JosephArmbrusterlinkissue1667 messages
2007-12-20 18:28:08JosephArmbrustercreate