possible string.strip memory leakage

Bernard Yue bernie at 3captus.com
Wed Mar 13 19:23:33 EST 2002


Mike Brenner wrote:

> There might be a memory leak in string.strip.
>
> I wrote a python function to strip blanks off the left and right of a string. When I discovered string.strip, I replaced the call to my version with string.split, and I got a large memory leakage. When I put the call back to calling my python function, the memory leakage went away.

Did happen to me.  So we need your Python version and OS you are running.

Bernie

--
There are three schools of magic.  One:  State a tautology, then ring
the changes on its corollaries; that's philosophy.  Two:  Record many
facts.  Try to find a pattern.  Then make a wrong guess at the next
fact; that's science.  Three:  Be aware that you live in a malevolent
Universe controlled by Murphy's Law, sometimes offset by Brewster's
Factor; that's engineering.
                -- Robert A. Heinlein




More information about the Python-list mailing list