Trying to learn Python here, hope its ok to ask basic non blender releated questions ?
I was just puzzled by a bit of code I had written to nest a list inside a list. The inner list variable I was using, I added to the outer list, then changed the inner list variable, only to notice that the outer list, also changed at that point to reflect the change. (Not what I wanted it to do)
I guessed this was a probably a shallow/deep copy issue, my attempt at a fix was to import the copy module and add a line
tempCopy = copy.deepcopy(onePath)
This did make it behave as I was expecting,
Q1 Was my assumption about the problem correct ?
Q2 This seemed a bit convoluted, is there a simpler way of achieving the same end result ?