
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
When are python objects candidates for garbage collection?
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.
- Related Articles
- Destroying Objects (Garbage Collection) in Python
- When will be an object eligible for garbage collection?
- Garbage Collection in Python
- How does garbage collection work in Python?
- Java Garbage collection
- When are python classes and class attributes garbage collected?
- Garbage collection in Java
- What is JavaScript garbage collection?
- Garbage collection(GC) in JavaScript?
- How to make an object eligible for garbage collection in Java?
- What is garbage collection in C#?
- Destructors and Garbage Collection in Perl
- How to force garbage collection in C#?
- Do you think garbage collector can track all the Python objects?
- Using the finalize() method in Java Garbage Collection

Advertisements