src/PyDS/Stack.py
def __resize(self, capacity: int) -> None:
        """Resizes stack when list reaches capacity

        :param capacity: The new capacity
        :type capacity: int
        """
        self.__capacity = capacity
        list_ = self.__capacity * [None]
        for index in range(self.__size):
            list_[index] = self.__list[index]
        self.__list = list_
Resizes stack when list reaches capacity

        :param capacity: The new capacity
        :type capacity: int
        
Resizes stack when list reaches capacity
Resizes stack when list reaches capacity
def __resize(self, capacity: int) -> None:
        self.__capacity = capacity
        list_ = self.__capacity * [None]
        for index in range(self.__size):
            list_[index] = self.__list[index]
        self.__list = list_
def __resize ( self , capacity : int ) -> None : self . __capacity = capacity list_ = self . __capacity * [ None ] for index in range ( self . __size ) : list_ [ index ] = self . __list [ index ] self . __list = list_
Resizes stack when list reaches capacity
Resizes stack when list reaches capacity
"""Resizes stack when list reaches capacity

        :param capacity: The new capacity
        :type capacity: int
        """
self
capacity
int
The new capacity
The new capacity