def append(self, element: Union[int, Expression]) -> None:
        """
        :param element: element to be appended to the list
        :function: appends the element to list if the size is less than STACK_LIMIT, else throws an error
        """
        if super(MachineStack, self).__len__() >= self.STACK_LIMIT:
            raise StackOverflowException(
                "Reached the EVM stack limit of {}, you can't append more "
                "elements".format(self.STACK_LIMIT)
            )
        super(MachineStack, self).append(element)
def append ( self , element : Union [ int , Expression ] ) -> None : if super ( MachineStack , self ) . __len__ ( ) >= self . STACK_LIMIT : raise StackOverflowException ( "Reached the EVM stack limit of {}, you can't append more " "elements" . format ( self . STACK_LIMIT ) ) super ( MachineStack , self ) . append ( element )
:param element: element to be appended to the list
        :function: appends the element to list if the size is less than STACK_LIMIT, else throws an error