Describe Python's garbage collection mechanism in brief?
Answers
Answered by
1
Python uses two strategies for memory allocation reference counting and garbage collection. ... Reference counting works by counting the number of times an object is referenced by other objects in the system. When references to an object are removed, the reference count for an object is decremented.
Similar questions