Rohan D'Sa added the comment:
Yes. Thanks.
On 30 Jan 2018 8:31 PM, "Cheryl Sabella" wrote:
>
> Cheryl Sabella added the comment:
>
> Can this be closed as 'Not a Bug'?
>
> --
> nosy: +csabella
>
>
Rohan D'Sa added the comment:
you are right. i realized later i actually had a leak in a com instantiated
object, assumed it was a leak in the python and tried to find it using the gc
module.
The gc documentation led me down the garden path.
QUOTE
gc.garbage
A list of objects whic
New submission from Rohan D'Sa :
import gc, json
class leak(object):
def __init__(self):
pass
gc.set_debug(gc.DEBUG_LEAK)
while True:
leak_ = leak()
json.dumps(leak_.__dict__, indent=True)
gc.collect()
print(f"garbage count: {len(gc.garbage)}")
Usin