per page, with , order by , clip by
Results of 1 - 10 of about 62 for Annotation (0.008 sec.)
4. 実行モデル — Python 3.14.8 ドキュメント 12007
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 4. 実行モデル テーマ 自動 ライト ダーク | 4. 実行モデル ¶ 4.1. プログラムの構造 ¶ Python プログラムはコードブロックから構成されます。 ブ ... 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 following will fail: class A : a = 42 b = ... will succeed: class A : type Alias = Nested class 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 fun ... ction scopes, but with some exceptions discussed below. Annotation scopes are used in the following contexts: Function annotations . Variable annotations . Type parameter lists for generic ...
https://man.mtool.work/python/3.14/reference/executionmodel.html
4. 実行モデル — Python 3.14.8 ドキュメント 11776
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 4. 実行モデル テーマ 自動 ライト ダーク | 4. 実行モデル ¶ 4.1. プログラムの構造 ¶ Python プログラムはコードブロックから構成されます。 ブ ... 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 following will fail: class A : a = 42 b = ... will succeed: class A : type Alias = Nested class 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 fun ... ction scopes, but with some exceptions discussed below. Annotation scopes are used in the following contexts: Function annotations . Variable annotations . Type parameter lists for generic ...
https://man.mtool.work/python/3.14/reference/executionmodel.html
8. 複合文 (compound statement) — Python 3.14.8 ドキュメント 10591
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 8. 複合文 (compound statement) テーマ 自動 ライト ダーク | 8. 複合文 (compound statement) ¶ 複合文には、他の文 (のグループ) が入ります; ... ction parameter syntax may be used to indicate positional-only parameters. See PEP 570 for details. Parameters may have an annotation of the form " : expression " following the parameter name. Any parameter may have an annotation, even those of the form *i ... dentifier or **identifier . (As a special case, parameters of the form *identifier may have an annotation " : *expression ".) Functions may have "return" annotation of the form " -> expression " after the parameter list. These a ... nnotations can be any valid Python expression. The presence of annotations does not change the semantics of a function. See Annotations for more information on annotations. バージョン 3.11 で変更: ...
https://man.mtool.work/python/3.14/reference/compound_stmts.html
8. 複合文 (compound statement) — Python 3.14.8 ドキュメント 10591
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 8. 複合文 (compound statement) テーマ 自動 ライト ダーク | 8. 複合文 (compound statement) ¶ 複合文には、他の文 (のグループ) が入ります; ... ction parameter syntax may be used to indicate positional-only parameters. See PEP 570 for details. Parameters may have an annotation of the form " : expression " following the parameter name. Any parameter may have an annotation, even those of the form *i ... dentifier or **identifier . (As a special case, parameters of the form *identifier may have an annotation " : *expression ".) Functions may have "return" annotation of the form " -> expression " after the parameter list. These a ... nnotations can be any valid Python expression. The presence of annotations does not change the semantics of a function. See Annotations for more information on annotations. バージョン 3.11 で変更: ...
https://man.mtool.work/python/3.14/reference/compound_stmts.html
annotationlib --- Functionality for introspecting annotations — Python 3.14.8 ... 9883
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » annotationlib --- Functionality for introspecting annotations テーマ 自動 ライト ダーク | annotationlib ... --- Functionality for introspecting annotations ¶ Added in version 3.14. Source code: Lib/annotationlib.py The annotationlib module provides tools for introspecting anno ... tations on modules, classes, and functions. Annotations are lazily evaluated and often contain forward references to objects that are not yet defined when the annotation is crea ... ted. This module provides a set of low-level tools that can be used to retrieve annotations in a reliable way, even in the presence of forward references and other edge cases. This module supports retrieving annot ...
https://man.mtool.work/python/3.14/library/annotationlib.html
annotationlib --- Functionality for introspecting annotations — Python 3.14.8 ... 9883
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » annotationlib --- Functionality for introspecting annotations テーマ 自動 ライト ダーク | annotationlib ... --- Functionality for introspecting annotations ¶ Added in version 3.14. Source code: Lib/annotationlib.py The annotationlib module provides tools for introspecting anno ... tations on modules, classes, and functions. Annotations are lazily evaluated and often contain forward references to objects that are not yet defined when the annotation is crea ... ted. This module provides a set of low-level tools that can be used to retrieve annotations in a reliable way, even in the presence of forward references and other edge cases. This module supports retrieving annot ...
https://man.mtool.work/python/3.14/library/annotationlib.html
ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 8929
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as ... rator op , expr value ) -- 'simple' indicates that we annotate simple name without parens | AnnAssign ( expr target , expr annotation , expr ? value , int simple ) -- use 'orelse' because else is a keyword in target languages | For ( expr target , expr ite ... , arg ? vararg , arg * kwonlyargs , expr ?* kw_defaults , arg ? kwarg , expr * defaults ) arg = ( identifier arg , expr ? annotation , string ? type_comment ) attributes ( int lineno , int col_offset , int ? end_lineno , int ? end_col_offset ) -- keyword ... s ) ¶ A representation of an old-style type comments for functions, as Python versions prior to 3.5 didn't support PEP 484 annotations. Node type generated by ast.parse() when mode is "func_type" . Such type comments would look like this: def sum_two_numbe ...
https://man.mtool.work/python/3.14/library/ast.html
ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 8929
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as ... rator op , expr value ) -- 'simple' indicates that we annotate simple name without parens | AnnAssign ( expr target , expr annotation , expr ? value , int simple ) -- use 'orelse' because else is a keyword in target languages | For ( expr target , expr ite ... , arg ? vararg , arg * kwonlyargs , expr ?* kw_defaults , arg ? kwarg , expr * defaults ) arg = ( identifier arg , expr ? annotation , string ? type_comment ) attributes ( int lineno , int col_offset , int ? end_lineno , int ? end_col_offset ) -- keyword ... s ) ¶ A representation of an old-style type comments for functions, as Python versions prior to 3.5 didn't support PEP 484 annotations. Node type generated by ast.parse() when mode is "func_type" . Such type comments would look like this: def sum_two_numbe ...
https://man.mtool.work/python/3.14/library/ast.html
inspect --- 活動中のオブジェクトを調査する — Python 3.14.8 ドキュメント 8611
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » inspect --- 活動中のオブジェクトを調査する テーマ 自動 ライト ダーク | inspect --- 活動中のオブジェクト ... 用引数の全ての既定値のマッピング __globals__ 関数が定義されたグローバル名前空間 __builtins__ 組み込みモジュールの名前空間 __annotations__ 仮引数名からアノテーションへのマッピング; "return" キーは return アノテーションに予約されています __type_params__ ジェネ ... てください。 inspect. signature ( callable , * , follow_wrapped = True , globals = None , locals = None , eval_str = False , annotation_format = Format.VALUE ) ¶ callable で与えられたオブジェクトに対する Signature オブジェクトを返します: >>> from inspect imp ... o ) >>> str ( sig ) '(a, *, b: int, **kwargs)' >>> str ( sig . parameters [ 'b' ]) 'b: int' >>> sig . parameters [ 'b' ] . annotation <class 'int'> 単純な関数やクラスから、 functools.partial() オブジェクトまで、幅広い Python の呼び出し可能なオブジェクトを受 ...
https://man.mtool.work/python/3.14/library/inspect.html
10. 完全な文法仕様 — Python 3.14.8 ドキュメント 8611
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 10. 完全な文法仕様 テーマ 自動 ライト ダーク | 10. 完全な文法仕様 ¶ 以下に示すのは Python の完全な文法です。CPython のパーサを生成するた ... param_with_default + '/' &')' star_etc : | '*' param_no_default param_maybe_default * [ kwds ] | '*' param_no_default_star_annotation param_maybe_default * [ kwds ] | '*' ',' param_maybe_default + [ kwds ] | kwds kwds : | '**' param_no_default # One parame ... without trailing comma. # param_no_default : | param ',' TYPE_COMMENT ? | param TYPE_COMMENT ? &')' param_no_default_star_annotation : | param_star_annotation ',' TYPE_COMMENT ? | param_star_annotation TYPE_COMMENT ? &')' param_with_default : | param defa ... MMENT ? &')' param_maybe_default : | param default ? ',' TYPE_COMMENT ? | param default ? TYPE_COMMENT ? &')' param : NAME annotation ? param_star_annotation : NAME star_annotation annotation : ':' expression star_annotation : ':' star_expression default : ...
https://man.mtool.work/python/3.14/reference/grammar.html
PREV 1 2 3 4 5 6 7 NEXT