BaseList

class praw.models.list.base.BaseList(reddit, _data)

An abstract class to coerce a list into a PRAWBase.

Parameters:
__contains__(item)

Test if item exists in the list.

Return type:

bool

Parameters:

item (Any)

__getitem__(index)

Return the item at position index in the list.

Return type:

Any

Parameters:

index (int)

__init__(reddit, _data)

Initialize a BaseList instance.

Parameters:
Return type:

None

__iter__()

Return an iterator to the list.

Return type:

Iterator[Any]

__len__()

Return the number of items in the list.

Return type:

int

classmethod parse(data, reddit)

Return an instance of cls from data.

Parameters:
Return type:

PRAWBase