Message219

Author zenzen
Recipients
Date 2000-12-01.11:17:27
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Found this when trying to use pickle.

sys.stdin.read(1) sometimes reads in a lot, rather than one byte.

#!/bin/env jython
import sys
print sys.stdin.read(1)

% jython test.py < ~/tmp/fromc
S'Hi Mom'
p0
.

However, the same script works fine if data is entered by typing rather than redirection.
History
Date User Action Args
2008-02-20 17:16:46adminlinkissue224028 messages
2008-02-20 17:16:46admincreate