You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ python
Python 2.7.4 (default, Sep 26 2013, 03:20:26)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from zipfile import ZipFile
>>>
>>> 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
...
>>> print count
964352
Could you please test with in-development version Python 2.7.6+? Unlikely it is related to bpo-6759, but perhaps it is related to bpo-20048.
ChristianPrez commented on Jan 22, 2014
ChristianPrezmannequin
MannequinAuthor
More actions
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]
Activity
ChristianPrez commentedon Jan 22, 2014
To reproduce the error:
$ unzip -p dbNSFP2.0.zip dbNSFP2.0_variant.chr20 | wc -l 2161277may it be related to bpo-6759 ?
serhiy-storchaka commentedon Jan 22, 2014
Could you please test with in-development version Python 2.7.6+? Unlikely it is related to bpo-6759, but perhaps it is related to bpo-20048.
ChristianPrez commentedon Jan 22, 2014
With 2.7.6+ works fine.
I tested it with Python 3.3 and works fine too.
serhiy-storchaka commentedon Jan 22, 2014
Thank you for your report Christian. This bug already fixed in bpo-20048. Wait for Python 2.7.7 bugfix release.