I have always had a unique mesh for every MESH type object in blender, to easily access them together in a python script (Iterate through objects and do something with an object and a mesh with the same name).
Now I want to have a mesh for several objects. I want to export the meshes and the objects separately but for every object, export the mesh it is connected to (its name, index or some identifier) to later connect them in an external program. I already found mesh.users which shows how many objects are using this mesh, but I want to reference all of those objects. I am exporting to a text file. So how could I do this in Blender?