The problem is that Python does assignment by reference. So the line
_link2 = _link
operates by making _link2 and _link both point to the same object. Change one, and you've changed them both.
If you want to copy the contents, do a slice:
_link2 = _link[:]
The operation on the left returns an entire copy of _link, which then gets assigned to _link2.
Jeff
Reputation Points: 92
Solved Threads: 156
Practically a Master Poster
Offline 608 posts
since Jul 2006