Re: "Help needed - I don't understand how Python manages memory"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christian Heimes

    Re: "Help needed - I don't understand how Python manages memory"

    Gabriel Genellina schrieb:
    Apart from what everyone has already said, consider that FreqDist may import other modules, store global state, create other objects... whatever.
    Pure python code should not have any memory leaks (if there are, it's a bug in the Python interpreter). Not-carefully-written C extensions may introduce memory problems.
    Pure Python code can cause memory leaks. No, that's not a bug in the
    interpreter but the fault of the developer. For example code that messes
    around with stack frames and exception object can cause nasty reference
    leaks.

    Christian
Working...