Results of 1 - 10 of about 363 for case (0.055 sec.)
- 変更履歴 — Python 3.14.8 ドキュメント 11023
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...ies the callback is no longer referenced by the application. Servers that keep their sni_callback context alive (the usual case when it wraps the listening socket or is stored on the server object) were not affected. This addresses CVE 2026-19445 . g...state creation fails before the thread state is fully initialized. gh-155526 : Fix spurious OverflowError for abs(nanj) in case errno was previously set to ERANGE by some library call. Patch by Sergey B Kirpichev. gh-129752 : Don't update adaptive co...sly raised ValueError . gh-156444 : Fix matching of a negated character set in a bytes pattern compiled with both re.IGNORECASE and re.LOCALE . The case closure is now applied to the members of the set, so that [^bc] no longer matches b'B' . gh-15640... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- What's New In Python 3.10 — Python 3.14.8 ドキュメント 10517
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.10 テーマ 自動 ライト ダーク | What's New In Python 3.10 ¶ 編集者 : Pablo Galindo Salgado この記事では Python 3.9 と
...d instead. PEP 634: 構造的パターンマッチ ¶ Structural pattern matching has been added in the form of a match statement and case statements of patterns with associated actions. Patterns consist of sequences, mappings, primitive data types as well as c...c actions based on different forms of data. 構文と演算 ¶ パターンマッチングの一般的な構文は次のとおりです: match subject : case < pattern_1 > : < action_1 > case < pattern_2 > : < action_2 > case < pattern_3 > : < action_3 > case _ : < action_wildcar...d > match 文は式を取り、その値を 1 つ以上の case ブロックで指定されたパターンと順に比較します。具体的には、パターンマッチングは次の手順で動作します: 型と構造を持つデータ(... - https://man.mtool.work/python/3.14/whatsnew/3.10.html
- What's New In Python 3.10 — Python 3.14.8 ドキュメント 10517
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.10 テーマ 自動 ライト ダーク | What's New In Python 3.10 ¶ 編集者 : Pablo Galindo Salgado この記事では Python 3.9 と
...d instead. PEP 634: 構造的パターンマッチ ¶ Structural pattern matching has been added in the form of a match statement and case statements of patterns with associated actions. Patterns consist of sequences, mappings, primitive data types as well as c...c actions based on different forms of data. 構文と演算 ¶ パターンマッチングの一般的な構文は次のとおりです: match subject : case < pattern_1 > : < action_1 > case < pattern_2 > : < action_2 > case < pattern_3 > : < action_3 > case _ : < action_wildcar...d > match 文は式を取り、その値を 1 つ以上の case ブロックで指定されたパターンと順に比較します。具体的には、パターンマッチングは次の手順で動作します: 型と構造を持つデータ(... - https://man.mtool.work/python/3.14/whatsnew/3.10.html
- 4. その他の制御フローツール — Python 3.14.8 ドキュメント 8433
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 4. その他の制御フローツール テーマ 自動 ライト ダーク | 4. その他の制御フローツール ¶ 前章で紹介した while 文の他にも、 Python にはいくつ
...を短くしたもので、過剰なインデントを避けるのに役立ちます。一連の if ... elif ... elif ... は、他の言語における switch 文や case 文の代用となります。 いくつかの定数と同じ値かを比較する場合や、特定の型や属性かを確認する場合には、 match 文が便利です。詳...れています。 Ellipsis オブジェクト を参照してください。 4.7. match 文 ¶ match 文は1つの式を指定し、その値と次に続く1つ以上のcaseブロックに指定されたパターンを比較します。この機能はCやJava、JavaScript(や他の多数の言語)のswitch文と表面的には似ていますが、...ーンのみが実行され、コンポーネント(シーケンスの要素やオブジェクトの属性)から値を取り出して変数に代入することもできます。どのcaseにもマッチしない場合はどの分岐も実行されません。 最も単純な形式は、対象の値に対して1つ以上のリテラルです: def http_error ( s... - https://man.mtool.work/python/3.14/tutorial/controlflow.html
- 4. その他の制御フローツール — Python 3.14.8 ドキュメント 8433
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 4. その他の制御フローツール テーマ 自動 ライト ダーク | 4. その他の制御フローツール ¶ 前章で紹介した while 文の他にも、 Python にはいくつ
...を短くしたもので、過剰なインデントを避けるのに役立ちます。一連の if ... elif ... elif ... は、他の言語における switch 文や case 文の代用となります。 いくつかの定数と同じ値かを比較する場合や、特定の型や属性かを確認する場合には、 match 文が便利です。詳...れています。 Ellipsis オブジェクト を参照してください。 4.7. match 文 ¶ match 文は1つの式を指定し、その値と次に続く1つ以上のcaseブロックに指定されたパターンを比較します。この機能はCやJava、JavaScript(や他の多数の言語)のswitch文と表面的には似ていますが、...ーンのみが実行され、コンポーネント(シーケンスの要素やオブジェクトの属性)から値を取り出して変数に代入することもできます。どのcaseにもマッチしない場合はどの分岐も実行されません。 最も単純な形式は、対象の値に対して1つ以上のリテラルです: def http_error ( s... - https://man.mtool.work/python/3.14/tutorial/controlflow.html
- 8. 複合文 (compound statement) — Python 3.14.8 ドキュメント 8362
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 8. 複合文 (compound statement) テーマ 自動 ライト ダーク | 8. 複合文 (compound statement) ¶ 複合文には、他の文 (のグループ) が入ります;
...try statement can have either except or except* clauses, but not both. The exception type for matching is mandatory in the case of except* , so except*: is a syntax error. The type is interpreted as in the case of except , but matching is performed o...sion 3.10. match 文はパターンマッチングを行う目的で使われます。 構文: match_stmt : 'match' subject_expr ":" NEWLINE INDENT case_block + DEDENT subject_expr : flexible_expression "," [ flexible_expression_list [ ',' ]] | assignment_expression case_blo...ck : 'case' patterns [ guard ] ":" suite 注釈 このセクションでは、一重引用符で囲まれているものは ソフトキーワード を表します。 パター... - https://man.mtool.work/python/3.14/reference/compound_stmts.html
- 8. 複合文 (compound statement) — Python 3.14.8 ドキュメント 8362
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 8. 複合文 (compound statement) テーマ 自動 ライト ダーク | 8. 複合文 (compound statement) ¶ 複合文には、他の文 (のグループ) が入ります;
...try statement can have either except or except* clauses, but not both. The exception type for matching is mandatory in the case of except* , so except*: is a syntax error. The type is interpreted as in the case of except , but matching is performed o...sion 3.10. match 文はパターンマッチングを行う目的で使われます。 構文: match_stmt : 'match' subject_expr ":" NEWLINE INDENT case_block + DEDENT subject_expr : flexible_expression "," [ flexible_expression_list [ ',' ]] | assignment_expression case_blo...ck : 'case' patterns [ guard ] ":" suite 注釈 このセクションでは、一重引用符で囲まれているものは ソフトキーワード を表します。 パター... - https://man.mtool.work/python/3.14/reference/compound_stmts.html
- ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 7786
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as
...ing ? type_comment ) | AsyncWith ( withitem * items , stmt * body , string ? type_comment ) | Match ( expr subject , match_case * cases ) | Raise ( expr ? exc , expr ? cause ) | Try ( stmt * body , excepthandler * handlers , stmt * orelse , stmt * fi..., int col_offset , int ? end_lineno , int ? end_col_offset ) withitem = ( expr context_expr , expr ? optional_vars ) match_case = ( pattern pattern , expr ? guard , stmt * body ) pattern = MatchValue ( expr value ) | MatchSingleton ( constant value )...=Load()), args=[ Name(id='b', ctx=Load()), Name(id='d', ctx=Load())]))])]) Pattern matching ¶ class ast. Match ( subject , cases ) ¶ A match statement. subject holds the subject of the match (the object that is being matched against the cases) and ca... - https://man.mtool.work/python/3.14/library/ast.html
- ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 7786
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as
...ing ? type_comment ) | AsyncWith ( withitem * items , stmt * body , string ? type_comment ) | Match ( expr subject , match_case * cases ) | Raise ( expr ? exc , expr ? cause ) | Try ( stmt * body , excepthandler * handlers , stmt * orelse , stmt * fi..., int col_offset , int ? end_lineno , int ? end_col_offset ) withitem = ( expr context_expr , expr ? optional_vars ) match_case = ( pattern pattern , expr ? guard , stmt * body ) pattern = MatchValue ( expr value ) | MatchSingleton ( constant value )...=Load()), args=[ Name(id='b', ctx=Load()), Name(id='d', ctx=Load())]))])]) Pattern matching ¶ class ast. Match ( subject , cases ) ¶ A match statement. subject holds the subject of the match (the object that is being matched against the cases) and ca... - https://man.mtool.work/python/3.14/library/ast.html
- The Python 2.3 Method Resolution Order — Python 3.14.8 ドキュメント 6996
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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
...lassic classes; and even if in principle there could be breaking of code for Python 2.2 new style classes, in practice the cases in which the C3 resolution order differs from the Python 2.2 method resolution order are so rare that no real breaking of...terature, the idiom "the MRO of C" is also used as a synonymous for the linearization of the class C. For instance, in the case of single inheritance hierarchy, if C is a subclass of C1, and C1 is a subclass of C2, then the linearization of C is simp...ducing very subtle bugs. Examples where this happens will be shown later. Not all classes admit a linearization. There are cases, in complicated hierarchies, where it is not possible to derive a class such that its linearization respects all the desi... - https://man.mtool.work/python/3.14/howto/mro.html