Brian Kohan <bcko...@gmail.com> added the comment:

I concur with Gregory. It seems that the action here is to just make it 
apparent in the docs the very real possibility of false positives.

In my experience processing data from the wild, I see a pretty high rate of 
about 1/1000. I'm sure the probability is a function of the types of files I'm 
working with. But in any case, is_zipfile can't be made to be sufficient in and 
of itself for reliably identifying zip files. It still has utility in weeding 
out true negatives though. In my case I don't ever expect to see a self 
extracting file or a file compounded into an executable so I use the results of 
is_zipfile as well as a manual check of the magic bytes at the start. So far so 
good.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42096>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to