I know there are several ways to resize lists, including creative list comprehensions and slicing:
For example, with slices:
values = values[:-50]
However, it seems these methods that reassign back to the initial identifier would require a copy of the list being created in memory. Am I mistaken?
If you have a huge list that you cannot afford to create a copy of (say it is a massive list over half the size of your available memory), is there anyway to resize a list in place?