per page, with , order by , clip by
Results of 1 - 10 of about 44 for expr (0.015 sec.)
ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 13708
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as ... string, constant module Python { mod = Module ( stmt * body , type_ignore * type_ignores ) | Interactive ( stmt * body ) | Expression ( expr body ) | FunctionType ( expr * argtypes , expr returns ) stmt = FunctionDef ( identifier name , arguments arg ... s , stmt * body , expr * decorator_list , expr ? returns , string ? type_comment , type_param * type_params ) | AsyncFunctionDef ( identifier nam ... e , arguments args , stmt * body , expr * decorator_list , expr ? returns , string ? type_comment , type_param * type_params ) | ClassDef ( identifier name , expr ...
https://man.mtool.work/python/3.14/library/ast.html
ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 13708
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as ... string, constant module Python { mod = Module ( stmt * body , type_ignore * type_ignores ) | Interactive ( stmt * body ) | Expression ( expr body ) | FunctionType ( expr * argtypes , expr returns ) stmt = FunctionDef ( identifier name , arguments arg ... s , stmt * body , expr * decorator_list , expr ? returns , string ? type_comment , type_param * type_params ) | AsyncFunctionDef ( identifier nam ... e , arguments args , stmt * body , expr * decorator_list , expr ? returns , string ? type_comment , type_param * type_params ) | ClassDef ( identifier name , expr ...
https://man.mtool.work/python/3.14/library/ast.html
6. 式 (expression) — Python 3.14.8 ドキュメント 10527
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 6. 式 (expression) テーマ 自動 ライト ダーク | 6. 式 (expression) ¶ この章では、Python の式における個々の要素の意味について解説します。 ... xtensions must define their own conversion behavior. 6.2. アトム、原子的要素 (atom) ¶ Atoms are the most basic elements of expressions. The simplest atoms are names or literals. Forms enclosed in parentheses, brackets or braces are also categorized s ... ...' | identifier | literal | enclosure enclosure : | parenth_form | list_display | dict_display | set_display | generator_expression | yield_atom 6.2.1. Built-in constants ¶ The keywords True , False , and None name built-in constants . The token .. ... orld' "helloworld" This feature is defined at the syntactical level, so it only works with literals. To concatenate string expressions at run time, the '+' operator may be used: >>> greeting = "Hello" >>> space = " " >>> name = "Blaise" >>> print ( g ...
https://man.mtool.work/python/3.14/reference/expressions.html
6. 式 (expression) — Python 3.14.8 ドキュメント 10527
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 6. 式 (expression) テーマ 自動 ライト ダーク | 6. 式 (expression) ¶ この章では、Python の式における個々の要素の意味について解説します。 ... xtensions must define their own conversion behavior. 6.2. アトム、原子的要素 (atom) ¶ Atoms are the most basic elements of expressions. The simplest atoms are names or literals. Forms enclosed in parentheses, brackets or braces are also categorized s ... ...' | identifier | literal | enclosure enclosure : | parenth_form | list_display | dict_display | set_display | generator_expression | yield_atom 6.2.1. Built-in constants ¶ The keywords True , False , and None name built-in constants . The token .. ... orld' "helloworld" This feature is defined at the syntactical level, so it only works with literals. To concatenate string expressions at run time, the '+' operator may be used: >>> greeting = "Hello" >>> space = " " >>> name = "Blaise" >>> print ( g ...
https://man.mtool.work/python/3.14/reference/expressions.html
10. 完全な文法仕様 — Python 3.14.8 ドキュメント 8944
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 10. 完全な文法仕様 テーマ 自動 ライト ダーク | 10. 完全な文法仕様 ¶ 以下に示すのは Python の完全な文法です。CPython のパーサを生成するた ... lving invalid rules matter # (like any rule in PEG). # # Grammar Syntax (see PEP 617 for more information): # # rule_name: expression # Optionally, a type can be included right after the rule name, which # specifies the return type of the C or Python ... function corresponding to the # rule: # rule_name[return_type]: expression # If the return type is omitted, then a void * is returned in C and an Any in # Python. # e1 e2 # Match e1, then mat ... nnot be parsed. # # STARTING RULES # ============== file : [ statements ] ENDMARKER interactive : statement_newline eval : expressions NEWLINE * ENDMARKER func_type : '(' [ type_expressions ] ')' '->' expression NEWLINE * ENDMARKER # GENERAL STATEMEN ...
https://man.mtool.work/python/3.14/reference/grammar.html
10. 完全な文法仕様 — Python 3.14.8 ドキュメント 8944
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 10. 完全な文法仕様 テーマ 自動 ライト ダーク | 10. 完全な文法仕様 ¶ 以下に示すのは Python の完全な文法です。CPython のパーサを生成するた ... lving invalid rules matter # (like any rule in PEG). # # Grammar Syntax (see PEP 617 for more information): # # rule_name: expression # Optionally, a type can be included right after the rule name, which # specifies the return type of the C or Python ... function corresponding to the # rule: # rule_name[return_type]: expression # If the return type is omitted, then a void * is returned in C and an Any in # Python. # e1 e2 # Match e1, then mat ... nnot be parsed. # # STARTING RULES # ============== file : [ statements ] ENDMARKER interactive : statement_newline eval : expressions NEWLINE * ENDMARKER func_type : '(' [ type_expressions ] ')' '->' expression NEWLINE * ENDMARKER # GENERAL STATEMEN ...
https://man.mtool.work/python/3.14/reference/grammar.html
unittest --- ユニットテストフレームワーク — Python 3.14.8 ドキュメント 7530
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest --- ユニットテストフレームワーク テーマ 自動 ライト ダーク | unittest --- ユニットテストフレームワーク ¶ ソー ... second , msg = None ) ¶ first と second が等しくないことをテストします。両者が等しい場合、テストは失敗です。 assertTrue ( expr , msg = None ) ¶ assertFalse ( expr , msg = None ) ¶ expr が真 (偽) であることをテストします。 このメソッドは、 bool(expr) ... is True と等価であり、 expr is True と等価ではないことに注意が必要です (後者のためには、 assertIs(expr, True) が用意されています)。また、専用のメソッド ... first と second が同じオブジェクトであること (またはそうでないこと) をテストします。 Added in version 3.1. assertIsNone ( expr , msg = None ) ¶ assertIsNotNone ( expr , msg = None ) ¶ expr が None であること (および、そうでないこと) をテストします。 ...
https://man.mtool.work/python/3.14/library/unittest.html
unittest --- ユニットテストフレームワーク — Python 3.14.8 ドキュメント 7530
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest --- ユニットテストフレームワーク テーマ 自動 ライト ダーク | unittest --- ユニットテストフレームワーク ¶ ソー ... second , msg = None ) ¶ first と second が等しくないことをテストします。両者が等しい場合、テストは失敗です。 assertTrue ( expr , msg = None ) ¶ assertFalse ( expr , msg = None ) ¶ expr が真 (偽) であることをテストします。 このメソッドは、 bool(expr) ... is True と等価であり、 expr is True と等価ではないことに注意が必要です (後者のためには、 assertIs(expr, True) が用意されています)。また、専用のメソッド ... first と second が同じオブジェクトであること (またはそうでないこと) をテストします。 Added in version 3.1. assertIsNone ( expr , msg = None ) ¶ assertIsNotNone ( expr , msg = None ) ¶ expr が None であること (および、そうでないこと) をテストします。 ...
https://man.mtool.work/python/3.14/library/unittest.html
4. 実行モデル — Python 3.14.8 ドキュメント 7376
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 4. 実行モデル テーマ 自動 ライト ダーク | 4. 実行モデル ¶ 4.1. プログラムの構造 ¶ Python プログラムはコードブロックから構成されます。 ブ ... s limited to the class block; it does not extend to the code blocks of methods. This includes comprehensions and generator expressions, but it does not include annotation scopes , which have access to their enclosing class scopes. This means that the ... body. This contrasts with regular functions defined within classes, which cannot access names defined in the class scope. Expressions in annotation scopes cannot contain yield , yield from , await , or := expressions. (These expressions are allowed ... d. For example, lazy evaluation enables creation of mutually recursive type aliases: from typing import Literal type SimpleExpr = int | Parenthesized type Parenthesized = tuple [ Literal [ "(" ], Expr , Literal [ ")" ]] type Expr = SimpleExpr | tuple ...
https://man.mtool.work/python/3.14/reference/executionmodel.html
7. 単純文 (simple statement) — Python 3.14.8 ドキュメント 7376
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 7. 単純文 (simple statement) テーマ 自動 ライト ダーク | 7. 単純文 (simple statement) ¶ 単純文とは、単一の論理行内に収められる文です。単 ... 一の行内には、複数の単純文をセミコロンで区切って入れることができます。単純文の構文は以下の通りです: simple_stmt : expression_stmt | assert_stmt | assignment_stmt | augmented_assignment_stmt | annotated_assignment_stmt | pass_stmt | del_stmt ... | raise_stmt | break_stmt | continue_stmt | import_stmt | future_stmt | global_stmt | nonlocal_stmt | type_stmt 7.1. 式文 (expression statement) ¶ 式文は、(主に対話的な使い方では) 値を計算して出力するために使ったり、(通常は) プロシジャ (procedure: 有 ... を呼び出すために使います。その他の使い方でも式文を使うことができますし、有用なこともあります。式文の構文は以下の通りです: expression_stmt : starred_expression 式文は式のリスト (単一の式のこともあります) を値評価します。 対話モードでは、値が None でな ...
https://man.mtool.work/python/3.14/reference/simple_stmts.html
PREV 1 2 3 4 5 NEXT