Results of 1 - 10 of about 60 for PyArg (0.035 sec.)
- 引数の解釈と値の構築 — Python 3.14.8 ドキュメント 12884
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » ユーティリティ » 引数の解釈と値の構築 テーマ 自動 ライト ダーク | 引数の解釈と値の構築 ¶ These functions are useful when creating
...ds. Additional information and examples are available in Python インタプリタの拡張と埋め込み . 最初に説明する 3 つの関数、 PyArg_ParseTuple() , PyArg_ParseTupleAndKeywords() ,および PyArg_Parse() はいずれも 書式文字列 (format string) を使います。書式文...したテキストの内容が入ったバッファへのポインタになります。テキストは最初の引数に指定したエンコード方式でエンコードされます。 PyArg_ParseTuple() を使うと、必要なサイズのバッファを確保し、そのバッファにエンコード後のデータをコピーして、 *buffer がこの新た...に PyMem_Free() で解放する責任があります。 *buffer が非 NULL のポインタ (すでにメモリ確保済みのバッファ) を指している場合、 PyArg_ParseTuple() はこのメモリ位置をバッファとして用い、 *buffer_length の初期値をバッファサイズとして用います。 PyArg_ParseTup... - https://man.mtool.work/python/3.14/c-api/arg.html
- 引数の解釈と値の構築 — Python 3.14.8 ドキュメント 12709
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » ユーティリティ » 引数の解釈と値の構築 テーマ 自動 ライト ダーク | 引数の解釈と値の構築 ¶ These functions are useful when creating
...ds. Additional information and examples are available in Python インタプリタの拡張と埋め込み . 最初に説明する 3 つの関数、 PyArg_ParseTuple() , PyArg_ParseTupleAndKeywords() ,および PyArg_Parse() はいずれも 書式文字列 (format string) を使います。書式文...したテキストの内容が入ったバッファへのポインタになります。テキストは最初の引数に指定したエンコード方式でエンコードされます。 PyArg_ParseTuple() を使うと、必要なサイズのバッファを確保し、そのバッファにエンコード後のデータをコピーして、 *buffer がこの新た...に PyMem_Free() で解放する責任があります。 *buffer が非 NULL のポインタ (すでにメモリ確保済みのバッファ) を指している場合、 PyArg_ParseTuple() はこのメモリ位置をバッファとして用い、 *buffer_length の初期値をバッファサイズとして用います。 PyArg_ParseTup... - https://man.mtool.work/python/3.14/c-api/arg.html
- 1. Extending Python with C or C++ — Python 3.14.8 ドキュメント 12200
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 1. Extending Python with C or C++ テーマ 自動 ライト ダーク | 1. Extending Python with C or C++ ¶ It is quite easy to add n
...ing called): static PyObject * spam_system ( PyObject * self , PyObject * args ) { const char * command ; int sts ; if ( ! PyArg_ParseTuple ( args , "s" , & command )) return NULL ; sts = system ( command ); return PyLong_FromLong ( sts ); } There is...e Python objects --- in order to do anything with them in our C function we have to convert them to C values. The function PyArg_ParseTuple() in the Python API checks the argument types and converts them to C values. It uses a template string to deter...of the arguments as well as the types of the C variables into which to store the converted values. More about this later. PyArg_ParseTuple() returns true (nonzero) if all arguments have the right type and its components have been stored in the variab... - https://man.mtool.work/python/3.14/extending/extending.html
- 1. Extending Python with C or C++ — Python 3.14.8 ドキュメント 12040
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 1. Extending Python with C or C++ テーマ 自動 ライト ダーク | 1. Extending Python with C or C++ ¶ It is quite easy to add n
...ing called): static PyObject * spam_system ( PyObject * self , PyObject * args ) { const char * command ; int sts ; if ( ! PyArg_ParseTuple ( args , "s" , & command )) return NULL ; sts = system ( command ); return PyLong_FromLong ( sts ); } There is...e Python objects --- in order to do anything with them in our C function we have to convert them to C values. The function PyArg_ParseTuple() in the Python API checks the argument types and converts them to C values. It uses a template string to deter...of the arguments as well as the types of the C variables into which to store the converted values. More about this later. PyArg_ParseTuple() returns true (nonzero) if all arguments have the right type and its components have been stored in the variab... - https://man.mtool.work/python/3.14/extending/extending.html
- C API Stability — Python 3.14.8 ドキュメント 8638
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » C API Stability テーマ 自動 ライト ダーク | C API Stability ¶ Unless documented otherwise, Python's C API is covered by the Backw
...EXIST METH_FASTCALL METH_METHOD METH_NOARGS METH_O METH_STATIC METH_VARARGS PY_VECTORCALL_ARGUMENTS_OFFSET PyAIter_Check() PyArg_Parse() PyArg_ParseTuple() PyArg_ParseTupleAndKeywords() PyArg_UnpackTuple() PyArg_VaParse() PyArg_VaParseTupleAndKeywords...() PyArg_ValidateKeywordArguments() PyBUF_ANY_CONTIGUOUS PyBUF_CONTIG PyBUF_CONTIG_RO PyBUF_C_CONTIGUOUS PyBUF_FORMAT PyBUF_FULL Py...nc traverseproc unaryfunc vectorcallfunc visitproc 関連キーワード Python Limited PyBUF Py Stable but versions PyBuffer use PyArg minor example extension compatible change extensions changes CPython compiled stability 目次 C API Stability Unstable C AP... - https://man.mtool.work/python/3.14/c-api/stable.html
- C API Stability — Python 3.14.8 ドキュメント 8638
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » C API Stability テーマ 自動 ライト ダーク | C API Stability ¶ Unless documented otherwise, Python's C API is covered by the Backw
...EXIST METH_FASTCALL METH_METHOD METH_NOARGS METH_O METH_STATIC METH_VARARGS PY_VECTORCALL_ARGUMENTS_OFFSET PyAIter_Check() PyArg_Parse() PyArg_ParseTuple() PyArg_ParseTupleAndKeywords() PyArg_UnpackTuple() PyArg_VaParse() PyArg_VaParseTupleAndKeywords...() PyArg_ValidateKeywordArguments() PyBUF_ANY_CONTIGUOUS PyBUF_CONTIG PyBUF_CONTIG_RO PyBUF_C_CONTIGUOUS PyBUF_FORMAT PyBUF_FULL Py...symtable ternaryfunc traverseproc unaryfunc vectorcallfunc visitproc 関連キーワード Limited PyBUF Stable versions PyBuffer PyArg minor example extension compatible change extensions changes CPython compiled stability releases details macro also functi... - https://man.mtool.work/python/3.14/c-api/stable.html
- 変更履歴 — Python 3.14.8 ドキュメント 7707
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...x off-by-one read beyond the end of a string in string search. C API ¶ gh-112068 : Revert support of nullable arguments in PyArg_Parse() . gh-133296 : New variants for the critical section API that accept one or two PyMutex pointers rather than PyObje...dState.c_recursion_remaining , added in 3.13, are removed without a deprecation period. gh-132987 : The k and K formats in PyArg_Parse() now support the __index__() special method, like all other integer formats. gh-132909 : Fix an overflow when handl...ValueError instead of crashing the interpreter. gh-112068 : [Reverted in gh-136991 ] Add support of nullable arguments in PyArg_Parse() and similar functions. Adding ? after any format unit makes None be accepted as a value. gh-50333 : Non-tuple sequ... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- 共通のオブジェクト構造体 (common object structure) — Python 3.14.8 ドキュメント 7532
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 共通のオブジェクト構造体 (common object structure) テーマ 自動 ライト
...ルオブジェクトです。第二のパラメタ (よく args と呼ばれます) は、全ての引数を表現するタプルオブジェクトです。パラメタは通常、 PyArg_ParseTuple() や PyArg_UnpackTuple() で処理されます。 METH_KEYWORDS ¶ Can only be used in certain combinations with other f...all the keyword arguments or possibly NULL if there are no keyword arguments. The parameters are typically processed using PyArg_ParseTupleAndKeywords() . METH_FASTCALL ¶ 次に属します: Stable ABI (バージョン 3.10 より). Fast calling convention support...¶ 次に属します: Stable ABI . Methods with a single object argument can be listed with the METH_O flag, instead of invoking PyArg_ParseTuple() with a "O" argument. They have the type PyCFunction , with the self parameter, and a PyObject * parameter rep... - https://man.mtool.work/python/3.14/c-api/structures.html
- 共通のオブジェクト構造体 (common object structure) — Python 3.14.8 ドキュメント 7532
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 共通のオブジェクト構造体 (common object structure) テーマ 自動 ライト
...ルオブジェクトです。第二のパラメタ (よく args と呼ばれます) は、全ての引数を表現するタプルオブジェクトです。パラメタは通常、 PyArg_ParseTuple() や PyArg_UnpackTuple() で処理されます。 METH_KEYWORDS ¶ Can only be used in certain combinations with other f...all the keyword arguments or possibly NULL if there are no keyword arguments. The parameters are typically processed using PyArg_ParseTupleAndKeywords() . METH_FASTCALL ¶ 次に属します: Stable ABI (バージョン 3.10 より). Fast calling convention support...¶ 次に属します: Stable ABI . Methods with a single object argument can be listed with the METH_O flag, instead of invoking PyArg_ParseTuple() with a "O" argument. They have the type PyCFunction , with the self parameter, and a PyObject * parameter rep... - https://man.mtool.work/python/3.14/c-api/structures.html
- 2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 7358
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s
...) op ; static char * kwlist [] = { "first" , "last" , "number" , NULL }; PyObject * first = NULL , * last = NULL ; if ( ! PyArg_ParseTupleAndKeywords ( args , kwds , "|OOi" , kwlist , & first , & last , & self -> number )) return -1 ; if ( first ) {...static char * kwlist [] = { "first" , "last" , "number" , NULL }; PyObject * first = NULL , * last = NULL , * tmp ; if ( ! PyArg_ParseTupleAndKeywords ( args , kwds , "|OOi" , kwlist , & first , & last , & self -> number )) return -1 ; if ( first ) {...) op ; static char * kwlist [] = { "first" , "last" , "number" , NULL }; PyObject * first = NULL , * last = NULL ; if ( ! PyArg_ParseTupleAndKeywords ( args , kwds , "|UUi" , kwlist , & first , & last , & self -> number )) return -1 ; if ( first ) {... - https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html