I've done my reading trust me. And python still acts up when removing an item from the list. I have a graph implementation.
Now there is this one function that is supposed to delete some edges that the node has attached. I have a list of Edge objects and want to remove them by value...
Code is something like this:
for edge in node.edgeList: ... edgeToRemove = edge # edgeToRemove now holds something like <edge.Edge object at 0x107dcaf90> node.edgeList.remove(edgeToRemove) #KINDA WORKS - just doesnt behave consistently...It removes some edges but not others What is the best way to remove them?