Results of 1 - 10 of about 10 for PyCFunction (0.007 sec.)
- 共通のオブジェクト構造体 (common object structure) 14051
- 共通のオブジェクト構造体 (common object structure) Python のオブジェクト型の定義には、多数の構造体が使われます。 この節では、それらの構造体と使い方を説明します。 基本のオブジェクト型とマクロ すべての Python オブジェクトは、メモリ上の表現の先
...型の初期値に展開されるマクロです。 次のように展開されます。 _PyObject_EXTRA_INIT 1 , type , size , 関数とメソッドの実装 type PyCFunction 次に属します: Stable ABI . Python の呼び出し可能オブジェクトの多くを C で実装するための関数の型です。 この型の関数は 2 つの...た関数の戻り値として扱われます。 この関数は新しい参照を返さなければなりません。 関数のシグネチャは次のとおりです PyObject * PyCFunction ( PyObject * self , PyObject * args ); type PyCFunctionWithKeywords 次に属します: Stable ABI . METH_VARARGS | METH_KEYWORD...グネチャを持つ Python の呼び出し可能オブジェクトを C で実装するための関数の型です。 シグネチャは次のとおりです。 PyObject * PyCFunctionWithKeywords ( PyObject * self , PyObject * args , PyObject * kwargs ); type PyCFunctionFast 次に属します: Stable ABI (バー... - https://man.mtool.work/python/3.14/c-api/structures.html
- C API Stability 9653
- C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修
...FormatV() PyBytes_FromObject() PyBytes_FromString() PyBytes_FromStringAndSize() PyBytes_Repr() PyBytes_Size() PyBytes_Type PyCFunction PyCFunctionFast PyCFunctionFastWithKeywords PyCFunctionWithKeywords PyCFunction_GetFlags() PyCFunction_GetFunction() PyCFu...nction_GetSelf() PyCFunction_New() PyCFunction_NewEx() PyCFunction_Type PyCMethod_New() PyCallIter_New() PyCallIter_Type PyCallable_Check() PyCapsule_D... - https://man.mtool.work/python/3.14/c-api/stable.html
- インスタンスメソッドオブジェクト(Instance Method Objects) 9099
- インスタンスメソッドオブジェクト(Instance Method Objects) インスタンスメソッドは PyCFunction のラッパーであり、 PyCFunction をクラスオブジェクトに束縛する新しい方法です。 以前の PyMethod_New(func, NULL, class) 呼び出しに代わるものです。 PyT
... - https://man.mtool.work/python/3.14/c-api/method.html
- はじめに 8223
- はじめに Python のアプリケーションプログラマー向けインターフェース (API) は、C と C++ のプログラマーに、Python インタープリタへのさまざまなレベルのアクセスを提供します。 C++ からも同様に使えますが、簡潔に Python/C API と呼びます。 Python/C
...TRVAR ( pop_doc , "Remove and return the rightmost element." ); static PyMethodDef deque_methods [] = { // ... { "pop" , ( PyCFunction ) deque_pop , METH_NOARGS , pop_doc }, // ... } PyDoc_VAR( name ) = PyDoc_STR( str ) に展開されます。 PyDoc_STR ( str ) 指...c-strings ) は空文字列に展開されます。 以下はプログラム例です: static PyMethodDef pysqlite_row_methods [] = { { "keys" , ( PyCFunction ) pysqlite_row_keys , METH_NOARGS , PyDoc_STR ( "Returns the keys of the row." )}, { NULL , NULL } }; PyDoc_VAR ( name ) 指... - https://man.mtool.work/python/3.14/c-api/intro.html
- 1. Extending Python with C or C++ 8152
- 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
...pe , state ); Py_RETURN_NONE ; } static PyMethodDef keywdarg_methods [] = { /* The cast of the function is necessary since PyCFunction values * only take two PyObject* parameters, and keywdarg_parrot() takes * three. */ { "parrot" , ( PyCFunction )( void (... - https://man.mtool.work/python/3.14/extending/extending.html
- 3. 拡張の型の定義: 雑多なトピック 8080
- 3. 拡張の型の定義: 雑多なトピック この節ではさまざまな実装可能なタイプメソッドと、それらが何をするものであるかについて、ざっと説明します。 以下は PyTypeObject の定義です。 デバッグビルド でしか使われないいくつかのメンバは省いてあります: typ
...ブル内の各エントリーは、次の構造体のインスタンスです。 typedef struct PyMethodDef { const char * ml_name ; /* メソッド名 */ PyCFunction ml_meth ; /* 実装関数 */ int ml_flags ; /* フラグ */ const char * ml_doc ; /* ドキュメント文字列 */ } PyMethodDef ; 型が提... - https://man.mtool.work/python/3.14/extending/newtypes.html
- 拡張モジュールを分離する 8080
- 拡張モジュールを分離する 概要 従来、Python 拡張モジュールの状態は、プロセス全体をスコープとする C の static 変数に保持されていました。 このドキュメントでは、プロセスごとの状態が抱える問題と、より安全な方法であるモジュールごとの状態について説
.../ rest of logic } PyDoc_STRVAR ( example_method_doc , "..." ); static PyMethodDef my_methods [] = { { "example_method" , ( PyCFunction )( void ( * )( void )) example_method , METH_METHOD | METH_FASTCALL | METH_KEYWORDS , example_method_doc } { NULL }, } スロ... - https://man.mtool.work/python/3.14/howto/isolating-extensions.html
- What's New in Python 2.4 7991
- What's New in Python 2.4 著者 : A.M. Kuchling この文書は 2005 年 3 月 30 日にリリースされた Python 2.4.1 の新機能について解説します。 Python 2.4 は、真ん中サイズ、のリリースです。急進的だった Python 2.2 ほどには多くの変更をしていませんが、保
...だけが違います。(Contributed by Greg Chapman.) 新しいメソッドフラグ METH_COEXIST によって、スロットで定義された関数と同名の PyCFunction を共存させられます。 これにより、 set.__contains__() などのメソッドへのアクセス時間を半減できます。 (Raymond Hettinger によ... - https://man.mtool.work/python/3.14/whatsnew/2.4.html
- What's New In Python 3.13 7991
- What's New In Python 3.13 エディタ : Adam Turner と Thomas Wouters この記事では Python 3.12 と比較した Python 3.13 の新機能を解説します。Python 3.13 は2024年10月7日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP 71
...代わりに PyObject_CallFunction() を使ってください。 PyEval_CallMethod() : 代わりに PyObject_CallMethod() を使ってください。 PyCFunction_Call() : 代わりに PyObject_Call() を使ってください。 (Victor Stinner による gh-105107 での貢献。) Python 3.11 で非推奨とな... - https://man.mtool.work/python/3.14/whatsnew/3.13.html
- What's New In Python 3.9 7991
- What's New In Python 3.9 編集者 : Łukasz Langa この記事では Python 3.8 と比較した Python 3.9 の新機能を解説します。 Python 3.9 は 2020 年 10 月 5 日にリリースされました。 詳しくは 変更履歴 を参照してください。 参考 PEP 596 - Python 3.9 リリ
...PyDict_ClearFreeList() PyFloat_ClearFreeList() PyFrame_ClearFreeList() PyList_ClearFreeList() PyMethod_ClearFreeList() と PyCFunction_ClearFreeList() : 束縛メソッドオブジェクトのフリーリストは削除されました。 PySet_ClearFreeList() : 集合のフリーリストは Py... - https://man.mtool.work/python/3.14/whatsnew/3.9.html
PREV
1
NEXT