def __eq__(self, val):
if not isinstance(val, range_t):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>return self.__has == val.toset()<EOL>
``=`` operator support.

Parameters
----------
val : range_t
    ``range_t`` object for comparison.

Returns
-------
bool
    ``True`` if set of subranges in this object is identical as in `val` object.