Skip to content

Commit 3b8c7bb

Browse files
committed
renew project
1 parent 4d43c4a commit 3b8c7bb

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

sortingx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
from .sorting import bubble, insert, shell, heap, quick, merge
1818
from ._typing import *
1919

20-
__version__ = '1.0.2'
20+
__version__ = '1.0.0-py'
2121

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

sortingx/sorting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
__all__ = ['bubble', 'insert', 'shell', 'heap', 'quick', 'merge']
1616

17-
from utils import core, generate
17+
from ._utils import core, generate
1818
from ._typing import Iterable, Callable
1919

2020
def bubble(array: Iterable, key: Callable=None, reverse: bool=False) -> None:

test_key.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from keyword_sorting import bubble_sort, heap_sort, insertion_sort, shell_sort, quick_sort, merge_sort
2+
import sortingx as six
23

34
'''
45
We choose from the following keyword lambda functions:
@@ -16,7 +17,7 @@
1617
'''
1718

1819
data = [('Alex', 100, 90, 98, 95), ('Jack', 97, 88, 98, 92), ('Peter', 92, 95, 92, 96), ('Li', 97, 89, 98, 92)]
19-
quick_sort(data, 0, 3, key=lambda x: (x[1], x[2]), reverse=True)
20+
six.bubble(data, key=lambda x: (x[1], x[2]), reverse=True)
2021
print(data)
2122

2223
'''

0 commit comments

Comments
 (0)