It there a way to create a new reference of an object from the string representation of its id? Thanks for any help. class foo: def info(self): print self a = foo() a.info() ccc = "newa = 0x%x" % id(a) exec(ccc)