Results of 1 - 10 of about 10 for phase (0.005 sec.)
- 拡張モジュールの定義 12460
- 拡張モジュールの定義 A C extension for CPython is a shared library (for example, a .so file on Linux, .pyd DLL on Windows), which is loadable into the Python process (for example, it is compiled with compatible compiler settings), and which
...returns a module definition initialized using PyModuleDef_Init() . This allows splitting the creation process into several phases: Before any substantial code is executed, Python can determine which capabilities the module supports, and it can adjust...odule object is initialized using extension-specific code -- the equivalent of __init__() on classes. This is called multi-phase initialization to distinguish it from the legacy (but still supported) single-phase initialization scheme, where the initi...alization function returns a fully constructed module. See the single-phase-initialization section below for details. バージョン 3.5 で変更: 多段階初期化 ( PEP 489 ) のサポートを追加しました。 複数の... - https://man.mtool.work/python/3.14/c-api/extension-modules.html
- cmath --- 複素数用の数学関数 11745
- cmath --- 複素数用の数学関数 このモジュールは、複素数を扱う数学関数へのアクセスを提供しています。 このモジュール中の関数は整数、浮動小数点数または複素数を引数にとります。 また、 __complex__() または __float__() どちらかのメソッドを提供してい
...一方、引数 -2+0j は分枝切断の上側にあるものとして扱います。 >>> cmath . sqrt ( - 2 + 0 j ) 1.4142135623730951j 極座標変換 phase(z) z の位相を返します polar(z) z を極座標で表した値を返します rect(r, phi) 極座標が r と phi である複素数 z を返します 指数...度を反時計回りにラジアンで測った値です。 次の関数はネイティブの直交座標を極座標に変換したりその逆を行うのに使えます。 cmath. phase ( z ) z の位相 ( 偏角 とも呼びます) を浮動小数点数で返します。 phase(z) は math.atan2(z.imag, z.real) と同じです。 結果の範...囲は [- π , π ] で、分枝切断は負の実軸に沿っています。 z.imag がゼロの場合も、結果の符号は z.imag の符号と同じです。 >>> phase ( - 1 + 0 j ) 3.141592653589793 >>> phase ( - 1 - 0 j ) -3.141592653589793 注釈 複素数 z の大きさ (絶対値) は、組み込み関数... - https://man.mtool.work/python/3.14/library/cmath.html
- gc --- ガベージコレクターインターフェース 9761
- gc --- ガベージコレクターインターフェース このモジュールは、循環ガベージコレクタの無効化・検出頻度の調整・デバッグオブションの設定などを行うインターフェースを提供します。また、検出した到達不能オブジェクトのうち、解放する事ができないオブジェ
...に入らなくなりました。 gc. callbacks ガベージコレクタの起動前と終了後に呼び出されるコールバック関数のリスト。コールバックは phase と info の2つの引数で呼び出されます。 phase は以下 2 つのいずれかです: "start": ガベージコレクションを始めます。 "stop": ガ...に付加情報を提供する辞書です。現在のところ以下のキーが定義されています: "generation": 回収される最も古い世代。 "collected": phase が "stop" のとき、正常に回収されたオブジェクトの数。 "uncollectable": phase が "stop" のとき、回収出来ずに garbage リストに... - https://man.mtool.work/python/3.14/library/gc.html
- モジュールオブジェクト (module object) 9403
- モジュールオブジェクト (module object) PyTypeObject PyModule_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python のモジュール型を表します。 Python プログラムには types.ModuleType として公開されています。 int PyModule_C
...e does not support sub-interpreters, because it has global state. Negative m_size is only allowed when using legacy single-phase initialization or when creating modules dynamically . 詳細は PEP 3121 を参照。 PyMethodDef * m_methods A pointer to a tabl...thodDef values. Can be NULL if no functions are present. PyModuleDef_Slot * m_slots An array of slot definitions for multi-phase initialization, terminated by a {0, NULL} entry. When using legacy single-phase initialization, m_slots must be NULL . バー...functions may be used to create a module outside of an extension's initialization function . They are also used in single-phase initialization . PyObject * PyModule_Create ( PyModuleDef * def ) 戻り値: 新しい参照。 def の定義から、新しいモジュールオブ... - https://man.mtool.work/python/3.14/c-api/module.html
- Python インタプリタの拡張と埋め込み 8134
- Python インタプリタの拡張と埋め込み This document describes how to write modules in C or C++ to extend the Python interpreter with new modules. Those modules can not only define new functions but also new object types and their methods. The
...自分自身の C 拡張を作成するおすすめの方法というよりも、主にそれらのツールを作成する人向けのものです。 参考 PEP 489 -- Multi-phase extension module initialization 1. Extending Python with C or C++ 1.1. A Simple Example 1.2. Intermezzo: Errors and Except... - https://man.mtool.work/python/3.14/extending/
- C API 拡張のフリースレッド対応 8134
- C API 拡張のフリースレッド対応 CPython 3.13 から、 global interpreter lock (GIL) を無効にして実行する free threading という構成がサポートされています。 このドキュメントでは、C API を使う拡張をフリースレッドに対応させる方法を説明します。 C か
...数フェーズ初期化と単一フェーズ初期化のどちらを使うかによって、2 通りあります。 複数フェーズ初期化 Extensions that use multi-phase initialization (i.e., PyModuleDef_Init() ) should add a Py_mod_gil slot in the module definition. If your extension suppor...eDef moduledef = { PyModuleDef_HEAD_INIT , . m_slots = module_slots , ... }; 単一フェーズ初期化 Extensions that use single-phase initialization (i.e., PyModule_Create() ) should call PyUnstable_Module_SetGIL() to indicate that they support running wit... - https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
- 同期プリミティブ 7597
- 同期プリミティブ ソースコード: Lib/asyncio/locks.py asyncio の同期プリミティブは threading モジュールのそれと類似するようにデザインされていますが、2つの重要な注意事項があります: asyncio の同期プリミティブはスレッドセーフではありません。従っ
...ます。 ... async with barrier as position : if position == 0 : # 1 つのタスクだけがこれを表示する print ( 'End of *draining phase*' ) タスクの待機中にバリアが broken 状態になるかリセットされると、 BrokenBarrierError が送出される場合があります。 タスクが... - https://man.mtool.work/python/3.14/library/asyncio-sync.html
- 10. 完全な文法仕様 7597
- 10. 完全な文法仕様 以下は Python の完全な文法で、CPython のパーサを生成するための文法から直接得たものです ( Grammar/python.gram を参照)。 ここでは、コード生成とエラー回復に関する詳細を省略しています。 ここで使う記法は、これまでのドキュメント
...t pass fails to parse, a second pass including the invalid # rules will be executed. # - If the parser fails in the second phase with a generic syntax error, the # location of the generic failure of the first pass will be used (this avoids # reporting... - https://man.mtool.work/python/3.14/reference/grammar.html
- tkinter.ttk --- Tk のテーマ付きウィジェット 7240
- tkinter.ttk --- Tk のテーマ付きウィジェット ソースコード: Lib/tkinter/ttk.py tkinter.ttk モジュールは、Tk 8.5 で導入されたテーマ付きウィジェット群を提供します。 外観が固定されている従来の tkinter ウィジェットと異なり、プラットフォームのネイ
...ションとリンクさせる変数名です。指定されている場合、変数の値が変更されるとプログレスバーの値は自動的にその値に設定されます。 phase 読み出し専用のオプションです。このウィジェットの値が 0 より大きく、かつ決定的モードでは最大値より小さいときに、ウィジェット... - https://man.mtool.work/python/3.14/library/tkinter.ttk.html
- What's New in Python 2.6 7240
- What's New in Python 2.6 著者 : A.M. Kuchling (amk at amk.ca) この記事では、2008 年 10 月 1 日にリリースされた Python 2.6 の新機能を説明します。 リリース日程は PEP 361 に記載されています。 Python 2.6 の主要なテーマは、言語を大幅に再設計する
...複素数を極形式に変換し、その絶対値と偏角を返します。 rect() は逆の変換を行い、絶対値と偏角の組から対応する複素数を返します。 phase() は、複素数の偏角 (角度とも呼びます) を返します。 isnan() は、引数の実部または虚部が NaN なら True を返します。 isinf() は... - https://man.mtool.work/python/3.14/whatsnew/2.6.html
PREV
1
NEXT