New submission from Swaprava Nath: I'm storing several variables in a list after a computation in a for loop. I'm bundling the variables in a tuple and appending this tuple to a list. So, the structure should be:
iter 1: list = [tuple1] iter 2: list = [tuple1, tuple2] iter 3: list = [tuple1, tuple2, tuple3] etc. and the tuple has dissimilar objects. Surprisingly, I see that the list grows until a point and then suddenly all old entries are flushed out and new tuple_n is the only entry iter n: list = [tuple_n] Is this a bug? Or is there a cap on the size of the list? ---------- files: knapsack.py messages: 262683 nosy: Swaprava Nath priority: normal severity: normal status: open title: Appending to a large list flushes old entries type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file42330/knapsack.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26675> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com