> On 16 Jan 2024, at 12:10, Frank Millman via Python-list > <python-list@python.org> wrote: > > My problem is that my app is quite complex, and it is easy to leave a > reference dangling somewhere which prevents an object from being gc'd. What I do to track these problems down is use gc.get_objects() then summerize the number of each type. Part 2 is to print the delta after an interval of a 2nd summary. Leaks of objects show up as the count of a type increasing every time you sample. Barry -- https://mail.python.org/mailman/listinfo/python-list
- Re: Question about garbage... Chris Angelico via Python-list
- Re: Question about garbage... Thomas Passin via Python-list
- Re: Question about ga... Barry via Python-list
- Re: Question abou... Thomas Passin via Python-list
- Re: Question abou... Barry via Python-list
- Re: Question about garbage collection Frank Millman via Python-list
- Re: Question about garbage collection Chris Angelico via Python-list
- Re: Question about garbage collect... Frank Millman via Python-list
- Re: Question about garbage col... Chris Angelico via Python-list
- Re: Question about garbage... Greg Ewing via Python-list
- Re: Question about garbage collection Barry via Python-list
- Re: Question about garbage collection Greg Ewing via Python-list
- Re: Question about garbage collect... Frank Millman via Python-list
- Re: Question about garbage col... Left Right via Python-list