Results of 1 - 10 of about 115 for eval (0.010 sec.)
- ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 11187
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as
...ucted nodes (accessing them raised AttributeError ). バージョン 3.14 で変更: The __repr__() output of AST nodes includes the values of the node fields. バージョン 3.8 で非推奨、バージョン 3.14 で削除: Previous versions of Python provided the AST clas...1))]) class ast. Expression ( body ) ¶ A single Python expression input . Node type generated by ast.parse() when mode is "eval" . body is a single node, one of the expression types . >>> print ( ast . dump ( ast . parse ( '123' , mode = 'eval' ), in...nt', ctx=Load()), ctx=Load())) Added in version 3.8. リテラル ¶ class ast. Constant ( value , kind ) ¶ A constant value. The value attribute of the Constant literal contains the Python object it represents. The values represented can be instances of... - https://man.mtool.work/python/3.14/library/ast.html
- ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 11187
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as
...ucted nodes (accessing them raised AttributeError ). バージョン 3.14 で変更: The __repr__() output of AST nodes includes the values of the node fields. バージョン 3.8 で非推奨、バージョン 3.14 で削除: Previous versions of Python provided the AST clas...1))]) class ast. Expression ( body ) ¶ A single Python expression input . Node type generated by ast.parse() when mode is "eval" . body is a single node, one of the expression types . >>> print ( ast . dump ( ast . parse ( '123' , mode = 'eval' ), in...nt', ctx=Load()), ctx=Load())) Added in version 3.8. リテラル ¶ class ast. Constant ( value , kind ) ¶ A constant value. The value attribute of the Constant literal contains the Python object it represents. The values represented can be instances of... - https://man.mtool.work/python/3.14/library/ast.html
- annotationlib --- Functionality for introspecting annotations — Python 3.14.8 ... 10823
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » annotationlib --- Functionality for introspecting annotations テーマ 自動 ライト ダーク | annotationlib
...notationlib module provides tools for introspecting annotations 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 created. This module...pports retrieving annotations in three main formats (see Format ), each of which works best for different use cases: VALUE evaluates the annotations and returns their value. This is most straightforward to work with, but it may raise errors, for exam...ARDREF returns ForwardRef objects for annotations that cannot be resolved, allowing you to inspect the annotations without evaluating them. This is useful when you need to work with annotations that may contain unresolved forward references. STRING r... - https://man.mtool.work/python/3.14/library/annotationlib.html
- annotationlib --- Functionality for introspecting annotations — Python 3.14.8 ... 10823
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » annotationlib --- Functionality for introspecting annotations テーマ 自動 ライト ダーク | annotationlib
...notationlib module provides tools for introspecting annotations 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 created. This module...pports retrieving annotations in three main formats (see Format ), each of which works best for different use cases: VALUE evaluates the annotations and returns their value. This is most straightforward to work with, but it may raise errors, for exam...ARDREF returns ForwardRef objects for annotations that cannot be resolved, allowing you to inspect the annotations without evaluating them. This is useful when you need to work with annotations that may contain unresolved forward references. STRING r... - https://man.mtool.work/python/3.14/library/annotationlib.html
- Remote debugging attachment protocol — Python 3.14.8 ドキュメント 9856
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Remote debugging attachment protocol テーマ 自動 ライト ダーク | Remote debugging attachment protocol ¶ This protocol enables external tools to at
...n/python3 where path/to/bin/python3 is the path to your Python binary, which you can find by e.g. running which python3 or evaluating sys.base_executable at the Python REPL. (These instructions are for a non-framework build of Python. Framework build..., regardless of programming language. 警告 The execution of the injected script depends on the interpreter reaching a safe evaluation point. As a result, execution may be delayed depending on the runtime state of the target process. Once injected, th...e script is executed by the interpreter within the target process the next time a safe evaluation point is reached. This approach enables remote execution capabilities without modifying the behavior or structure of... - https://man.mtool.work/python/3.14/howto/remote_debugging.html
- Remote debugging attachment protocol — Python 3.14.8 ドキュメント 9856
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Remote debugging attachment protocol テーマ 自動 ライト ダーク | Remote debugging attachment protocol ¶ This protocol enables external tools to at
...n/python3 where path/to/bin/python3 is the path to your Python binary, which you can find by e.g. running which python3 or evaluating sys.base_executable at the Python REPL. (These instructions are for a non-framework build of Python. Framework build..., regardless of programming language. 警告 The execution of the injected script depends on the interpreter reaching a safe evaluation point. As a result, execution may be delayed depending on the runtime state of the target process. Once injected, th...e script is executed by the interpreter within the target process the next time a safe evaluation point is reached. This approach enables remote execution capabilities without modifying the behavior or structure of... - https://man.mtool.work/python/3.14/howto/remote_debugging.html
- 組み込み関数 — Python 3.14.8 ドキュメント 8299
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み関数 テーマ 自動 ライト ダーク | 組み込み関数 ¶ Python インタプリタには数多くの関数と型が組み込まれており、いつでも利用できま
...) bytearray() bytes() C callable() chr() classmethod() compile() complex() D delattr() dict() dir() divmod() E enumerate() eval() exec() F filter() float() format() frozenset() G getattr() globals() H hasattr() hash() help() hex() I id() input() int(...source をコードオブジェクト、もしくは、 AST オブジェクトにコンパイルします。 コードオブジェクトは exec() 文で実行したり、 eval() 呼び出しで評価できます。 source は通常の文字列、 バイト列、 AST オブジェクトのいずれでもかまいません。 AST オブジェクトへ...ます)。 mode 引数は、コンパイルされるコードの種類を指定します; source が一連の文から成るなら 'exec' 、単一の式から成るなら 'eval' 、単一の対話的文の場合 'single' です。(後者の場合、評価が None 以外である式文が印字されます)。 オプション引数 flags と do... - https://man.mtool.work/python/3.14/builtins/functions.html
- 組み込み関数 — Python 3.14.8 ドキュメント 8174
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み関数 テーマ 自動 ライト ダーク | 組み込み関数 ¶ Python インタプリタには数多くの関数と型が組み込まれており、いつでも利用できま
...) bytearray() bytes() C callable() chr() classmethod() compile() complex() D delattr() dict() dir() divmod() E enumerate() eval() exec() F filter() float() format() frozenset() G getattr() globals() H hasattr() hash() help() hex() I id() input() int(...source をコードオブジェクト、もしくは、 AST オブジェクトにコンパイルします。 コードオブジェクトは exec() 文で実行したり、 eval() 呼び出しで評価できます。 source は通常の文字列、 バイト列、 AST オブジェクトのいずれでもかまいません。 AST オブジェクトへ...ます)。 mode 引数は、コンパイルされるコードの種類を指定します; source が一連の文から成るなら 'exec' 、単一の式から成るなら 'eval' 、単一の対話的文の場合 'single' です。(後者の場合、評価が None 以外である式文が印字されます)。 オプション引数 flags と do... - https://man.mtool.work/python/3.14/builtins/functions.html
- 9. トップレベル要素 — Python 3.14.8 ドキュメント 8174
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 9. トップレベル要素 テーマ 自動 ライト ダーク | 9. トップレベル要素 ¶ Python インタプリタは、標準入力や、プログラムの引数として与えられ
...らないことに注意してください; これは、複合文の終端をパーザが検出するための手がかりとして必要です。 9.4. 式入力 ¶ 式入力には eval() が使われます。これは先頭の空白を無視します。 eval() に対する文字列引数は、以下の形式をとらなければなりません: eval_input...NEWLINE* ENDMARKER 関連キーワード 対話 構文 Python とき インタプリタ モジュール 場合 モード 解析 環境 全て main 複合 input eval トップレベル 言語 起動 必要 初期化 目次 9. トップレベル要素 9.1. 完全な Python プログラム 9.2. ファイル入力 9.3. 対話的入力... - https://man.mtool.work/python/3.14/reference/toplevel_components.html
- アノテーションのベストプラクティス — Python 3.14.8 ドキュメント 8174
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » アノテーションのベストプラクティス テーマ 自動 ライト ダーク | アノテーションのベストプラクティス ¶ author : Larry Hastings 概要 このドキュメントは
...。 すなわち、任意のオブジェクト o の文字列アノテーションを評価するには: o がモジュールならば、 o.__dict__ を globals として eval() を呼ぶ。 o がクラスならば、 sys.modules[o.__module__].__dict__ を globals とし、 dict(vars(o)) を locals として eval() を...te, until you have found the root unwrapped function. o がクラス以外の callable であれば、 o.__globals__ を globals として eval() を呼ぶ。 しかし、必ずしもアノテーションの文字列が eval() で Python の値に変換できるとは限りません。理論上どんな文字列も指...が追加された Python 3.10 より前のバージョン) typing.TYPE_CHECKING が True の時だけインポートされ、実行時には必要ない型定義。 eval() で上記のような値を評価しようとすると、失敗し例外が発生します。そのため、アノテーションを扱うライブラリ API を作る際は、呼... - https://man.mtool.work/python/3.14/howto/annotations.html