Code: Select all
assertion "ATB_GET_KIND(block) == AT_HEAD" failed: file "../../py/gc.c", line 590, function: gc_free
I happens when I call a short test script, let's call it test(), which save a few lines of text to a file. It ONLY happens when I execute this script's function by calling it from the REPL prompt manually by entering test() over and over. If I call this script function in a short loop, e.g. with "for _ in range(200): test()", everything runs well.
Has anyone a hint about what is memorywise different between calling from REPL and calling in a short loop?