py-doubly-linked-list 0.1.0__cp314-cp314t-win32.whl → 0.1.1__cp314-cp314t-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of py-doubly-linked-list might be problematic. Click here for more details.
- py_doubly_linked_list/__init__.pyi +40 -13
- py_doubly_linked_list/doubly_linked_list.cp314t-win32.pyd +0 -0
- {py_doubly_linked_list-0.1.0.dist-info → py_doubly_linked_list-0.1.1.dist-info}/METADATA +7 -2
- py_doubly_linked_list-0.1.1.dist-info/RECORD +9 -0
- {py_doubly_linked_list-0.1.0.dist-info → py_doubly_linked_list-0.1.1.dist-info}/licenses/README.MD +5 -1
- py_doubly_linked_list-0.1.0.dist-info/RECORD +0 -9
- {py_doubly_linked_list-0.1.0.dist-info → py_doubly_linked_list-0.1.1.dist-info}/WHEEL +0 -0
- {py_doubly_linked_list-0.1.0.dist-info → py_doubly_linked_list-0.1.1.dist-info}/licenses/LICENSE +0 -0
- {py_doubly_linked_list-0.1.0.dist-info → py_doubly_linked_list-0.1.1.dist-info}/top_level.txt +0 -0
|
@@ -1,21 +1,48 @@
|
|
|
1
|
-
from typing import Iterable, Any
|
|
1
|
+
from typing import Iterable, Any, Self
|
|
2
|
+
from collections.abc import Callable
|
|
2
3
|
|
|
3
4
|
class DoublyLinkedList:
|
|
4
5
|
def __init__(self, Iterable: Iterable) -> None: ...
|
|
5
|
-
def append(self, object: Any, forward: bool = True)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
def
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
def
|
|
6
|
+
def append(self, object: Any, forward: bool = True)-> None:
|
|
7
|
+
"""Append object to the end of the list. Set forward to false to append to the start."""
|
|
8
|
+
...
|
|
9
|
+
def clear(self) -> None:
|
|
10
|
+
"""Remove all items from the list."""
|
|
11
|
+
...
|
|
12
|
+
def copy(self) -> DoublyLinkedList:
|
|
13
|
+
"""Return a shallow copy of the list."""
|
|
14
|
+
...
|
|
15
|
+
def count(self, value: Any) -> int:
|
|
16
|
+
"""Return number of occurrences of value in the list."""
|
|
17
|
+
...
|
|
18
|
+
def extend(self, iterable: Iterable, forward: bool = True) -> None:
|
|
19
|
+
"""Extend list by appending elements from the iterable. Set forward to false to extend from the start."""
|
|
20
|
+
...
|
|
21
|
+
def index(self, value: Any, start: int, stop: int) -> int:
|
|
22
|
+
"""Return first index of value.
|
|
23
|
+
Raises ValueError if the value is not present."""
|
|
24
|
+
...
|
|
25
|
+
def insert(self, object: Any, index: int, forward: bool = True) -> None:
|
|
26
|
+
"""Insert object after index. Set forward to false to insert before index."""
|
|
27
|
+
...
|
|
28
|
+
def pop(self, index: int = -1) -> Any:
|
|
29
|
+
"""Remove and return item at index (default last).
|
|
30
|
+
Raises IndexError if list is empty or index is out of range."""
|
|
31
|
+
...
|
|
32
|
+
def remove(self, value: Any) -> None:
|
|
33
|
+
"""Remove first occurence of value.
|
|
34
|
+
Raises ValueError if the value is not present."""
|
|
35
|
+
...
|
|
36
|
+
def reverse(self) -> None:
|
|
37
|
+
"""Reverse the order of the list."""
|
|
38
|
+
...
|
|
39
|
+
def sort(self: DoublyLinkedList, key: Callable, reverse: bool = False) -> None:
|
|
40
|
+
"""In-place sort in ascending order, equal objects are not swapped. Key can be applied to values and the list will be sorted based on the result of applying the key. Reverse will reverse the sort order."""
|
|
41
|
+
...
|
|
15
42
|
def __add__(self, Iterable: Iterable) -> DoublyLinkedList: ...
|
|
16
43
|
def __contains__(self, Any: Any) -> bool: ...
|
|
17
44
|
def __delitem__(self, Any: Any) -> None: ...
|
|
18
45
|
def __getitem__(self, Index: int) -> Any: ...
|
|
19
|
-
def __iadd__(self, Iterable: Iterable) ->
|
|
46
|
+
def __iadd__(self, Iterable: Iterable) -> Self: ...
|
|
20
47
|
def __len__(self) -> int: ...
|
|
21
|
-
def __setitem__(self, Index: int, Object: Any) -> None: ...
|
|
48
|
+
def __setitem__(self, Index: int, Object: Any) -> None: ...
|
|
Binary file
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: py-doubly-linked-list
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: A library adding doubly linked lists to python.
|
|
5
5
|
Author-email: Joshua Morningstar <joshuam18745@gmail.com>
|
|
6
|
+
Maintainer-email: Joshua Morningstar <joshuam18745@gmail.com>
|
|
6
7
|
License-Expression: MIT
|
|
7
8
|
Project-URL: Documentation, https://github.com/JoshuaM176/PyDoublyLinkedList/blob/main/README.MD
|
|
8
9
|
Project-URL: Repository, https://github.com/JoshuaM176/PyDoublyLinkedList
|
|
@@ -78,6 +79,11 @@ Reverse the order of the list.
|
|
|
78
79
|
```Python
|
|
79
80
|
doubly_linked_list.reverse()
|
|
80
81
|
```
|
|
82
|
+
- sort
|
|
83
|
+
In-place sort in ascending order, equal objects are not swapped. Key can be applied to values and the list will be sorted based on the result of applying the key. Reverse will reverse the sort order.
|
|
84
|
+
```Python
|
|
85
|
+
doubly_linked_list.sort(key: Callable = None, reverse: bool = False)
|
|
86
|
+
```
|
|
81
87
|
The DoublyLinkedList also supports:
|
|
82
88
|
- concatenation with other iterables
|
|
83
89
|
- in-place concatenation with other iterables
|
|
@@ -86,7 +92,6 @@ The DoublyLinkedList also supports:
|
|
|
86
92
|
- iterating
|
|
87
93
|
|
|
88
94
|
Things that are not currently supported but might be in the future:
|
|
89
|
-
- sorting
|
|
90
95
|
- assigning slices
|
|
91
96
|
- repeating, i.e list = [1] * 5 create a list with 1 repeated 5 times
|
|
92
97
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
py_doubly_linked_list/__init__.py,sha256=yr4gaBVd4p_p8w2baBhpKltQ_o75jiU5YIELuJ5U5zI,48
|
|
2
|
+
py_doubly_linked_list/__init__.pyi,sha256=a021k23zu0S8D0CybY4HozaX6gahJ2nrQ3QNOtWTZ0s,2345
|
|
3
|
+
py_doubly_linked_list/doubly_linked_list.cp314t-win32.pyd,sha256=F8J18KZ4pMbPvJfgTwGXv3nkbDeTpSVnLuJiAa7Slpw,22528
|
|
4
|
+
py_doubly_linked_list-0.1.1.dist-info/licenses/LICENSE,sha256=adZAxhbQOLyFXxc0-jXSjtCw90eU3I5ecVZ4nXkCbMk,1070
|
|
5
|
+
py_doubly_linked_list-0.1.1.dist-info/licenses/README.MD,sha256=oPpx8zBQqPXp2DeDJzukyXuVWmclHlMC1G6ZGPIi0Bw,3502
|
|
6
|
+
py_doubly_linked_list-0.1.1.dist-info/METADATA,sha256=lvOh14rhjYNL2QTGPfscMpMpjnPIuY64TrBJH8WT-Rs,4750
|
|
7
|
+
py_doubly_linked_list-0.1.1.dist-info/WHEEL,sha256=QZj5mezaA5oNm6LDNW4xgYLgBYwS1DTKsN1RAjQk9mo,98
|
|
8
|
+
py_doubly_linked_list-0.1.1.dist-info/top_level.txt,sha256=8eaqZ5zvqWobW61EaJ1AudwZk29Tp4A6Y_c4FVwxz24,22
|
|
9
|
+
py_doubly_linked_list-0.1.1.dist-info/RECORD,,
|
{py_doubly_linked_list-0.1.0.dist-info → py_doubly_linked_list-0.1.1.dist-info}/licenses/README.MD
RENAMED
|
@@ -52,6 +52,11 @@ Reverse the order of the list.
|
|
|
52
52
|
```Python
|
|
53
53
|
doubly_linked_list.reverse()
|
|
54
54
|
```
|
|
55
|
+
- sort
|
|
56
|
+
In-place sort in ascending order, equal objects are not swapped. Key can be applied to values and the list will be sorted based on the result of applying the key. Reverse will reverse the sort order.
|
|
57
|
+
```Python
|
|
58
|
+
doubly_linked_list.sort(key: Callable = None, reverse: bool = False)
|
|
59
|
+
```
|
|
55
60
|
The DoublyLinkedList also supports:
|
|
56
61
|
- concatenation with other iterables
|
|
57
62
|
- in-place concatenation with other iterables
|
|
@@ -60,7 +65,6 @@ The DoublyLinkedList also supports:
|
|
|
60
65
|
- iterating
|
|
61
66
|
|
|
62
67
|
Things that are not currently supported but might be in the future:
|
|
63
|
-
- sorting
|
|
64
68
|
- assigning slices
|
|
65
69
|
- repeating, i.e list = [1] * 5 create a list with 1 repeated 5 times
|
|
66
70
|
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
py_doubly_linked_list/__init__.py,sha256=yr4gaBVd4p_p8w2baBhpKltQ_o75jiU5YIELuJ5U5zI,48
|
|
2
|
-
py_doubly_linked_list/__init__.pyi,sha256=dmn663JfPTkFYnKfLKjwIIEJnTjuDNFxKl5aHEbv5v0,1045
|
|
3
|
-
py_doubly_linked_list/doubly_linked_list.cp314t-win32.pyd,sha256=DCwfRLI9EZ7IZSW9JGyokNqiUWfyCVgyfYl9YTBmPXA,20480
|
|
4
|
-
py_doubly_linked_list-0.1.0.dist-info/licenses/LICENSE,sha256=adZAxhbQOLyFXxc0-jXSjtCw90eU3I5ecVZ4nXkCbMk,1070
|
|
5
|
-
py_doubly_linked_list-0.1.0.dist-info/licenses/README.MD,sha256=JZUKP_kXyX0Ium83jwV8xD9-dDEuIR5SVg6Fsf66xGQ,3216
|
|
6
|
-
py_doubly_linked_list-0.1.0.dist-info/METADATA,sha256=0e9cd6CDU3twp-38vD_UQVWLLrUGDS1HcSzDpMFAgM0,4401
|
|
7
|
-
py_doubly_linked_list-0.1.0.dist-info/WHEEL,sha256=QZj5mezaA5oNm6LDNW4xgYLgBYwS1DTKsN1RAjQk9mo,98
|
|
8
|
-
py_doubly_linked_list-0.1.0.dist-info/top_level.txt,sha256=8eaqZ5zvqWobW61EaJ1AudwZk29Tp4A6Y_c4FVwxz24,22
|
|
9
|
-
py_doubly_linked_list-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
{py_doubly_linked_list-0.1.0.dist-info → py_doubly_linked_list-0.1.1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{py_doubly_linked_list-0.1.0.dist-info → py_doubly_linked_list-0.1.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|