def __eq__(self, other):
<EOL>if isinstance(other, tuple):<EOL><INDENT>other = list(other)<EOL><DEDENT>if other and len(other[<NUM_LIT:0>]) == <NUM_LIT:3>:<EOL><INDENT>return self.entries == other<EOL><DEDENT>return super(Choices, self).__eq__(other)<EOL>
Override to allow comparison with a tuple of choices, not only a list.

        It also allow to compare with default django choices, ie (value, display name), or
        with the format of ``Choices``, ie (constant name, value, display_name).

        Example
        -------

        >>> MY_CHOICES = Choices(('FOO', 1, 'foo'), ('BAR', 2, 'bar'))
        >>> MY_CHOICES == [('FOO', 1, 'foo'), ('BAR', 2, 'bar')]
        True
        >>> MY_CHOICES == (('FOO', 1, 'foo'), ('BAR', 2, 'bar'))
        True
        >>> MY_CHOICES == [(1, 'foo'), (2, 'bar')]
        True
        >>> MY_CHOICES == ((1, 'foo'), (2, 'bar'))
        True