-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make redirection in a stream fashion #29
Comments
Hi Zheyi Thanks for the suggestion. Does this change the behavior of the program, Cheers, On Tue, Mar 17, 2015 at 2:48 AM, Rong Zheyi notifications@github.com
|
I am not sure whether this would change the behavior of the program across versions of Python. |
fwiw, |
And I can't speak for anything before Python 2.3, but it worked then, I'm fairly certain. |
When classifying a line at a time, only read a line at a time, so as to prevent Python from loading a large file into memory needlessly.
Fixed, thanks to tripleee, rongzhenyi and jnothman. |
Hello,
I am trying out this fancy language detection script,
and I am actually thinking -
do you think it makes more sense to make
for line in sys.stdin.readlines():
into
for line in sys.stdin:
in langid.py ?
The text was updated successfully, but these errors were encountered: