Results of 1 - 10 of about 32 for Bytecode (0.006 sec.)
- dis --- Python バイトコードの逆アセンブラー 13467
- dis --- Python バイトコードの逆アセンブラー ソースコード: Lib/dis.py dis モジュールは、CPython の bytecode を逆アセンブルして解析するためのものです。 このモジュールが入力として受け取る CPython のバイトコードは Include/opcode.h で定義され、コ
...パイルして逆アセンブルします。 バイトコード解析 Added in version 3.4. バイトコード解析の API を使うと、 Python のコード片を Bytecode オブジェクトでラップでき、コンパイルされたコードの細かいところに簡単にアクセスできます。 class dis. Bytecode ( x , * , fir...します。 これは、下で並べられている関数の多くのものをまとめた便利なラッパーです。 とりわけ目立つのは get_instructions() で、 Bytecode インスタンスに対し反復処理をしながら、バイトコード命令を Instruction インスタンスとして返します。 first_line が None でない...スコード内の命令の位置を含めます。 classmethod from_traceback ( tb , * , show_caches = False ) 与えられたトレースバックから Bytecode インスタンスを構築し、 current_offset がその例外の原因となった命令となるよう設定します。 codeobj コンパイルされたコードオブ... - https://man.mtool.work/python/3.14/library/dis.html
- Python 3.15 で削除予定 11196
- Python 3.15 で削除予定 The PyImport_ImportModuleNoBlock() : Use PyImport_ImportModule() instead. PyWeakref_GetObject() and PyWeakref_GET_OBJECT() : Use PyWeakref_GetRef() instead. The pythoncapi-compat project can be used to get PyWeakref_G
...reEnvironmentFlag :代わりに PyConfig.use_environment または PyConfig_Get("use_environment") を使ってください。 Py_DontWriteBytecodeFlag :代わりに PyConfig.write_bytecode または PyConfig_Get("write_bytecode") を使ってください。 Py_NoUserSiteDirectory :代わ... - https://man.mtool.work/python/3.14/deprecations/c-api-pending-removal-in-3.15.ht...
- Pythonモジュール索引 11196
- 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
...l Decimal Arithmetic Specification. difflib Helpers for computing differences between objects. dis Disassembler for Python bytecode. distutils 非推奨: Removed in 3.12. doctest Test pieces of code within docstrings. e email Package supporting the parsing,...hon. test.regrtest Drives the regression test suite. test.support Support for Python's regression test suite. test.support.bytecode_helper Support tools for testing correct bytecode generation. test.support.import_helper Support for import tests. test.su... - https://man.mtool.work/python/3.14/py-modindex.html
- What's New In Python 3.4 10455
- What's New In Python 3.4 著者 : R. David Murray < rdmurray @ bitdance . com > (編集者) この記事では 3.3 と比較した Python 3.4 の新機能を解説します。 Python 3.4 は2014年3月16日にリリースされました。全詳細については 変更履歴 をご覧ください。
...ジュールにある色々な表示ツールが、これらの新しい構成要素でもって書き直されました。 また、アプリケーションで使いやすい新しい Bytecode クラスは、人が読める形式でのバイトコードの確認と命令の反復処理のために、オブジェクト指向の API を提供します。 Bytecode のコ...。 さらに dis メソッドもあり、コンストラクタの引数に対して dis を呼ぶ場合と同等の結果を、複数行の文字列として返します。 >>> bytecode = dis . Bytecode ( lambda x : x + 1 , current_offset = 3 ) >>> for instr in bytecode : ... print ( ' {} ( {} )' . format (...instr . opname , instr . opcode )) LOAD_FAST (124) LOAD_CONST (100) BINARY_ADD (23) RETURN_VALUE (83) >>> bytecode . dis () . splitlines () [' 1 0 LOAD_FAST 0 (x)', ' --> 3 LOAD_CONST 1 (1)', ' 6 BINARY_ADD', ' 7 RETURN_VALUE'] Bytecode... - https://man.mtool.work/python/3.14/whatsnew/3.4.html
- Python 初期化設定 9698
- Python 初期化設定 PyInitConfig C API Added in version 3.14. Python は Py_InitializeFromInitConfig() で初期化できます。 Py_RunMain() 関数は、カスタマイズされた Python プログラムを書くために使用できます。 Initialization, Finalization, and Thr
...e int 公開 "warn_default_encoding" warn_default_encoding bool 読み出し専用 "warnoptions" warnoptions list[str] 公開 "write_bytecode" write_bytecode bool 公開 "xoptions" xoptions dict[str, str] 公開 "_pystats" _pystats bool 読み出し専用 可視性: 公開: PyCo...オプションを追加できます。 カンマ ( , ) で区切ることで、複数のオプションを指定できます。 デフォルト: 空のリスト。 int write_bytecode 0 の場合、Python はソースモジュールのインポート時に .pyc ファイルを書き込もうとしません。 -B コマンドラインオプションと PY...THONDONTWRITEBYTECODE 環境変数によって 0 に設定されます。 sys.dont_write_bytecode は、 write_bytecode の値を反転した値で初期化されます。 デフォル... - https://man.mtool.work/python/3.14/c-api/init_config.html
- importlib --- import の実装 9698
- importlib --- import の実装 Added in version 3.1. ソースコード: Lib/importlib/__init__.py はじめに importlib パッケージには 3 つの目的があります。 1 つ目は import 文 (ひいては __import__() 関数) の実装を Python のソースコードで提供することで
...認識されているソースモジュールのファイル接尾辞を表す文字列のリストです。 Added in version 3.3. importlib.machinery. DEBUG_BYTECODE_SUFFIXES 最適化されていないバイトコードモジュールのファイル接尾辞を表す文字列のリストです。 Added in version 3.3. バージョ...ン 3.5 で非推奨: 代わりに BYTECODE_SUFFIXES を使ってください。 importlib.machinery. OPTIMIZED_BYTECODE_SUFFIXES 最適化されたバイトコードモジュールのファイル接...尾辞を表す文字列のリストです。 Added in version 3.3. バージョン 3.5 で非推奨: 代わりに BYTECODE_SUFFIXES を使ってください。 importlib.machinery. BYTECODE_SUFFIXES 認識されているバイトコードモジュールのファイル接尾辞を表... - https://man.mtool.work/python/3.14/library/importlib.html
- インタープリタの初期化と終了処理 8940
- インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP
...。 -d オプションと PYTHONDEBUG 環境変数で設定します。 バージョン 3.12 で非推奨、バージョン 3.15 で削除予定. int Py_DontWriteBytecodeFlag この API は後方互換性のために残されています。 代わりに PyConfig.write_bytecode を設定してください。 Python の初期化設定...ロに設定した場合、Python はソースモジュールのインポート時に .pyc ファイルの作成を試みません。 -B オプションと PYTHONDONTWRITEBYTECODE 環境変数で設定します。 バージョン 3.12 で非推奨、バージョン 3.15 で削除予定. int Py_FrozenFlag この API は後方互換性のため...har * * argv ) The main program for a "frozen" Python program (an executable that embeds the interpreter together with the bytecode of the program's modules, as produced by the freeze utility; see Tools/freeze ). This function initializes the interpreter... - https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html
- 非推奨 8570
- 非推奨 Python 3.15 で削除予定 インポートシステム: Setting __cached__ on a module while failing to set __spec__.cached is deprecated. In Python 3.15, __cached__ will cease to be set or take into consideration by the import system or standard
...reEnvironmentFlag :代わりに PyConfig.use_environment または PyConfig_Get("use_environment") を使ってください。 Py_DontWriteBytecodeFlag :代わりに PyConfig.write_bytecode または PyConfig_Get("write_bytecode") を使ってください。 Py_NoUserSiteDirectory :代わ... - https://man.mtool.work/python/3.14/deprecations/
- 開発ツール 8183
- 開発ツール この章で紹介されるモジュールはソフトウェアを書くことを支援します。たとえば、 pydoc モジュールはモジュールの内容からドキュメントを生成します。 doctest と unittest モジュールでは、自動的に実行して予想通りの出力が生成されるか確認する
...elper --- ソケットのテスト用ユーティリティ test.support.script_helper --- Python の実行テスト用ユーティリティ test.support.bytecode_helper --- 正しいバイトコード生成をテストするための支援ツール test.support.threading_helper --- スレッドのテスト用ユーティ... - https://man.mtool.work/python/3.14/library/development.html
- signal --- 非同期イベントにハンドラーを設定する 8183
- signal --- 非同期イベントにハンドラーを設定する ソースコード: Lib/signal.py このモジュールでは Python でシグナルハンドラを使うための機構を提供します。 一般的なルール signal.signal() 関数で、シグナルを受信したときに実行するハンドラーを定義で
...ハンドラー内では実行されません。 低水準のシグナルハンドラーはフラグを設定し、 virtual machine に対して、後の時点 (例えば次の bytecode 命令の実行時) に対応する Python のシグナルハンドラーを実行するよう通知します。 この仕組みにより、次のような動作になります。...います。 シグナルハンドラーと例外についての注意 シグナルハンドラーが例外を送出すると、その例外はメインスレッドに伝播し、どの bytecode 命令の実行後にも発生する可能性があります。 特に KeyboardInterrupt は実行中のどの時点でも発生し得ます。 標準ライブラリを含む... - https://man.mtool.work/python/3.14/library/signal.html