Solved by ptrblck in post #2 
              
              
                If you print id(param) in the first print loop, you’ll get the same ids.  
Currently you are printing the id of the name object.