Created
May 17, 2014 19:08
-
-
Save superbobry/ca00f2002fe4cc6cdfb5 to your computer and use it in GitHub Desktop.
'io' module in Python2.6.6
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
>>> import io | |
>>> f = io.open("./article_categories_en.nt") | |
>>> f = io.TextIOWrapper(f) | |
>>> next(f) | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/usr/lib64/python2.6/io.py", line 1782, in next | |
line = self.readline() | |
File "/usr/lib64/python2.6/io.py", line 1858, in readline | |
while self._read_chunk(): | |
File "/usr/lib64/python2.6/io.py", line 1590, in _read_chunk | |
input_chunk = self.buffer.read1(self._CHUNK_SIZE) | |
AttributeError: 'TextIOWrapper' object has no attribute 'read1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment