:right-sidebar: True List =================================================================== .. currentmodule:: gi.repository.GLib .. class:: List(*args, **kwargs) :no-contents-entry: The ``GList`` struct is used for each element in a doubly-linked list. Methods ------- .. rst-class:: interim-class .. class:: List :no-index: .. classmethod:: pop_allocator() -> None .. deprecated:: 2.10 Please do not use it in newly written code .. classmethod:: push_allocator(allocator: ~gi.repository.GLib.Allocator) -> None .. deprecated:: 2.10 Please do not use it in newly written code :param allocator: Fields ------ .. rst-class:: interim-class .. class:: List :no-index: .. attribute:: data Holds the element's data, which can be a pointer to any kind of data, or any integer value using the `Type Conversion Macros `__ .. attribute:: next Contains the link to the next element in the list .. attribute:: prev Contains the link to the previous element in the list