consider the following python snippet
spoon = 2 + 2
print spoon
def spoon(x):
return x + 3
print spoon
spoon = 'foo'
print spoon
here we are using same name to create new objects. my doubt is how can we access the data inside the first object we created. i.e., how can i access 4 which is stored in spoon. although the name space is pointing to a new id but still the old object exists so i am asking is there anyway to access the contents of those objects ?