Created
February 14, 2018 09:57
-
-
Save matlink/af79d68b5e80624198e09e6d8ab42c73 to your computer and use it in GitHub Desktop.
iterate over lines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open(filename) as _buffer: | |
for word in _buffer: | |
word = word.rstrip('\r\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment