[issue26675] Appending to a large list flushes old entries
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 <http://bugs.python.org/issue26675> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26675] Appending to a large list flushes old entries
Changes by Swaprava Nath : Removed file: http://bugs.python.org/file42330/knapsack.py ___ Python tracker <http://bugs.python.org/issue26675> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26675] Appending to a large list flushes old entries
Swaprava Nath added the comment: I realised that this is a normal behavior, I just had two for loops, nested, and every time the inner for loop runs, the list flushes. No worries, sorry! -- resolution: -> not a bug ___ Python tracker <http://bugs.python.org/issue26675> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26675] Appending to a large list flushes old entries
Changes by Swaprava Nath : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue26675> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com