Skip to content

Commit a994e67

Browse files
committed
renew project
1 parent 1093d77 commit a994e67

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ explain:
8989
- sortingx-1.1.0 is the first version aligned with the `list.sort()` usage method.
9090
- sortingx-1.1.1 is the first stable version accelerated with typing_extensions.
9191
- sortingx-1.1.2 is the first stable version that has a return value and extends the iterable data types.
92-
- sortingx-1.1.3 is the stable version that complete the typing of local variables and align with `sorted()` usage method.
92+
- sortingx-1.1.3 is the version that complete the typing of local variables and align with `sorted()` usage method.
93+
- sortingx-1.2.0 is the end version of sorting series, which optimize the kernel of generate.
9394

9495
## LICENSE
9596

README_release.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
|v1.1.1|`pip install sortingx==1.1.1`|Complete Typing and Accelerate||
99
|v1.1.2|`pip install sortingx==1.1.2`|Support More Iterative Data Types||
1010
|v1.1.3|`pip install sortingx==1.1.3`|Typing Check with More Local Variables||
11+
|v1.2.0|`pip install sortingx==1.2.0`|Optimize Generate Function's Kernel||
1112

1213
</div>

sortingx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616

1717
from .sorting import bubble, insert, shell, heap, quick, merge
1818

19-
__version__ = '1.1.3'
19+
__version__ = '1.2.0'
2020

2121
assert sys.version_info >= (3, 7, 0)

sortingx/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# Data Generated by Mapping.
1818
def generate(__iterable: List[_T], key: Optional[Callable[[_T], SupportsRichComparison]]=None) -> List[_T]:
1919
compare: List[_T] = list(map(key, __iterable)) if key != None else __iterable
20-
compare: List[_T] = ([[value] for value in compare] if (compare and not isinstance(compare[0], Iterable)) else compare) if key != None else __iterable
20+
compare: List[_T] = ([[value] for value in compare] if (compare and not isinstance(compare[0], (list, tuple))) else compare) if key != None else __iterable
2121
return compare
2222

2323
# Redefined Comparison Rules: A High-Speed State Selection Function.

sortingx/sorting.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def shell(__iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsRichCom
8686
gap: int = int(gap / 3)
8787
return __iterable
8888

89-
9089
def heap(__iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsRichComparison]]=None, reverse: bool=False) -> List[_T]:
9190
'''
9291
:param __iterable: iterable data.

0 commit comments

Comments
 (0)