And in Python it is common to reuse the list and not to save result with new name (error instead of new_error_list), but sometimes it is clearer to do like above. It could be actually clearer, if you do not continue to use old error list after this operation to update error.