List#

class List(*args, **kwargs)#

The GList struct is used for each element in a doubly-linked list.

Methods#

class List
classmethod pop_allocator() None#

Deprecated since version 2.10: Please do not use it in newly written code

classmethod push_allocator(allocator: Allocator) None#

Deprecated since version 2.10: Please do not use it in newly written code

Parameters:

allocator

Fields#

class List
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

next#

Contains the link to the next element in the list

prev#

Contains the link to the previous element in the list