Stack.py
def push(self, content):
        """Adds the content to the stack if its not full and lowers the stack pointer

        Raises:
            Full: if the stack is full

        Args:
            content (Any): the content to append to the stack
        """
        if self.stack_pointer == None:
            node = Node(content, 0)
            self.stack_pointer = node
            return

        if self.stack_pointer.get_index() + 1 == self.size:
            raise Full("Error while trying to add the element: the stack reached its bottom!")

        node = Node(content, self.stack_pointer.get_index() + 1, parent=self.stack_pointer)
        self.stack_pointer.set_child(node)
        self.stack_pointer = node
Adds the content to the stack if its not full and lowers the stack pointer

        Raises:
            Full: if the stack is full

        Args:
            content (Any): the content to append to the stack
        
Adds the content to the stack if its not full and lowers the stack pointer
Adds the content to the stack if its not full and lowers the stack pointer
def push(self, content):
        if self.stack_pointer == None:
            node = Node(content, 0)
            self.stack_pointer = node
            return
        if self.stack_pointer.get_index() + 1 == self.size:
            raise Full("Error while trying to add the element: the stack reached its bottom!")
        node = Node(content, self.stack_pointer.get_index() + 1, parent=self.stack_pointer)
        self.stack_pointer.set_child(node)
        self.stack_pointer = node
def push ( self , content ) : if self . stack_pointer == None : node = Node ( content , 0 ) self . stack_pointer = node return if self . stack_pointer . get_index ( ) + 1 == self . size : raise Full ( "Error while trying to add the element: the stack reached its bottom!" ) node = Node ( content , self . stack_pointer . get_index ( ) + 1 , parent = self . stack_pointer ) self . stack_pointer . set_child ( node ) self . stack_pointer = node
Adds the content to the stack if its not full and lowers the stack pointer
Adds the content to the stack if its not full and lowers the stack pointer
"""Adds the content to the stack if its not full and lowers the stack pointer

        Raises:
            Full: if the stack is full

        Args:
            content (Any): the content to append to the stack
        """
if the stack is full
if the stack is full
Full
self
content
the content to append to the stack
the content to append to the stack