[Tutor] Am I storeing up problems ?

Alan Gauld alan.gauld at freenet.co.uk
Mon Jan 3 01:53:42 CET 2005


> I needed to copy this matrix to 'self.old_data', so I have been
using
> .deepcopy(), which works OK but is SLOW .... (12+ secs)

Are you sure you need to copy it./ A simple reassignment should work
and then reconstruct the structure using fresh lists/dictionary etc.
That should work faster.

Alan G.



More information about the Tutor mailing list