Results of 1 - 10 of about 31 for sorting (0.042 sec.)
- ソートのテクニック — Python 3.14.8 ドキュメント 13669
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ
...) # locale-aware sort order Strategies For Unorderable Types and Values ¶ A number of type and value issues can arise when sorting. Here are some strategies that can help: Convert non-comparable input types to strings prior to sorting: >>> data = [ 'twe...10', '11', 'twelve'] This is needed because most cross-type comparisons raise a TypeError . Remove special values prior to sorting: >>> from math import isnan >>> from itertools import filterfalse >>> data = [ 3.3 , float ( 'nan' ), 1.1 , 2.2 ] >>> sort....2, 3.3] This is needed because None is not comparable to other types. Convert mapping types into sorted item lists before sorting: >>> data = [{ 'a' : 1 }, { 'b' : 2 }] >>> sorted ( data , key = lambda d : sorted ( d . items ())) [{'a': 1}, {'b': 2}] T... - https://man.mtool.work/python/3.14/howto/sorting.html
- ソートのテクニック — Python 3.14.8 ドキュメント 12618
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ
...) # locale-aware sort order Strategies For Unorderable Types and Values ¶ A number of type and value issues can arise when sorting. Here are some strategies that can help: Convert non-comparable input types to strings prior to sorting: >>> data = [ 'twe...10', '11', 'twelve'] This is needed because most cross-type comparisons raise a TypeError . Remove special values prior to sorting: >>> from math import isnan >>> from itertools import filterfalse >>> data = [ 3.3 , float ( 'nan' ), 1.1 , 2.2 ] >>> sort....2, 3.3] This is needed because None is not comparable to other types. Convert mapping types into sorted item lists before sorting: >>> data = [{ 'a' : 1 }, { 'b' : 2 }] >>> sorted ( data , key = lambda d : sorted ( d . items ())) [{'a': 1}, {'b': 2}] T... - https://man.mtool.work/python/3.14/howto/sorting.html
- The Python Profilers — Python 3.14.8 ドキュメント 10855
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » The Python Profilers テーマ 自動 ライト ダーク | The Python Profilers ¶ Source code: Lib/profile.py and L
...) ¶ 現在のプロファイルに基づいて Stats オブジェクトを作成し、結果を標準出力に出力します。 The sort parameter specifies the sorting order of the displayed statistics. It accepts a single key or a tuple of keys to enable multi-level sorting, as in Stats.s...name on the profile.Profile and cProfile.Profile classes. sort_stats ( * keys ) ¶ This method modifies the Stats object by sorting it according to the supplied criteria. The argument can be either a string or a SortKey enum identifying the basis of a so...rtKey.FILE) will sort all the entries according to their function name, and resolve all ties (identical function names) by sorting by file name. For the string argument, abbreviations can be used for any key names, as long as the abbreviation is unambig... - https://man.mtool.work/python/3.14/library/profile.html
- The Python Profilers — Python 3.14.8 ドキュメント 10855
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » The Python Profilers テーマ 自動 ライト ダーク | The Python Profilers ¶ Source code: Lib/profile.py and L
...) ¶ 現在のプロファイルに基づいて Stats オブジェクトを作成し、結果を標準出力に出力します。 The sort parameter specifies the sorting order of the displayed statistics. It accepts a single key or a tuple of keys to enable multi-level sorting, as in Stats.s...name on the profile.Profile and cProfile.Profile classes. sort_stats ( * keys ) ¶ This method modifies the Stats object by sorting it according to the supplied criteria. The argument can be either a string or a SortKey enum identifying the basis of a so...rtKey.FILE) will sort all the entries according to their function name, and resolve all ties (identical function names) by sorting by file name. For the string argument, abbreviations can be used for any key names, as long as the abbreviation is unambig... - https://man.mtool.work/python/3.14/library/profile.html
- 変更履歴 — Python 3.14.8 ドキュメント 8735
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...e calls were not compatible. Patch by Bénédikt Tran. gh-134151 : email : Fix TypeError in email.utils.decode_params() when sorting RFC 2231 continuations that contain an unnumbered section. gh-134210 : curses.window.getch() now correctly handles signals...informative error is raised. gh-130914 : Allow graphlib.TopologicalSorter.prepare() to be called more than once as long as sorting has not started. Patch by Daniel Pope. gh-131236 : Allow to generate multiple UUIDs at once via python -m uuid --count . g...plies. gh-124761 : Add SO_REUSEPORT_LB constant to socket for FreeBSD. gh-121720 : enum.EnumDict can now be used without resorting to private API. gh-123424 : Add zipfile.ZipInfo._for_archive() setting default properties on ZipInfo objects. Patch by Bén... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- Thread Safety Guarantees — Python 3.14.8 ドキュメント 8024
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » Thread Safety Guarantees テーマ 自動 ライト ダーク | Thread Safety Guarantees ¶ This page documents thread-safety guarantees for bui
...observe elements being removed. The sort() method is not atomic . Other threads cannot observe intermediate states during sorting, but the list appears empty for the duration of the sort. The following operations may allow lock-free operations to obser... - https://man.mtool.work/python/3.14/builtins/threadsafety.html
- Time complexity of operations on built-in types — Python 3.14.8 ドキュメント 8024
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » Time complexity of operations on built-in types テーマ 自動 ライト ダーク | Time complexity of operations on built-in types ¶ This p
...us the cost of iterating over t , which may be expensive for an arbitrary iterable. [ 4 ] This is the worst case scenario. Sorting is adaptive and input that is already sorted or reverse-sorted takes only O ( n ) comparisons. See Objects/listsort.txt fo... - https://man.mtool.work/python/3.14/builtins/time-complexity.html
- Thread Safety Guarantees — Python 3.14.8 ドキュメント 8024
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » Thread Safety Guarantees テーマ 自動 ライト ダーク | Thread Safety Guarantees ¶ This page documents thread-safety guarantees for bui
...observe elements being removed. The sort() method is not atomic . Other threads cannot observe intermediate states during sorting, but the list appears empty for the duration of the sort. The following operations may allow lock-free operations to obser... - https://man.mtool.work/python/3.14/builtins/threadsafety.html
- Time complexity of operations on built-in types — Python 3.14.8 ドキュメント 8024
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » Time complexity of operations on built-in types テーマ 自動 ライト ダーク | Time complexity of operations on built-in types ¶ This p
...us the cost of iterating over t , which may be expensive for an arbitrary iterable. [ 4 ] This is the worst case scenario. Sorting is adaptive and input that is already sorted or reverse-sorted takes only O ( n ) comparisons. See Objects/listsort.txt fo... - https://man.mtool.work/python/3.14/builtins/time-complexity.html
- プログラミング FAQ — Python 3.14.8 ドキュメント 7668
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python よくある質問 » プログラミング FAQ テーマ 自動 ライト ダーク | プログラミング FAQ ¶ 一般的な質問 ¶ ブレークポイントやステップ実行ができる、ソースコードレベ
...to an iterator of tuples, sort the resulting list, and then pick out the element you want. >>> list1 = [ "what" , "I'm" , "sorting" , "by" ] >>> list2 = [ "something" , "else" , "to" , "sort" ] >>> pairs = zip ( list1 , list2 ) >>> pairs = sorted ( pair...s ) >>> pairs [("I'm", 'else'), ('by', 'sort'), ('sorting', 'to'), ('what', 'something')] >>> result = [ x [ 1 ] for x in pairs ] >>> result ['else', 'sort', 'to', 'something'] オブ... - https://man.mtool.work/python/3.14/faq/programming.html