(self)
return self.__read_preference
Read only access to the read preference of this instance.

        .. versionchanged:: 3.0
          The :attr:`read_preference` attribute is now read only.
Read only access to the read preference of this instance.
Read only access to the read preference of this instance .
def read_preference(self):
        """Read only access to the read preference of this instance.

        .. versionchanged:: 3.0
          The :attr:`read_preference` attribute is now read only.
        """
        return self.__read_preference
def read_preference ( self ) : return self . __read_preference