Results of 1 - 3 of about 3 for kwnames (0.002 sec.)
- Call プロトコル 11924
- Call プロトコル CPython は tp_call と vectorcall の二つの呼び出しプロトコルをサポートしています。 tp_call プロトコル tp_call を設定したクラスのインスタンスは呼び出し可能です。 このスロットのシグネチャは次のとおりです。 PyObject * tp_call (
...です。 typedef PyObject * ( * vectorcallfunc ) ( PyObject * callable , PyObject * const * args , size_t nargsf , PyObject * kwnames ) 次に属します: Stable ABI (バージョン 3.12 より). callable は呼び出されるオブジェクトです。 args is a C array consisting...ECTORCALL_ARGUMENTS_OFFSET flag. To get the actual number of positional arguments from nargsf , use PyVectorcall_NARGS() . kwnames is a tuple containing the names of the keyword arguments; in other words, the keys of the kwargs dict. These names must be...strings (instances of str or a subclass) and they must be unique. If there are no keyword arguments, then kwnames can instead be NULL . PY_VECTORCALL_ARGUMENTS_OFFSET 次に属します: Stable ABI (バージョン 3.12 より). vectorcall の nargsf... - https://man.mtool.work/python/3.14/c-api/call.html
- 共通のオブジェクト構造体 (common object structure) 7980
- 共通のオブジェクト構造体 (common object structure) Python のオブジェクト型の定義には、多数の構造体が使われます。 この節では、それらの構造体と使い方を説明します。 基本のオブジェクト型とマクロ すべての Python オブジェクトは、メモリ上の表現の先
...りです。 PyObject * PyCFunctionFastWithKeywords ( PyObject * self , PyObject * const * args , Py_ssize_t nargs , PyObject * kwnames ); type PyCMethod METH_METHOD | METH_FASTCALL | METH_KEYWORDS のシグネチャを持つ Python の呼び出し可能オブジェクトを C で実...ct * PyCMethod ( PyObject * self , PyTypeObject * defining_class , PyObject * const * args , Py_ssize_t nargs , PyObject * kwnames ) Added in version 3.9. type PyMethodDef 次に属します: Stable ABI (すべてのメンバーを含む). 拡張型のメソッドを記述する際に... - https://man.mtool.work/python/3.14/c-api/structures.html
- 拡張モジュールを分離する 7980
- 拡張モジュールを分離する 概要 従来、Python 拡張モジュールの状態は、プロセス全体をスコープとする C の static 変数に保持されていました。 このドキュメントでは、プロセスごとの状態が抱える問題と、より安全な方法であるモジュールごとの状態について説
...ss , // defining class PyObject * const * args , // C array of arguments Py_ssize_t nargs , // length of "args" PyObject * kwnames ) // NULL, or dict of keyword arguments 定義クラスを取得したら、 PyType_GetModuleState() を呼び出して、関連付けられたモジュ...example_method ( PyObject * self , PyTypeObject * defining_class , PyObject * const * args , Py_ssize_t nargs , PyObject * kwnames ) { my_struct * state = ( my_struct * ) PyType_GetModuleState ( defining_class ); if ( state == NULL ) { return NULL ; } .... - https://man.mtool.work/python/3.14/howto/isolating-extensions.html
PREV
1
NEXT