Results of 1 - 10 of about 164 for lists (0.052 sec.)
- 4. 実行モデル — Python 3.14.8 ドキュメント 11169
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 4. 実行モデル テーマ 自動 ライト ダーク | 4. 実行モデル ¶ 4.1. プログラムの構造 ¶ Python プログラムはコードブロックから構成されます。 ブ
...tructural pattern matching, in a capture pattern in structural pattern matching import 文. type statements. type parameter lists . The import statement of the form from ... import * binds all names defined in the imported module, except those beginnin...Nested : pass print ( A . Alias . __value__ ) # <type 'A.Nested'> 4.2.3. Annotation scopes ¶ Annotations , type parameter lists and type statements introduce annotation scopes , which behave mostly like function scopes, but with some exceptions discu...below. Annotation scopes are used in the following contexts: Function annotations . Variable annotations . Type parameter lists for generic type aliases . Type parameter lists for generic functions . A generic function's annotations are executed with... - https://man.mtool.work/python/3.14/reference/executionmodel.html
- 変更履歴 — Python 3.14.8 ドキュメント 10451
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...ion file is corrupt. The unparsable file is renamed with a ".bad" suffix, default settings are used instead, and a warning lists the affected files. gh-90304 : Prevent IDLE from failing to start when a font reports a zero width for the '0' character.....ExitStack . gh-149816 : Fix a potential use after free condition in pickle.dumps() in free-threaded mode when serializing lists. gh-149319 : The asyncio REPL now ignores PYTHONSTARTUP and PYTHON_BASIC_REPL when -E or -I is used. Patch by Jonathan Dun...an invalid configuration value. gh-65339 : Saving the IDLE Shell or an Output window now defaults to a .txt extension and lists text files before Python files, since their content is not Python source. gh-80504 : The "In files:" field of IDLE's Find... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- 4. 実行モデル — Python 3.14.8 ドキュメント 9722
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 4. 実行モデル テーマ 自動 ライト ダーク | 4. 実行モデル ¶ 4.1. プログラムの構造 ¶ Python プログラムはコードブロックから構成されます。 ブ
...tructural pattern matching, in a capture pattern in structural pattern matching import 文. type statements. type parameter lists . The import statement of the form from ... import * binds all names defined in the imported module, except those beginnin...Nested : pass print ( A . Alias . __value__ ) # <type 'A.Nested'> 4.2.3. Annotation scopes ¶ Annotations , type parameter lists and type statements introduce annotation scopes , which behave mostly like function scopes, but with some exceptions discu...below. Annotation scopes are used in the following contexts: Function annotations . Variable annotations . Type parameter lists for generic type aliases . Type parameter lists for generic functions . A generic function's annotations are executed with... - https://man.mtool.work/python/3.14/reference/executionmodel.html
- The Python 2.3 Method Resolution Order — Python 3.14.8 ドキュメント 8992
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » The Python 2.3 Method Resolution Order テーマ 自動 ライト ダーク | The Python 2.3 Method Resolution Order ¶ 注釈 This is a historical document, pr
...the list: tail = C2 ... CN . I shall also use the notation: C + ( C1 C2 ... CN ) = C C1 C2 ... CN to denote the sum of the lists [C] + [C1, C2, ... ,CN]. Now I can explain how the MRO works in Python 2.3. Consider a class C in a multiple inheritance h...following prescription: take the head of the first list, i.e L[B1][0]; if this head is not in the tail of any of the other lists, then add it to the linearization of C and remove it from the lists in the merge, otherwise look at the head of the next l...AXYO , BYXO , AB ) = C + A + merge ( XYO , BYXO , B ) = C + A + B + merge ( XYO , YXO ) At this point we cannot merge the lists XYO and YXO, since X is in the tail of YXO whereas Y is in the tail of XYO: therefore there are no good heads and the C3 a... - https://man.mtool.work/python/3.14/howto/mro.html
- 組み込み型 — Python 3.14.8 ドキュメント 8992
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み型 テーマ 自動 ライト ダーク | 組み込み型 ¶ 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主
...素に対する参照カウントが増えます。これは Python に慣れていないプログラマをよく悩ませます。例えば以下のコードを考えます: >>> lists = [[]] * 3 >>> lists [[], [], []] >>> lists [ 0 ] . append ( 3 ) >>> lists [[3], [3], [3]] ここで、 [[]] が空リストを含む...1 要素のリストなので、 [[]] * 3 の 3 要素はこの一つの空リスト (への参照) です。 lists のいずれかの要素を変更すると、その一つのリストが変更されます。別々のリストのリストを作るにはこうします: >>> lists = [[] fo...r i in range ( 3 )] >>> lists [ 0 ] . append ( 3 ) >>> lists [ 1 ] . append ( 5 ) >>> lists [ 2 ] . append ( 7 ) >>> lists [[3], [5], [7]] 別の説明が FA... - https://man.mtool.work/python/3.14/builtins/stdtypes.html
- The Python 2.3 Method Resolution Order — Python 3.14.8 ドキュメント 8992
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » The Python 2.3 Method Resolution Order テーマ 自動 ライト ダーク | The Python 2.3 Method Resolution Order ¶ 注釈 This is a historical document, pr
...the list: tail = C2 ... CN . I shall also use the notation: C + ( C1 C2 ... CN ) = C C1 C2 ... CN to denote the sum of the lists [C] + [C1, C2, ... ,CN]. Now I can explain how the MRO works in Python 2.3. Consider a class C in a multiple inheritance h...following prescription: take the head of the first list, i.e L[B1][0]; if this head is not in the tail of any of the other lists, then add it to the linearization of C and remove it from the lists in the merge, otherwise look at the head of the next l...AXYO , BYXO , AB ) = C + A + merge ( XYO , BYXO , B ) = C + A + B + merge ( XYO , YXO ) At this point we cannot merge the lists XYO and YXO, since X is in the tail of YXO whereas Y is in the tail of XYO: therefore there are no good heads and the C3 a... - https://man.mtool.work/python/3.14/howto/mro.html
- 組み込み型 — Python 3.14.8 ドキュメント 8274
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み型 テーマ 自動 ライト ダーク | 組み込み型 ¶ 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主
...素に対する参照カウントが増えます。これは Python に慣れていないプログラマをよく悩ませます。例えば以下のコードを考えます: >>> lists = [[]] * 3 >>> lists [[], [], []] >>> lists [ 0 ] . append ( 3 ) >>> lists [[3], [3], [3]] ここで、 [[]] が空リストを含む...1 要素のリストなので、 [[]] * 3 の 3 要素はこの一つの空リスト (への参照) です。 lists のいずれかの要素を変更すると、その一つのリストが変更されます。別々のリストのリストを作るにはこうします: >>> lists = [[] fo...r i in range ( 3 )] >>> lists [ 0 ] . append ( 3 ) >>> lists [ 1 ] . append ( 5 ) >>> lists [ 2 ] . append ( 7 ) >>> lists [[3], [5], [7]] 別の説明が FA... - https://man.mtool.work/python/3.14/builtins/stdtypes.html
- heapq --- ヒープキューアルゴリズム — Python 3.14.8 ドキュメント 7545
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » heapq --- ヒープキューアルゴリズム テーマ 自動 ライト ダーク | heapq --- ヒープキューアルゴリズム ¶ ソースコード: Lib/he
...or equal to any of its children. We refer to this condition as the heap invariant. For min-heaps, this implementation uses lists for which heap[k] <= heap[2*k+1] and heap[k] <= heap[2*k+2] for all k for which the compared elements exist. Elements are...ps satisfy the reverse invariant: every parent node has a value greater than any of its children. These are implemented as lists for which maxheap[2*k+1] <= maxheap[k] and maxheap[2*k+2] <= maxheap[k] for all k for which the compared elements exist. T...ps, due to their suitability for in-place sorting. Our implementation favors min-heaps as they better correspond to Python lists . These two aspects make it possible to view the heap as a regular Python list without surprises: heap[0] is the smallest... - https://man.mtool.work/python/3.14/library/heapq.html
- What's New in Python 2.2 — Python 3.14.8 ドキュメント 7545
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.2 テーマ 自動 ライト ダーク | What's New in Python 2.2 ¶ 著者 : A.M. Kuchling はじめに ¶ この文書は 2002 年 10 月 1
...thon types implemented in C. In particular, it's not possible to subclass built-in types, so you can't just subclass, say, lists in order to add a single useful method to them. The UserList module provides a class that supports all of the methods of l...rted by an object. There were some informal conventions, such as defining __members__ and __methods__ attributes that were lists of names, but often the author of an extension type or a class wouldn't bother to define them. You could fall back on insp...p of HTTP and XML. For example, the following snippet retrieves a list of RSS channels from the O'Reilly Network, and then lists the recent headlines for one channel: import xmlrpclib s = xmlrpclib . Server ( 'http://www.oreillynet.com/meerkat/xml-rpc... - https://man.mtool.work/python/3.14/whatsnew/2.2.html
- What's New in Python 2.4 — Python 3.14.8 ドキュメント 7545
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.4 テーマ 自動 ライト ダーク | What's New in Python 2.4 ¶ 著者 : A.M. Kuchling この文書は 2005 年 3 月 30 日にリリー
...split('.', 1) ['www.python', 'org'] Three keyword parameters, cmp , key , and reverse , were added to the sort() method of lists. These parameters make some common usages of sort() simpler. All of these parameters are optional. For the cmp parameter,...guments. Previously they raised a TypeError exception. This makes them more suitable for use with variable length argument lists: >>> def transpose ( array ): ... return zip ( * array ) ... >>> transpose ([( 1 , 2 , 3 ), ( 4 , 5 , 6 )]) [(1, 4), (2, 5...iterkeys() , itervalues() , and iteritems() . (Contributed by Raymond Hettinger.) The machinery for growing and shrinking lists was optimized for speed and for space efficiency. Appending and popping from lists now runs faster due to more efficient c... - https://man.mtool.work/python/3.14/whatsnew/2.4.html