3 ms·
> in which case only STORED is available, therefore that's the only possible default, any other would lead to zipfile raising errors out of the box for some peo
by Dylan16807 6y ago
> in which case only STORED is available, therefore that's the only possible default, any other would lead to zipfile raising errors out of the box for some people.
I don't think that logic works. You can default to "deflate if available" just fine.
- masklinn 6y agoAn inconsistent and variable default would be significantly, unfathomably, worse than a "bad" default. And I don’t even have to imagine it, because there’s an example right in the python builtins: open in text mode will use… whatever garbage `locale.getpreferredencoding()` returns. Fantastic way to create hard to reproduce bugs.
- Dylan16807 6y agoThat's because using non-binary mode is bad, not because variable defaults are bad. > An inconsistent and variable default would be significantly, unfathomably, worse than a "bad" default. Even if you're right on that, I will still say that defaulting to no compression is significantly worse than going "error missing library" for people that have a partial install.
- masklinn 6y ago> That's because using non-binary mode is bad Text mode is perfectly good, it’s what users want in a good 90% of cases. Possibly more.
- Dylan16807 6y agoThey want text, and they want line endings that work, but that doesn't mean they want file contents secretly changed as they go.