Mayling ge wrote: > Sorry. The code here is just to describe the issue and is just pseudo > code,
That is the problem with your post. It's too vague for us to make sense of it. Can you provide a minimal example that shows what you think is a "memory leak"? Then we can either help you avoid storing extra stuff or confirm an actual leak and help you prepare a bug report. -- https://mail.python.org/mailman/listinfo/python-list