def get_mode(self):
return self._mode<EOL>
Return the current mode. To check whether a specific mode is activated use
the bitwise 'and' operator `&`. Example:

.. code:: python 

    if mode & self.STRICT_MIN_LENGTH != 0:
       do_something()