Christian Pérez added the comment:
With 2.7.6+ works fine.
Python 2.7.6+ (2.7:c28e07377b03, Jan 22 2014, 12:56:14)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from zipfile import ZipFile
[54979 refs]
>>>
[54979 refs]
>>> with ZipFile("dbNSFP2.0.zip", "r") as zf:
... with zf.open("dbNSFP2.0_variant.chr20", "U") as f:
... count = 0
... for line in f:
... count += 1
...
[55930 refs]
>>> print count
2161277
[55930 refs]
I tested it with Python 3.3 and works fine too.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue20343>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com