copy mesh data (obj A->obj B)

Hello,

I’m interested in creating a simple reference system with goal to replace existing objects mesh data with imported objects mesh data (after bpy.ops.import_scene.obj). The goal is to transfer ONLY the mesh data so all other blender scene object specific attributes (transformations, materials, animations, modifiers etc) remain intact.

Solved: object.data.copy()