HOw the extract edge index of a single face?

If I have


bpy.data.objects[someobject].data.faces[face_index]

how can I extract the indices of all edges that make up the face?
I can’t use

ob.data.edges[oneedge].vertices[1]

because for semplicity I prefer that the user (me) uses face selection.
Thanks
Paolo

Will the face that you want to be operated on be selected? If so, you could just loop through all the edges and get the indices of the ones that are selected(because if a face is selected, it’s edges are too). Kind of a round-about way of doing it but it would work.

no direct way to pass from face to edge? I got to think if there’s another way…
thanks

it won’t give you the edges index but you have the verts for each edges

and there is not necessarely a list of edges either!

if you make a primitive with verts and face i mean there is not an edge list as i know of !