We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c36f5d commit d903db3Copy full SHA for d903db3
CHANGELOG.md
@@ -86,6 +86,7 @@ signature has changed (now it has two optional boolean arguments: `ignore_spaces
86
(it now makes use of the new extracted method `asciify()`)
87
- `is_uuid()` has now a second parameter `allow_hex` that if true, considers as valid UUID hex value
88
- `uuid()` has now an optional boolean parameter `as_hex` which allows to return UUID string as hex representation
89
+- `shuffle()` is now faster
90
91
---
92
string_utils/manipulation.py
@@ -370,7 +370,7 @@ def shuffle(input_string: str) -> str:
370
raise InvalidInputError(input_string)
371
372
# turn the string into a list of chars
373
- chars = sorted(input_string)
+ chars = list(input_string)
374
375
# shuffle the list
376
random.shuffle(chars)
0 commit comments