src.pydasa.structs.tools.memory =============================== .. py:module:: src.pydasa.structs.tools.memory .. autoapi-nested-parse:: Module memory.py =========================================== Module with utility functions for handling memory allocation in the Data Structures of *PyDASA*. *IMPORTANT:* based on the implementations proposed by the following authors/books: #. Algorithms, 4th Edition, Robert Sedgewick and Kevin Wayne. #. Data Structure and Algorithms in Python, M.T. Goodrich, R. Tamassia, M.H. Goldwasser. Functions --------- .. autoapisummary:: src.pydasa.structs.tools.memory.mem_slot Module Contents --------------- .. py:function:: mem_slot(cls) *mem_slot()* is a decorator that converts a class into a dataclass with slots. :param cls: class to convert into a dataclass with slots. :type cls: Type[T] :raises TypeError: if the cls is not a class type. :raises RuntimeError: if the Python version is less than 3.10. :returns: A dataclass with slots. :rtype: Type[T]