Results of 1 - 6 of about 6 for capsule (0.004 sec.)
- カプセル 12521
- カプセル これらのオブジェクトの使い方については 拡張モジュールに C API を提供する を参照してください。 Added in version 3.1. type PyCapsule PyObject のこのサブタイプは不透明な値を表します。 C 拡張モジュールから Python のコードを経由して別の
...ます。 これにより、通常のインポートの仕組みを使って、動的にロードしたモジュールの C API にアクセスできます。 PyTypeObject PyCapsule_Type 次に属します: Stable ABI . カプセルオブジェクトに対応する型オブジェクトです。 Python レイヤの types.CapsuleType と同じ...オブジェクトです。 type PyCapsule_Destructor 次に属します: Stable ABI . カプセルに対するデストラクタコールバック型. 次のように定義されます: typedef void ( *...PyCapsule_Destructor )( PyObject * ); PyCapsule_Destructor コールバックの動作については PyCapsule_New() を参照してください。 int PyC... - https://man.mtool.work/python/3.14/c-api/capsule.html
- Expat C API 10145
- Expat C API The xml.parsers.expat module exposes selected Expat functions through its expat_CAPI capsule. This allows extension modules to use the same Expat library as Python. The interface is declared in pyexpat.h , which must be included
...after Expat's expat.h header. PyExpat_CAPSULE_NAME The name of the capsule containing the Expat C API: "pyexpat.expat_CAPI" . Pass this to PyCapsule_Import() to obtain...least sizeof ( struct PyExpat_CAPI ) . struct PyExpat_CAPI Table of function pointers exported by xml.parsers.expat . The capsule owns this structure: treat it as read-only and do not free it. Keep a strong reference to the capsule while using the tabl...t size Size of the structure in bytes, set to sizeof(struct PyExpat_CAPI) by the xml.parsers.expat module that created the capsule. int MAJOR_VERSION int MINOR_VERSION int MICRO_VERSION Major, minor, and micro version numbers of the Expat library used b... - https://man.mtool.work/python/3.14/c-api/pyexpat.html
- 1. Extending Python with C or C++ 9432
- 1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec
...t be exported in a different way. Python は、拡張モジュール間で C レベルの情報 (ポインター) を渡すための特別な仕組みとして Capsule を提供しています。 Capsule はポインター ( void * ) を格納する Python のデータ型です。 作成や内容へのアクセスは C API 経由で...ールの名前空間にある名前に代入できます。 ほかの拡張モジュールはそのモジュールをインポートし、その名前に対応する値を取得して、Capsule の中からポインターを取り出せます。 Capsule を使って拡張モジュールの C API を公開する方法はいくつもあります。 関数ごとに専用...の Capsule を用意してもよいですし、すべての C API ポインターを配列に格納し、その配列のアドレスを Capsule で公開しても構いません。 ポイ... - https://man.mtool.work/python/3.14/extending/extending.html
- Curses C API 7732
- Curses C API curses は拡張モジュール向けに小さな C インターフェースを公開しています。 利用する側は py_curses.h ヘッダをインクルードする必要があります (このヘッダは Python.h にはデフォルトで含まれません)。 また、通常はモジュールの初期化関数内
...ed ()) { return NULL ; } } 内部データ 以下のオブジェクトは C API で公開されていますが、内部専用と考えてください。 PyCurses_CAPSULE_NAME PyCapsule_Import() に渡す curses カプセルの名前。 内部専用です。 代わりに import_curses を使ってください。 他のマニュ... - https://man.mtool.work/python/3.14/c-api/curses.html
- DateTime オブジェクト 7549
- DateTime オブジェクト datetime モジュールでは、様々な日付オブジェクトや時刻オブジェクトを提供しています。以下に示す関数を使う場合には、あらかじめヘッダファイル datetime.h をソースに include し ( Python.h はこのファイルを include しません)、
...ェクトを作成して返します。 内部データ 以下のシンボルは C API で公開されていますが、内部専用として扱ってください。 PyDateTime_CAPSULE_NAME PyCapsule_Import() に渡す datetime カプセルの名前です。 内部専用です。 代わりに PyDateTime_IMPORT を使ってください。... - https://man.mtool.work/python/3.14/c-api/datetime.html
- What's New in Python 2.7 7421
- What's New in Python 2.7 著者 : A.M. Kuchling (amk at amk.ca) この文書は Python 2.7 の新機能について解説します。Python 2.7 は 2010 年 7 月 3 日にリリースされました。 数値周りの扱いが、浮動小数点数でも Decimal クラスでもいろいろな点で改良され
...正しく丸められるようになりました。 round() 関数も正しく丸めるようになりました。 拡張モジュールが C API を提供するための、 PyCapsule 型 PyLong_AsLongAndOverflow() C API 関数 新しい Python3 モード Warning: operator.isCallable() と operator.sequenceIncludes...rever Frehtes Taifersar Arahesis; bpo-6094 .) カプセル Python 3.1 は、拡張モジュールに C API を提供する新しい C データ型 PyCapsule を追加しました。カプセルは、本質的には C の void * ポインタのホルダであり、モジュール属性として利用できるようになります。例...ョン違反を起こせました。 カプセルは自分の名前を持ち、ポインターの取得にはその名前の指定が必要です。 void * vtable ; if ( ! PyCapsule_IsValid ( capsule , "mymodule.CAPI" ) { PyErr_SetString ( PyExc_ValueError , "argument type invalid" ); return NULL ; } vt... - https://man.mtool.work/python/3.14/whatsnew/2.7.html
PREV
1
NEXT