applying modifiers in edit mode

or a single modifier in the list in this case, possible?,

i’ve tried to_mesh but apparently you can’t link mesh data without going to object mode still.

It is not possible to apply a mesh altering modifier in edit mode (basically all of them).

i may have posted the wrong question there, :), i have already achieved the goal to apply modifiers in edit mode even a single target modifier amongst the list, but to connect the derived mesh data(modifiers applied) to the original mesh it seems cannot be done in edit mode, e.g. bpy.context.object.data = bpy.data.meshes[“new mesh”].

Seems to work here, what modifiers do you have in your stack exactly?