When are python objects candidates for garbage collection?

PythonServer Side ProgrammingProgramming

A python object or variable will be eligible for garbage collection as soon as all references to it go out of scope or are manually deleted (del x). We would have to presume there were no references to the object anywhere else for it to be garbage collected.

Updated on 30-Jul-2019 22:30:21