> Is there a function <somefunction> in Python > for which > > something is <somefunction>(id(something)) > > returns invariably true? Nope. You might want to consider creating your own dictionary to map ids to the objects that you are interested in. Cheers, Brian