I perform a function to execute the midpoint shift algorithm, as well as some other realistic terrain generation functions, in a 2d list (format [[n11, n12, ...], [n11, n12, ...], ...] )
My question is, is it standard in python to change the input list in this case (without return value) or is it better to make a deep copy of the list and return it?
I know that copying and returning are less efficient, however I do not want the function to be confused for others.
source share