def __gt__(self, other):
        """
        Implements C{>}.  Order is defined by instantiation order.

        @param other: An object.

        @return: C{NotImplemented} if C{other} is not a constant belonging to
            the same container as this constant, C{True} if this constant is
            defined after C{other}, otherwise C{False}.
        """
        if (
            not isinstance(other, self.__class__) or
            not self._container == other._container
        ):
            return NotImplemented
        return self._index > other._index

        Implements C{>}.  Order is defined by instantiation order.

        @param other: An object.

        @return: C{NotImplemented} if C{other} is not a constant belonging to
            the same container as this constant, C{True} if this constant is
            defined after C{other}, otherwise C{False}.
        
stackoverflow/venv/lib/python3.6/site-packages/constantly/_constants.py