The Python Oracle

Releasing memory in Python

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2 Looping

--

Chapters
00:00 Question
01:31 Accepted answer (Score 103)
04:24 Answer 2 (Score 158)
06:56 Answer 3 (Score 37)
12:36 Answer 4 (Score 5)
13:30 Thank you

--

Full question
https://stackoverflow.com/questions/1545...

Question links:
[How can I explicitly free memory in Python?]: https://stackoverflow.com/questions/1316...

Accepted answer links:
[psutil.Process.memory_info]: https://psutil.readthedocs.io/en/latest/...
[mallopt]: http://man7.org/linux/man-pages/man3/mal...

Answer 2 links:
[concurrent.futures]: http://docs.python.org/dev/library/concu...
[futures]: https://pypi.python.org/pypi/futures
[multiprocessing]: http://docs.python.org/dev/library/multi...

Answer 3 links:
[the source comments]: http://hg.python.org/cpython/file/3.3/Ob...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #memorymanagement

#avk47