Ahh.. interesting. Then I guess using the id of the tuples to show that they are using the same object doesn't exactly prove the point. To your original point (that tuples reallocate based on length) I see that if I…
The free list for lists seems to reuse more than just empty lists as you suggest. > a = ['non','empty','list'] > id(a) 4363176072 > del a > b = ['new', 'list'] > id(b) 4363176072
Ahh.. interesting. Then I guess using the id of the tuples to show that they are using the same object doesn't exactly prove the point. To your original point (that tuples reallocate based on length) I see that if I…
The free list for lists seems to reuse more than just empty lists as you suggest. > a = ['non','empty','list'] > id(a) 4363176072 > del a > b = ['new', 'list'] > id(b) 4363176072