I have a few vertices selected, obviously in edit mode.
Running bpy.ops.info.select_all(action='INVERT')
in the Python console gives me a RuntimeError: Operator bpy.ops.info.select_all.poll() failed, context is incorrect
though ?
That's exactly the command the GUI shows me when hovering Select > Invert
, and doing it though the GUI works of course.