Picking with Python

Is it pssible to pick (highlight) vertices or (preferably) Knots in a surface with python?

It appears that python cannot inteact with editmode (select/deslect verticies) at the current moment.

Thats a buzzkill…
any thoughts on why that might be or how to go about overcoming it?

Thanks for getting back to me on it z3r0 d.

apparently python can interact with the selected FACES in face select mode.

I think the rustyknife script does this

(maybe the user can hit tab? to enter edit mode from there, or have gone from face select mode, then into edit mode, then exit editmode whith the faces you wish to work on selected, then (we are still in face select mode) run your script …?)

you can get the selected faces, but not change what faces are selected.