{"id":23986,"library":"llist","title":"llist","description":"Provides implementations of linked list data structures for Python, including singly linked list, doubly linked list, and doubly linked list with a sentinel node. Version 0.7.1 is the latest release; the library is stable but infrequently updated.","status":"active","version":"0.7.1","language":"python","source_language":"en","source_url":"https://github.com/ajakubek/python-llist","tags":["linked-list","data-structures","sllist","dllist"],"install":[{"cmd":"pip install llist","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"sllist","correct":"from llist import sllist"},{"note":"","wrong":"","symbol":"dllist","correct":"from llist import dllist"}],"quickstart":{"code":"from llist import sllist, dllist\n\n# Singly linked list\ns = sllist([1, 2, 3, 4, 5])\nprint('sllist:', list(s))\ns.append(6)\nprint('After append:', list(s))\n\n# Doubly linked list\nd = dllist([10, 20, 30])\nprint('dllist:', list(d))\nd.appendright(40)\nprint('After appendright:', list(d))","lang":"python","description":"Create singly and doubly linked lists, append elements, and convert to list."},"warnings":[{"fix":"Use `len(list(s))` or `s.size()` to get the length.","message":"The `sllist` and `dllist` classes do not support `len()` in Python 3. Use `sllist.size()` method instead.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `list(d)[0]` or iterate over the list.","message":"The `dllist` does not support indexing (e.g., `d[0]`) because it is not a sequence. Access elements via iteration or conversion to list.","severity":"gotcha","affected_versions":"all"},{"fix":"Convert to list first: `list(mylist)[start:stop]`.","message":"In version 0.7, the `sllist` and `dllist` no longer support direct slicing like Python built-in lists. Attempting to slice will raise a TypeError.","severity":"breaking","affected_versions":"0.7+"},{"fix":"Remember `llist.dllist` is a linked list, not the `collections.deque`.","message":"The `llist` module uses the name `dllist` which conflicts in some IDEs with the concept of a doubly linked list. No actual library conflict, but users sometimes confuse with `deque` from collections.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `from llist import dllist` or `import llist; d = llist.dllist()`.","cause":"Import path is incorrect; some users try `import llist` and then use `llist.dllist` but it may not be imported automatically.","error":"AttributeError: module 'llist' has no attribute 'dllist'"},{"fix":"Convert to list first: `list(s)[index]`.","cause":"Trying to index into a singly linked list like a Python list.","error":"TypeError: 'sllist' object is not subscriptable"},{"fix":"Use `s.size()` or `len(list(s))`.","cause":"Calling `len(s)` on an sllist object; len() is not defined.","error":"AttributeError: 'sllist' object has no attribute 'len'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}