Memory leak in Python

bruno at modulix onurb at xiludom.gro
Tue May 9 11:14:25 CEST 2006

diffuser78 at wrote:
> I have a python code which is running on a huge data set. After
> starting the program the computer becomes unstable and gets very
> diffucult to even open konsole to kill that process. What I am assuming
> is that I am running out of memory.
> What should I do to make sure that my code runs fine without becoming
> unstable. How should I address the memory leak problem if any ? I have
> a gig of RAM.
> Every help is appreciated.

Just a hint : if you're trying to load your whole "huge data set" in
memory, you're in for trouble whatever the language - for an example,
doing a 'buf =' on a 100 gig file may not be a good

bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"

More information about the Python-list mailing list