I want to store selection mode, then switch to other mode, bevel (or other operation), then restore first selection mode. Thanks!
will get your current edit selection mode. It returns which selection mode is active as True. For example:
(False, True, False)
meaning Vert mode False, Edge mode True, Face mode False
You can also request the state of a single mode using its number (starting at 0):
returns (in my case):
because I am in Edge Selection Mode.