it’s called polygons now, not faces. make sure the object is not in edit mode, or your selection won’t happen.
bpy.data.meshes['Cube'].polygons[0].select = True
# or, currently selected object, in object mode again
bpy.context.object.data.polygons[0].select = True
when you then check in edit mode, the changes selection will show up.
yes, I can manage the flag state with either select_set or .select, I ve seen them being changed over the terminal console.
But it doesn’t get updated on the scene somehow. .select or select_set works only with the python console, but not if it is written inside a script. Only the state of the flag is changed.
Or do I have to do ob.data.update() every time I change the state?