Is there an existing implementation of an iterative version of deepcopy for Python 2.5.2? The deepcopy method available from the copy module is recursive and fails on large trees. I am not in a position where we can safely increase the stack limit at runtime.
EDIT
I did track this down:
http://code.activestate.com/recipes/302535/
I haven't tested it, but it looks like it has potential.