Created
February 18, 2015 17:09
-
-
Save jeff-hager-dev/a050c5b3e6a4866b8949 to your computer and use it in GitHub Desktop.
Deep Copy a 2d array in python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def twoDim_deep_copy(srcArray, destArray): | |
destArray = [row[:] for row in srcArray] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment