BaseList¶ class praw.models.list.base.BaseList(reddit, _data)¶ An abstract class to coerce a list into a PRAWBase. Parameters: reddit (praw.Reddit) _data (dict[str, Any]) __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: reddit (Reddit) – An instance of Reddit. _data (dict[str, Any]) 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: data (dict[str, Any]) – The structured data. reddit (Reddit) – An instance of Reddit. Return type: PRAWBase