per page, with , order by , clip by
Results of 1 - 10 of about 33 for statement (0.006 sec.)
10. 完全な文法仕様 14551
10. 完全な文法仕様 以下は Python の完全な文法で、CPython のパーサを生成するための文法から直接得たものです ( Grammar/python.gram を参照)。 ここでは、コード生成とエラー回復に関する詳細を省略しています。 ここで使う記法は、これまでのドキュメント ... backtrack and will immediately # fail with SyntaxError if e cannot be parsed. # # STARTING RULES # ============== file : [ statements ] ENDMARKER interactive : statement_newline eval : expressions NEWLINE * ENDMARKER func_type : '(' [ type_expressions ] ' ... )' '->' expression NEWLINE * ENDMARKER # GENERAL STATEMENTS # ================== statements : statement + statement : | compound_stmt | simple_stmts single_compound_stmt : | compoun ... d_stmt statement_newline : | single_compound_stmt NEWLINE | simple_stmts | NEWLINE | ENDMARKER simple_stmts : | simple_stmt !';' NEWLINE # ...
https://man.mtool.work/python/3.14/reference/grammar.html
Python 言語リファレンス 12048
Python 言語リファレンス このリファレンスマニュアルは、Python 言語の構文と中核となる意味論を説明します。 簡潔な記述ですが、正確で網羅的であることを目指しています。 組み込みのオブジェクト型と関数については Python 組み込み機能リファレンス で説 ... 式 (Conditional Expressions) 6.14. ラムダ (lambda) 6.15. 式のリスト 6.16. 評価順序 6.17. 演算子の優先順位 7. 単純文 (simple statement) 7.1. 式文 (expression statement) 7.2. 代入文 (assignment statement) 7.3. assert 文 7.4. pass 文 7.5. del 文 7.6. return 文 ... ise 文 7.9. break 文 7.10. continue 文 7.11. import 文 7.12. global 文 7.13. nonlocal 文 7.14. type 文 8. 複合文 (compound statement) 8.1. if 文 8.2. while 文 8.3. for 文 8.4. try 文 8.5. with 文 8.6. match 文 8.7. 関数定義 8.8. クラス定義 8.9. コルーチン ...
https://man.mtool.work/python/3.14/reference/
7. 単純文 (simple statement) 10107
7. 単純文 (simple statement) 単純文とは、単一の論理行内に収められる文です。単一の行内には、複数の単純文をセミコロンで区切って入れることができます。単純文の構文は以下の通りです: simple_stmt : expression_stmt | assert_stmt | assignment_stmt | ... t | break_stmt | continue_stmt | import_stmt | future_stmt | global_stmt | nonlocal_stmt | type_stmt 7.1. 式文 (expression statement) 式文は、(主に対話的な使い方では) 値を計算して出力するために使ったり、(通常は) プロシジャ (procedure: 有意な結果を返さない ... す。 ( None になる式文の値は書き出されないので、プロシジャの呼び出しを行っても出力は得られません。) 7.2. 代入文 (assignment statement) 代入文は、名前を値に (再) 束縛したり、変更可能なオブジェクトの属性や要素を変更したりするために使われます: assignment_stmt ... 新する print ( x ) 参考 PEP 3132 - Extended Iterable Unpacking *target の指定機能。 7.2.1. 累算代入文 (augmented assignment statement) 累算代入文は、二項演算と代入文を組み合わせて一つの文にしたものです: augmented_assignment_stmt : augtarget augop ( express ...
https://man.mtool.work/python/3.14/reference/simple_stmts.html
Pythonモジュール索引 9144
Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i ... terpreters Multiple interpreters in the same process configparser Configuration file parser. contextlib Utilities for with-statement contexts. contextvars Context Variables copy Shallow and deep copy operations. copyreg Register pickle support functions. ... of the parse tree. tokenize Lexical scanner for Python source code. tomllib Parse TOML files. trace Trace or track Python statement execution. traceback Print or retrieve a stack traceback. tracemalloc Trace memory allocations. tty Utility functions that ...
https://man.mtool.work/python/3.14/py-modindex.html
__future__ --- future 文の定義 8952
__future__ --- future 文の定義 ソースコード: Lib/__future__.py from __future__ import feature の形式でのインポートは future 文 の定義と呼ばれています。これらは特殊なケースで、 Python の新機能が標準になるリリースの前に Python コンパイラーが ... sion Operator __future__. absolute_import 2.5.0a1 3.0 PEP 328 : Imports: Multi-Line and Absolute/Relative __future__. with_statement 2.5.0a1 2.6 PEP 343 : 「with」文 __future__. print_function 2.6.0a2 3.0 PEP 3105 : Make print a function __future__. unico ... りました。 この機能はいずれ非推奨となり、削除される予定です。 PEP 649 と PEP 749 を参照してください。 参考 future 文 (future statement) コンパイラがどのように future インポートを扱うか。 PEP 236 - Back to the __future__ __future__ 機構の原案 他のマニュアルの ...
https://man.mtool.work/python/3.14/library/__future__.html
pdb --- Python デバッガ 8952
pdb --- Python デバッガ ソースコード: Lib/pdb.py pdb モジュールは Python プログラム用の対話型ソースコードデバッガを定義しています。 条件付きブレークポイントの設定、ソース行単位でのステップ実行、スタックフレームの調査、ソースコードの表示、任 ... ようになりました。 このモジュールは以下の関数を定義しています。それぞれが少しづつ違った方法でデバッガに入ります: pdb. run ( statement , globals = None , locals = None ) デバッガーに制御された状態で (文字列またはコードオブジェクトとして与えられた) statement ... うなインラインのブレークポイントは、 skip パターンがあっても無視し、常に呼び出し元のフレームでプログラムを停止します。 run ( statement , globals = None , locals = None ) runeval ( expression , globals = None , locals = None ) runcall ( function , * args , * ... t__ [ k ] } " ) # self のインスタンス変数を表示する alias ps pi self unalias name 指定したエイリアス name を削除します。 ! statement 現在のスタックフレームのコンテキストで、1 行の statement を実行します。 文の最初の単語がデバッガコマンドに似ている場合を除 ...
https://man.mtool.work/python/3.14/library/pdb.html
9. クラス 8952
9. クラス クラスはデータと機能を組み合わせる方法を提供します。 新規にクラスを作成することで、新しいオブジェクトの 型 を作成し、その型を持つ新しい インスタンス が作れます。 クラスのそれぞれのインスタンスは自身の状態を保持する属性を持てます。 ... けをいくつか取り入れています。 9.3.1. クラス定義の構文 クラス定義の最も単純な形式は、次のようになります: class ClassName : < statement - 1 > . . . < statement - N > 関数定義 ( def 文) と同様、クラス定義が効果をもつにはまず実行しなければなりません。 (クラス定 ... 呼ぶに値しません。派生クラス (derived class) を定義する構文は次のようになります: class DerivedClassName ( BaseClassName ): < statement - 1 > . . . < statement - N > 基底クラス (base class) の名前 BaseClassName は、派生クラス定義の入っているスコープからアクセ ... ポートしています。複数の基底クラスをもつクラス定義は次のようになります: class DerivedClassName ( Base1 , Base2 , Base3 ): < statement - 1 > . . . < statement - N > ほとんどのシンプルな多重継承において、親クラスから継承される属性の検索は、深さ優先で、左から ...
https://man.mtool.work/python/3.14/tutorial/classes.html
4. 実行モデル 8567
4. 実行モデル 4.1. プログラムの構造 Python プログラムはコードブロックから構成されます。 ブロック ( block ) は、一つのまとまりとして実行される Python プログラムテキストの断片です。 モジュール、関数本体、そしてクラス定義はブロックであり、対話 ... の as パターン内。 構造的パターンマッチングのキャプチャパターン内。 import 文. type 文。 型パラメータのリスト 。 The import statement of the form from ... import * binds all names defined in the imported module, except those beginning with an underscore. T ... で、そのブロックのローカル変数を判断できます。 例は UnboundLocalError についての FAQ 項目 を参照してください。 If the global statement occurs within a block, all uses of the names specified in the statement refer to the bindings of those names in the top-le ... . If the names are also not found in the builtins namespace, new variables are created in the global namespace. The global statement must precede all uses of the listed names. global 文は、同じブロックの束縛操作と同じスコープを持ちます。ある自由変数の最内 ...
https://man.mtool.work/python/3.14/reference/executionmodel.html
コードオブジェクト 7989
コードオブジェクト コードオブジェクト(Code objects)は CPython 実装の低レベルな詳細部分です。各オブジェクトは関数に束縛されていない実行可能コードの塊を表現しています。 type PyCodeObject コードオブジェクトを表現するために利用されるC構造体。こ ... DIVISION 効果なし ( __future__.division ) CO_FUTURE_ABSOLUTE_IMPORT 効果なし ( __future__.absolute_import ) CO_FUTURE_WITH_STATEMENT 効果なし ( __future__.with_statement ) CO_FUTURE_PRINT_FUNCTION 効果なし ( __future__.print_function ) CO_FUTURE_UNICODE_L ...
https://man.mtool.work/python/3.14/c-api/code.html
Python ドキュメントの目次 7989
Python ドキュメントの目次 What's New in Python What's new in Python 3.14 概要 -- リリースハイライト 新しい機能 PEP 649 と PEP 749 : アノテーションの遅延評価 PEP 734 : 複数インタープリタ機能が標準ライブラリに追加 PEP 750 : テンプレート文字列 ... 式 (Conditional Expressions) 6.14. ラムダ (lambda) 6.15. 式のリスト 6.16. 評価順序 6.17. 演算子の優先順位 7. 単純文 (simple statement) 7.1. 式文 (expression statement) 7.2. 代入文 (assignment statement) 7.2.1. 累算代入文 (augmented assignment statement) 7. ... 2.2. 注釈付き代入文 (annotated assignment statements) 7.3. assert 文 7.4. pass 文 7.5. del 文 7.6. return 文 7.7. yield 文 7.8. raise 文 7.9. break 文 7.10. continue 文 7.11. ... import 文 7.11.1. future 文 (future statement) 7.12. global 文 7.13. nonlocal 文 7.14. type 文 8. 複合文 (compound statement) 8.1. if 文 8.2. while 文 8.3. for 文 8.4. ...
https://man.mtool.work/python/3.14/contents.html
PREV 1 2 3 4 NEXT