2D lists
Carl Banks
imbosol at vt.edu
Tue Jan 21 17:53:46 EST 2003
More information about the Python-list mailing list
Tue Jan 21 17:53:46 EST 2003
- Previous message (by thread): 2D lists
- Next message (by thread): 2D lists
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Skip Montanaro wrote: > >>> b.append(copy.copy(a)) > > or slightly more efficiently: > > b.append(a[:]) > > Copy should only be needed (and then copy.deepcopy) if you are creating > higher dimensioned arrays/lists. copy.copy could be useful if you don't know what it is you're shallow copying. -- CARL BANKS
- Previous message (by thread): 2D lists
- Next message (by thread): 2D lists
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list