Antoine Pitrou added the comment:
You called read1() on fl (a FileIO object) and not cfl (a BufferedReader
object). Your fault for choosing confusing variable names :-)
>>> len(fl.read1(70934549))
Traceback (most recent call last):
File "<pyshell#44>", line 1, in <module>
len(fl.read1(70934549))
AttributeError: '_io.FileIO' object has no attribute 'read1'
Please try to call cfl.read1() and see whether it works (it should).
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17440>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com