I would like to add an item to a list in python, I want to add the item at an index which is greater than the size of the list. This should cause the list to grow automatically.
For example with a list of 3 items, I would like to insert element at index 6. Is this possible in python without first having to reinitialize the list? It seems Python will merely append to the list if you try to insert an item at index 6 in my example.
list(orMutableSequence) and implement the behaviour you want, for example.dictas a form of sparse list...