#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Privacy
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()
·
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
Images, the clipboard, and AppleScript
Leancrew ·
Nov 10, 2026
Python
Debugging
Working around a strange Python problem
John Cook ·
Oct 22, 2026
Computing
Python
How to Fix IndentationError in Python (All Variations)
Ahmed Nabil ·
Oct 22, 2026
Python Errors
Debugging
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
Using LLMs to find Python C-extension bugs
Ankursethi ·
May 11, 2026
Python
Debugging
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google
By continuing, you agree to our
Privacy Policy
.