#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS
Python: find all instances of a class with gc.get_objects()
122
·
Adamj
·
July 14, 2026, 8:22 p.m.
posts
Python
Python
Debugging
software development
garbage-collection
Summary
This post discusses a useful technique for debugging Python classes by utilizing the `gc.get_objects()` function to find live instances of a class, making it easier to analyze attributes or current states without altering the class itself.
Read full post on adamj.eu →
MORE POSTS LIKE THIS
How to Debug uv Dependency Resolution Failures
Python Developer Tooling Handbook – pydevtools.com ·
Aug 15, 2026
Python
Debugging
F is for f-strings - Python A to Z
Juha-Matti Santala ·
Aug 7, 2026
Python
Debugging
How to Fix: ImportError: circular import (A Deep Dive)
Ahmed Nabil ·
Jun 17, 2026
Python Errors
Circular Import
Using LLMs to find Python C-extension bugs
Ankursethi ·
May 11, 2026
Python
Debugging
How to Fix: AttributeError: ‘str’ object has no attribute ‘x’
Ahmed Nabil ·
Feb 28, 2026
Python Errors
AttributeError
From Python3.8 to Python3.10: Our Journey Through a Memory Leak
Lyft ·
Dec 15, 2025
Memory Leak
Python
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google