Saturday 5 December 2015

Python: Destroy objects: Garbage collection

Garbage collection is a process of freeing memory used by un referenced objects. Python deletes un-needed objects, when their reference count is reaches to zero.

Python’s garbage collector runs in background during the program execution and destroy the objects, whose reference count is 0.

Following post explains it clearly.





Previous                                                 Next                                                 Home

No comments:

Post a Comment