Some example for bisect_edges. please!

I want to insert a vert into a edge and found this:

It’s meaning should convert vert-co to percent? Maybe.

I’ve been tried:
myedge = bm.select_history[-1] #bmesh.types.BMEdge
bmesh.ops.bisect_edges(bmesh, edges=[myedge], cuts=1, edge_percents={myedge: 0.8})

>>> TypeError: bmesh operators expect a single BMesh positional argument, all other args must be keywords

Some example bisect_edges. please!

The first (and only positional) parameter is supposed to be bm, not bmesh.

But edge_percents isn’t supported from what I can tell:

>>> bmesh.ops.bisect_edges(bm, edges=[edge], cuts=1, edge_percents={0: 0.8})
Traceback (most recent call last):
File “<blender_console>”, line 1, in <module>
TypeError: bisect_edges: keyword “edge_percents” invalid key in dict, expected a (BMVert/BMEdge/BMFace) not *.200s

>>> bmesh.ops.bisect_edges(bm, edges=[edge], cuts=1, edge_percents={edge: 0.8})
Traceback (most recent call last):
File “<blender_console>”, line 1, in <module>
NotImplementedError: bisect_edges: keyword “edge_percents” type 10 not working yet!

Since you seem to want to bisect a single edge, you can simply use

bmesh.utils.edge_split(edge, edge.verts[0], 0.8) # or edge.verts[1], depends on the desired result

Thanks very much!

Best wishes!