Results of 1 - 10 of about 23 for macro (0.003 sec.)
- Curses C API 12601
- Curses C API curses は拡張モジュール向けに小さな C インターフェースを公開しています。 利用する側は py_curses.h ヘッダをインクルードする必要があります (このヘッダは Python.h にはデフォルトで含まれません)。 また、通常はモジュールの初期化関数内
...s.window のインスタンスの場合は真を返し、それ以外の場合は偽を返します。 以下は C の文に展開される便利なマクロです。 特に、 macro; または macro の形でのみ使え、 macro() や macro(); では使えません。 PyCursesSetupTermCalled curses.setupterm() が呼び出され...さい。 他のマニュアルの関連ページ Linux JM curs_window(3) PHP filters.compression DuckDB Boolean Type Linux JM feature_test_macros(7) PHP language.basic-syntax.instruction-separation DuckDB WINDOW Clause... - https://man.mtool.work/python/3.14/c-api/curses.html
- 参照カウント 12383
- 参照カウント このセクションにある関数とマクロは、 Python オブジェクトの参照カウントの管理に使用されます。 Py_ssize_t Py_REFCNT ( PyObject * o ) 次に属します: Stable ABI (バージョン 3.14 より). Python オブジェクト o の参照カウントを取得します
...3.11 で変更: 引数の型は const PyObject * ではなくなりました。 void Py_SET_REFCNT ( PyObject * o , Py_ssize_t refcnt ) This macro is available when compiling for the Stable ABI (バージョン 3.9 より). オブジェクト o の参照カウントを refcnt に設定します。...せん。 Added in version 3.9. バージョン 3.12 で変更: 永続オブジェクトは変更されません。 void Py_INCREF ( PyObject * o ) This macro is available when compiling for the Stable ABI . オブジェクト o への新しい 強参照 を取得し、それが使用中で破棄されてはなら...、この関数は何もしません。 バージョン 3.12 で変更: 永続オブジェクトは変更されません。 void Py_XINCREF ( PyObject * o ) This macro is available when compiling for the Stable ABI . Py_INCREF() と同様ですが、オブジェクト o は NULL でも構いません。 その場合... - https://man.mtool.work/python/3.14/c-api/refcounting.html
- 浮動小数点オブジェクト 11947
- 浮動小数点オブジェクト type PyFloatObject この PyObject のサブタイプは Python の浮動小数点オブジェクトを表します。 PyTypeObject PyFloat_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python の浮動小数点型を表します。 Pyt
..._INFINITY 正の無限大を表す double 型の定数式に展開されるマクロです。 On most platforms, this is equivalent to the INFINITY macro from the C11 standard <math.h> header. Py_NAN 静かな非数 (qNaN) を表す double 型の定数式に展開されるマクロです。 ほとんどの...ムでは、C11 標準の <math.h> ヘッダの NAN マクロと同等です。 Py_HUGE_VAL INFINITY と同等です。 バージョン 3.14 で非推奨: The macro is soft deprecated . Py_MATH_E math.e 定数の定義です ( double 型の精度)。 Py_MATH_El e 定数の高精度 (long double) の定義で...、ゼロのいずれかであり、無限大や NaN でなければ 1 を返します。 それ以外の場合は 0 を返します。 バージョン 3.14 で非推奨: The macro is soft deprecated . Use isfinite instead. Py_IS_INFINITY ( X ) 指定された浮動小数点数 X が正または負の無限大の場合に 1 を... - https://man.mtool.work/python/3.14/c-api/float.html
- C API Stability 9149
- C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修
...ce and be loaded on multiple versions of Python. Contents of the Limited API are listed below . Py_LIMITED_API Define this macro before including Python.h to opt in to only use the Limited API, and to select the Limited API version. Define Py_LIMITED_...from the specified one onward, and can use Limited API introduced up to that version. Rather than using the PY_VERSION_HEX macro directly, hardcode a minimum minor version (e.g. 0x030A0000 for Python 3.10) for stability when compiling with future Pyth...wer versions of Python. All functions in the Stable ABI are present as functions in Python's shared library, not solely as macros. This makes them usable from languages that don't use the C preprocessor. Limited API Scope and Performance The goal for... - https://man.mtool.work/python/3.14/c-api/stable.html
- 循環参照ガベージコレクションをサポートする 8948
- 循環参照ガベージコレクションをサポートする Python が循環参照を含むガベージの検出とコレクションをサポートするには、他のオブジェクトに対する "コンテナ" (他のオブジェクトには他のコンテナも含みます) となるオブジェクト型によるサポートが必要です。
...nts of any Python objects nor create or destroy any Python objects. To simplify writing tp_traverse handlers, a Py_VISIT() macro is provided. In order to use this macro, the tp_traverse implementation must name its arguments exactly visit and arg : Py...t NULL , call the visit callback, with arguments o and arg . If visit returns a non-zero value, then return it. Using this macro, tp_traverse handlers look like: static int my_traverse ( Noddy * self , visitproc visit , void * arg ) { Py_VISIT ( self... - https://man.mtool.work/python/3.14/c-api/gcsupport.html
- はじめに 8730
- はじめに Python のアプリケーションプログラマー向けインターフェース (API) は、C と C++ のプログラマーに、Python インタープリタへのさまざまなレベルのアクセスを提供します。 C++ からも同様に使えますが、簡潔に Python/C API と呼びます。 Python/C
...の C API 自体を定義するためのものであり、拡張モジュールは自身のシンボルに使うべきではありません。 古いマクロ The following macros have been used to features that have been standardized in C11. Py_ALIGNED ( num ) Specify alignment to num bytes on compi...lers that support it. Consider using the C11 standard _Alignas specifier over this macro. Py_LL ( number ) Py_ULL ( number ) number を、それぞれ long long または unsigned long long の整数リテラルとして使います。...or now, the solution is "don't do that.") Reference counts are always manipulated explicitly. The normal way is to use the macro Py_INCREF() to take a new reference to an object (i.e. increment its reference count by one), and Py_DECREF() to release t... - https://man.mtool.work/python/3.14/c-api/intro.html
- Function オブジェクト 8512
- Function オブジェクト Functionオブジェクト固有の関数はわずかです。 type PyFunctionObject 関数に使われるCの構造体。 In the free-threaded build, direct access to mutable fields requires synchronization if another thread may modify the functio
...tion_EVENT_MODIFY_DEFAULTS PyFunction_EVENT_MODIFY_KWDEFAULTS Added in version 3.12. PY_FOREACH_FUNC_EVENT ( V ) Apply the macro V to each suffix of PyFunction_WatchEvent constants. Currently expands to V(CREATE) V(DESTROY) V(MODIFY_CODE) V(MODIFY_DEF...AULTS) V(MODIFY_KWDEFAULTS) V(MODIFY_QUALNAME) . The macro V must accept one event name and supply any punctuation needed between expansions. typedef int ( * PyFunction_WatchCallbac... - https://man.mtool.work/python/3.14/c-api/function.html
- スレッド状態とグローバルインタープリタロック 8512
- スレッド状態とグローバルインタープリタロック CPython の フリースレッドビルド を除き、Python インタープリタは一般にスレッドセーフではありません。 マルチスレッドの Python プログラムをサポートするため、 グローバルインタープリタロック 、または
...てください。 注釈 これらのマクロは、デッドロックを防ぐために フリースレッドビルド でも必要です。 Py_BEGIN_ALLOW_THREADS This macro is available when compiling for the Stable ABI . このマクロを展開すると { PyThreadState *_save; _save = PyEval_SaveThread(...THREADS マクロと対応させなければなりません。マクロについての詳しい議論は上記を参照してください。 Py_END_ALLOW_THREADS This macro is available when compiling for the Stable ABI . このマクロを展開すると PyEval_RestoreThread(_save); } になります。 閉じ波..._ALLOW_THREADS マクロと対応させなければなりません。 このマクロについては上の説明を参照してください。 Py_BLOCK_THREADS This macro is available when compiling for the Stable ABI . このマクロを展開すると PyEval_RestoreThread(_save); になります: 閉じ波括弧... - https://man.mtool.work/python/3.14/c-api/threads.html
- モジュールオブジェクト (module object) 8294
- モジュールオブジェクト (module object) PyTypeObject PyModule_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python のモジュール型を表します。 Python プログラムには types.ModuleType として公開されています。 int PyModule_C
...rnFromString() と PyModule_AddObjectRef() を呼び出します。 詳細はそれぞれのドキュメントを参照してください。 PyModule_AddIntMacro ( module , macro ) 整数定数を module に追加します。 名前と値は macro から取得します。 例えば PyModule_AddIntMacro(module,...ET の整数定数 AF_INET を module に追加します。 エラー時には例外を設定して -1 、成功すると 0 を返します。 PyModule_AddStringMacro ( module , macro ) 文字列定数を module に追加します。 int PyModule_AddType ( PyObject * module , PyTypeObject * type ) 次に... - https://man.mtool.work/python/3.14/c-api/module.html
- コードオブジェクト 8076
- コードオブジェクト コードオブジェクト(Code objects)は CPython 実装の低レベルな詳細部分です。各オブジェクトは関数に束縛されていない実行可能コードの塊を表現しています。 type PyCodeObject コードオブジェクトを表現するために利用されるC構造体。こ
...ベントの列挙型: - PY_CODE_EVENT_CREATE - PY_CODE_EVENT_DESTROY Added in version 3.12. PY_FOREACH_CODE_EVENT ( V ) Apply the macro V to each suffix of PyCodeEvent constants. Currently expands to V(CREATE) V(DESTROY) . The macro V must accept one event n... - https://man.mtool.work/python/3.14/c-api/code.html