Why I fail so bad to check for memory leak with this code?
Marco Sulla
Marco.Sulla.Python at gmail.com
Thu Jul 21 16:51:17 EDT 2022
On Thu, 21 Jul 2022 at 22:28, MRAB <python at mrabarnett.plus.com> wrote:
>
> It's something to do with pickling iterators because it still occurs
> when I reduce func_76 to:
>
> @trace
> def func_76():
> pickle.dumps(iter([]))
It's too strange. I found a bunch of true memory leaks with this
decorator. It seems to be reliable. It's correct with pickle and with
iter, but not when pickling iters.
More information about the Python-list
mailing list