News for hackers. Stuff that matters.
Re:Python – Writing large ZIP archives without memory inflation by eggsnbacon1 on Friday May 15, 2020 @08:31PM (#23199192)
Is this an issue in new versions of vanilla Python? I mostly bang on crusty old Java stuff and zip streaming has been built into JDK for decades
Re:Python – Writing large ZIP archives without memory inflation by toyg on Saturday May 16, 2020 @08:22AM (#23202814)
Zip support in cpython stdlib has been there forever (I think it might even be from 2.0 times, early ‘00s) but it’s never been very user-friendly or particularly advanced. It’s one of those things like timezone and http, where the implemented API didn’t really come out “right” and there has been some pain ever since. It’s a bit like SSL stuff in JDK: something that should instinctively be very easy just... isn’t.
Re:Python – Writing large ZIP archives without memory inflation by stuaxo on Saturday May 16, 2020 @06:14AM (#23202181)
The library this uses is an old enough bit of python that when I started 12 years ago, I looked at the code and thought the code looked a bit crusty and old.
Re:Python – Writing large ZIP archives without memory inflation by kitotik on Friday May 15, 2020 @11:38PM (#23200305)
It’s a valid question.

I’m a long time python user but haven’t ever had to work with zip files and didn’t know the answer.

Re:Python – Writing large ZIP archives without memory inflation by hithere68 on Saturday May 16, 2020 @01:39AM (#23200774)
Yeah!