This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Christian.Pérez
Recipients Christian.Pérez, serhiy.storchaka
Date 2014-01-22.12:20:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390393212.88.0.36083566531.issue20343@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-01-22 12:20:12Christian.Pérezsetrecipients: + Christian.Pérez, serhiy.storchaka
2014-01-22 12:20:12Christian.Pérezsetmessageid: <1390393212.88.0.36083566531.issue20343@psf.upfronthosting.co.za>
2014-01-22 12:20:12Christian.Pérezlinkissue20343 messages
2014-01-22 12:20:12Christian.Pérezcreate