Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why does my progarm leak?

Name: Anonymous 2010-05-08 23:16

It's written in FIOC which is supposed to manage memory for me but it kind of doesn't. All my program does is scrape a website, iterate over an arrays I build from the data I got and download a few things but after a while it grows to over 1000mb.

Fucking FIOC.

Name: Anonymous 2010-05-08 23:16

It's because you aren't a very good programmer.

Name: Anonymous 2010-05-08 23:23

OP = shithead who doesn't know that GC won't collect stuff that's still reachable.

Name: Anonymous 2010-05-08 23:30

del. Use it.

Name: Anonymous 2010-05-09 5:46

>>3
This. GC is a wonderful thing, but it's making some people stupid.

Name: Anonymous 2010-05-09 10:00

>>4
del is 90% of the time not what you want.
first off it does not deallocate anything, it just drops one reference. if your variable is referenced more than once, it will still be there.

I don't think del even does anything at all in non-CPython (Jython, IronPython, etc.) either.

the only correct answer is >>2-3.

Name: Anonymous 2010-05-09 11:00

>>2-6
Back to the imageboards, please

Name: Anonymous 2010-05-09 11:09

>>1,7 same person

Name: Anonymous 2010-05-09 11:26

>>1-999 same person
wouldn't it be hilarious if the threadstopper made and discussed threads though, huh guys?

Name: Anonymous 2010-05-09 11:51

>>9
THREADSTOP MY ANUS

Name: Anonymous 2010-05-09 12:54

>>7-9 Same person.

Name: Anonymous 2010-05-09 13:20

>>11-15
same person

Name: Anonymous 2010-05-09 13:26

Fuck off

Name: Anonymous 2010-05-09 13:27

>>13
Never

Name: Johnny 2010-05-09 16:31

are there any other posters on this forum?

@Anonymous: why do you talk to yourself?

Name: Anonymous 2010-05-09 17:43

>>16
.on.nimp.org
You know what comes next, right?

Name: Anonymous 2010-05-09 20:54

OP, just let your script process everything in chunks. Save your progress in a temporary file and use exit(4) or whatever unless you're done with everything in which case you just quit as normal. Then loop your Python script in a shell script until it's finished by checking for the exit code (using $?).
This will fix your problem without wasting too much time with hunting for stupid bugs.

Name: Anonymous 2010-05-10 9:44

Serious answer, use generators

Name: Anonymous 2010-05-10 10:43

Serious answer, use LISP

Name: Anonymous 2010-12-06 0:53

>>17
Fuck off, ``faggot''.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List