You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know, this line would not have the desired effect of clearing the data memory. The slice notation Python makes a copy of the data. So that's not what we want. To fit in with the rest of the code and allow old data to be garbage collected, just assign an empty list to the data variable.
The text was updated successfully, but these errors were encountered:
del data[:]
As far as I know, this line would not have the desired effect of clearing the data memory. The slice notation Python makes a copy of the data. So that's not what we want. To fit in with the rest of the code and allow old data to be garbage collected, just assign an empty list to the data variable.
The text was updated successfully, but these errors were encountered: