How would I discover an operator's name? Simply stated, I'm looking for the python operator for what the P key does to selected objects in edit mode.

So I'm looping through edges like so:

import bpy

obj = bpy.context.active_object

for e in obj.data.edges:
    print(dir(e))


I'm attempting to find the e.magically_separate_from_object :D but cannot find it.

Usually I'd find out how to do it through the window interface,but I can't find the window interface for P either.
If you right click on nearly any button, tool, or menu item in blender there will be a link to the blender python API for that button.

Link to blender python API for bpy.ops.mesh.separate