Newbie Alert:
I'm new to Python and when I'm basically adding values to a dict, I find that when I'm printing the whole dictionary, I get the same value of something for all keys of a specific key.
Seems like a pointer issue?
Here's a snippet when using the event-based XML parser (SAX):
Basically with every end element of "row", I'm storing the element by it's key: self.Id, where self is the element.
def endElement(self, name):
if name == "row":
self.mapping[self.Id] = self
print "Storing...: " + self.DisplayName + " at Id: " + self.Id