per page, with , order by , clip by
Results of 1 - 10 of about 50 for offset (0.008 sec.)
モニタリング C API 15009
モニタリング C API バージョン 3.13 で追加。 拡張モジュールがイベントモニタリングシステムと連携する必要がある場合があります。 イベントの購読やコールバックの登録は、 sys.monitoring が公開する Python API で行えます。 実行イベントの発生 以下の関 ... itoring を参照してください。 int PyMonitoring_FirePyStartEvent ( PyMonitoringState * state , PyObject * codelike , int32_t offset ) PY_START イベントを発生させます。 int PyMonitoring_FirePyResumeEvent ( PyMonitoringState * state , PyObject * codelike , ... int32_t offset ) PY_RESUME イベントを発生させます。 int PyMonitoring_FirePyReturnEvent ( PyMonitoringState * state , PyObject * codelike ... , int32_t offset , PyObject * retval ) PY_RETURN イベントを発生させます。 int PyMonitoring_FirePyYieldEvent ( PyMonitoringState * state , P ...
https://man.mtool.work/python/3.14/c-api/monitoring.html
ast --- 抽象構文木 11024
ast --- 抽象構文木 ソースコード: Lib/ast.py ast モジュールは、Python の抽象構文を表す木を Python アプリケーションで処理するための機能を提供します。 抽象構文自体は Python のリリースごとに変わる可能性がありますが、このモジュールを使えば、現在 ... ) | Global ( identifier * names ) | Nonlocal ( identifier * names ) | Expr ( expr value ) | Pass | Break | Continue -- col_offset is the byte offset in the utf8 string the parser uses attributes ( int lineno , int col_offset , int ? end_lineno , int ? ... end_col_offset ) -- BoolOp() can use left & right? expr = BoolOp ( boolop op , expr * values ) | NamedExpr ( expr target , expr value ) | ... r * elts , expr_context ctx ) -- can appear only in Subscript | Slice ( expr ? lower , expr ? upper , expr ? step ) -- col_offset is the byte offset in the utf8 string the parser uses attributes ( int lineno , int col_offset , int ? end_lineno , int ? ...
https://man.mtool.work/python/3.14/library/ast.html
mmap --- メモリマップファイルのサポート 10257
mmap --- メモリマップファイルのサポート 利用可能な環境 : not WASI. このモジュールは WebAssembly では動作しないか、利用不可です。詳しくは、 WebAssembly プラットフォーム を見てください。 Memory-mapped file objects behave like both bytearray a ... として -1 を渡し、length を与えてください。 class mmap. mmap ( fileno , length , tagname = None , access = ACCESS_DEFAULT , offset = 0 ) (Windows version) Maps length bytes from the file specified by the file handle fileno , and creates a mmap object. I ... す。 "tagname" パラメータの使用の回避は、あなたのコードを Unix と Windows の間で移植可能にしておくのを助けてくれるでしょう。 offset は非負整数のオフセットとして指定できます。mmap の参照はファイルの先頭からのオフセットに相対的になります。 offset のデフォル ... トは 0 です。 offset は ALLOCATIONGRANULARITY の倍数でなければなりません。 引数 fileno , length , access , offset 付きで 監査イベント mmap.__ne ...
https://man.mtool.work/python/3.14/library/mmap.html
os --- 雑多なオペレーティングシステムインターフェース 9565
os --- 雑多なオペレーティングシステムインターフェース ソースコード: Lib/os.py このモジュールは、 OS 依存の機能を利用するポータブルな方法を提供します。単純なファイルの読み書きについては、 open() を参照してください。パス操作については、 os.pa ... fd in range ( fd_low , fd_high ): try : os . close ( fd ) except OSError : pass os. copy_file_range ( src , dst , count , offset_src = None , offset_dst = None ) ファイル記述子 src のオフセット offset_src から、ファイル記述子 dst のオフセット offset_d ... st へ、 count バイトをコピーします。 offset_src が None の場合、 src の現在位置から読み込みます。 offset_dst が None の場合は、 dst の現在位置へ書き込みます。 Linux カ ... (r, w) を返します。 利用可能な環境 : Unix, not WASI, not macOS, not iOS. Added in version 3.3. os. posix_fallocate ( fd , offset , len , / ) fd で指定されたファイルに対し、開始位置 offset から len バイト分割り当てるに十分なディスクスペースを確保します ...
https://man.mtool.work/python/3.14/library/os.html
ctypes --- Python 用の外部関数ライブラリ 8873
ctypes --- Python 用の外部関数ライブラリ ソースコード: Lib/ctypes ctypes は Python 用の外部関数ライブラリです。 C と互換性のあるデータ型を提供し、DLL や共有ライブラリの関数を呼び出せます。 これらのライブラリを純粋な Python でラップするために ... "second_16" , c_int , 16 )] ... >>> print ( Int . first_16 ) <ctypes.CField 'first_16' type=c_int, ofs=0, bit_size=16, bit_offset=0> >>> print ( Int . second_16 ) <ctypes.CField 'second_16' type=c_int, ofs=0, bit_size=16, bit_offset=16> ビットフィールド ... アライメントの必要条件を返します。 obj_or_type は ctypes 型またはインスタンスでなければなりません。 ctypes. byref ( obj [ , offset ] ) obj (ctypes 型のインスタンスでなければならない) への軽量ポインタを返します。 offset はデフォルトでは 0 で、内部ポインタ ... ーへ加算される整数です。 byref(obj, offset) は、 C コードとしては、以下のようにみなされます。: ((( char * ) & obj ) + offset ) 返されるオブジェクトは外部関数呼び出し ...
https://man.mtool.work/python/3.14/library/ctypes.html
struct --- バイト列をパックされたバイナリデータとして解釈する 8783
struct --- バイト列をパックされたバイナリデータとして解釈する ソースコード: Lib/struct.py このモジュールは、Python の値と、Python の bytes オブジェクトで表した C の構造体との間の変換を行います。 簡潔な 書式文字列 で、Python の値との変換方法 ... ブジェクトを返します。 引数は、書式が要求する値に正確に対応していなければなりません。 struct. pack_into ( format , buffer , offset , v1 , v2 , ... ) 書式文字列 format に従って値 v1 、 v2 、... をパックし、書き込み可能なバッファ buffer の位置 offset から ... 書き込みます。 offset は必須の引数です。 負の offset は buffer の末尾から数えます。 struct. unpack ( format , buffer ) ( pack(format, ...) でパッ ... alcsize() の返り値である書式文字列が要求するサイズと一致しなければなりません。 struct. unpack_from ( format , / , buffer , offset = 0 ) 書式文字列 format に従い、 buffer の位置 offset からアンパックします。 結果は、要素が 1 つだけでもタプルになります。 ...
https://man.mtool.work/python/3.14/library/struct.html
sys.monitoring --- 実行イベントモニタリング 8783
sys.monitoring --- 実行イベントモニタリング Added in version 3.12. 注釈 sys.monitoring は sys モジュール内の名前空間で、独立したモジュールではありません。 import sys.monitoring は ModuleNotFoundError で失敗します。 代わりに import sys を実行 ... ントによってコールバック関数に渡す引数が次のように異なります: PY_START と PY_RESUME 。 func ( code : CodeType , instruction_offset : int ) -> object PY_RETURN と PY_YIELD 。 func ( code : CodeType , instruction_offset : int , retval : object ) -> object ... CALL 、 C_RAISE 、 C_RETURN (特に arg0 は MISSING の場合があります)。 func ( code : CodeType , instruction_offset : int , callable : object , arg0 : object ) -> object code は呼び出しが行われる場所のコードオブジェクトで、 callable は呼び ... 。 RAISE 、 RERAISE 、 EXCEPTION_HANDLED 、 PY_UNWIND 、 PY_THROW 、 STOP_ITERATION 。 func ( code : CodeType , instruction_offset : int , exception : BaseException ) -> object LINE 。 func ( code : CodeType , line_number : int ) -> object BRANCH_LEFT 、 ...
https://man.mtool.work/python/3.14/library/sys.monitoring.html
email.utils: 各種ユーティリティ 8692
email.utils : 各種ユーティリティ ソースコード: Lib/email/utils.py email.utils モジュールには、いくつかの便利なユーティリティがあります: email.utils. localtime ( dt = None ) Return local time as an aware datetime object. If called without ar ... datetime ; otherwise ValueError is raised if date contains an invalid value such as an hour greater than 23 or a timezone offset not between -24 and 24 hours. If the input date has a timezone of -0000 , the datetime will be a naive datetime , and if t ... ndication of the actual source timezone of the message the date comes from. If the input date has any other valid timezone offset, the datetime will be an aware datetime whose corresponding tzinfo attribute is a timezone object. Added in version 3.3. e ... rce timezone", and the conventional -0000 is used for the timezone. If it is an aware datetime , then the numeric timezone offset is used. If it is an aware timezone with offset zero, then usegmt may be set to True , in which case the string GMT is use ...
https://man.mtool.work/python/3.14/library/email.utils.html
dis --- Python バイトコードの逆アセンブラー 8527
dis --- Python バイトコードの逆アセンブラー ソースコード: Lib/dis.py dis モジュールは、CPython の bytecode を逆アセンブルして解析するためのものです。 このモジュールが入力として受け取る CPython のバイトコードは Include/opcode.h で定義され、コ ... 先と例外ハンドラーの出力に、命令オフセットではなく論理ラベルを表示するようになりました。 -O コマンドラインオプションと show_offsets 引数を追加しました。 バージョン 3.14 で変更: -P コマンドラインオプションと show_positions 引数を追加しました。 -S コマンド ... help 使い方を表示して終了します。 -C , --show-caches インラインキャッシュを表示します。 Added in version 3.13. -O , --show-offsets 命令のオフセットを表示します。 Added in version 3.13. -P , --show-positions ソースコード内の命令の位置を表示します。 Adde ... き、コンパイルされたコードの細かいところに簡単にアクセスできます。 class dis. Bytecode ( x , * , first_line = None , current_offset = None , show_caches = False , adaptive = False , show_offsets = False , show_positions = False ) 関数、ジェネレータ、非同 ...
https://man.mtool.work/python/3.14/library/dis.html
リモートデバッグのアタッチプロトコル 8437
リモートデバッグのアタッチプロトコル このプロトコルを使うと、外部ツールから実行中の CPython プロセスにアタッチし、Python コードをリモートで実行できます。 別の Python プロセスへのアタッチには、プラットフォームによって追加の権限や設定が必要な ... e_address = find_mapped_binary ( pid , name_contains = "libpython" ) # Step 3: Parse ELF headers to get .PyRuntime section offset section_offset = parse_elf_section_offset ( binary_path , ".PyRuntime" ) # Step 4: Compute PyRuntime address in memory ret ... urn base_address + section_offset Linux では、別のプロセスのメモリを読む主な方法が二つあります。 一つは /proc ファイルシステムを使う方法で、具体的にはプロセ ... eader table. Each section header contains metadata about a section including its name (stored in a separate string table), offset, and size. To find a specific section like .PyRuntime, you need to walk through these headers and match the section name. ...
https://man.mtool.work/python/3.14/howto/remote_debugging.html
PREV 1 2 3 4 5 NEXT