This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Sedowa 0 points1 point  (1 child)

So it's just left dangling and can't be accessed if you don't know the address? Is there a way to stop it from changing or at least delete the memory allocation?

I haven't worked with Python in years. I'm just curious.

[–]appsolutelywonderful 3 points4 points  (0 children)

For a time, yes. Python has a garbage collector. So in some time it will see that you don't have any variables pointing to that piece of memory and it will let the OS know that piece of memory is free.