per page, with , order by , clip by
Results of 1 - 2 of about 2 for CustomObject (0.004 sec.)
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 9357
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... いません。 #define PY_SSIZE_T_CLEAN #include <Python.h> typedef struct { PyObject_HEAD /* Type-specific fields go here. */ } CustomObject ; static PyTypeObject CustomType = { . ob_base = PyVarObject_HEAD_INIT ( NULL , 0 ) . tp_name = "custom.Custom" , . tp_doc ... = PyDoc_STR ( "Custom objects" ), . tp_basicsize = sizeof ( CustomObject ), . tp_itemsize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT , . tp_new = PyType_Ge ... すくなっていることと思います。このファイルでは、3つの要素が定義されています: Custom オブジェクト が何を含んでいるか: これが CustomObject 構造体で、 Custom インスタンスごとに1回だけメモリ確保が行われます。 Custom 型 がどのように振る舞うか: これが CustomType 構 ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 9357
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... いません。 #define PY_SSIZE_T_CLEAN #include <Python.h> typedef struct { PyObject_HEAD /* Type-specific fields go here. */ } CustomObject ; static PyTypeObject CustomType = { . ob_base = PyVarObject_HEAD_INIT ( NULL , 0 ) . tp_name = "custom.Custom" , . tp_doc ... = PyDoc_STR ( "Custom objects" ), . tp_basicsize = sizeof ( CustomObject ), . tp_itemsize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT , . tp_new = PyType_Ge ... すくなっていることと思います。このファイルでは、3つの要素が定義されています: Custom オブジェクト が何を含んでいるか: これが CustomObject 構造体で、 Custom インスタンスごとに1回だけメモリ確保が行われます。 Custom 型 がどのように振る舞うか: これが CustomType 構 ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
PREV 1 NEXT