[New-bugs-announce] [issue26675] Appending to a large list flushes old entries
Swaprava Nath
report at bugs.python.org
Wed Mar 30 22:49:57 EDT 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue26675>
_______________________________________
More information about the New-bugs-announce
mailing list