[issue19274] make zipfile.PyZipFile more usable

Christian Tismer report at bugs.python.org
Fri Oct 18 17:04:57 CEST 2013


Christian Tismer added the comment:

Hi Georg,
So do you think it is ok this way?
I was not sure if extending the function with an optional
arg is ok, or if a method to configure PyZipFile would be better.
At the moment I just needed the simple functionality.
Should it maybe get a regex like compileall.py ?

And a general question:
What is the right constraint for a filter function?
As I wrote it, returning nothing would simply be treated as "False".
Maybe it is better to enforce a return value which explicitly forbids
to be just None, which often just means "I forgot the return value" ?

About feature or fix: Well, I need this for python2.7, because without
it, the whole purpose of PyZipFile is pretty questionable. I might argue
it a fix, because it crashes on the standard library ;-)

Anyway, tell me and I'l add test, docs and put it into dev.

cheers - chris

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19274>
_______________________________________


More information about the Python-bugs-list mailing list