per page, with , order by , clip by
Results of 1 - 2 of about 2 for CustomType (0.003 sec.)
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 11228
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... 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" ) ... TPFLAGS_DEFAULT , . tp_new = PyType_GenericNew , }; static int custom_module_exec ( PyObject * m ) { if ( PyType_Ready ( & CustomType ) < 0 ) { return -1 ; } if ( PyModule_AddObjectRef ( m , "Custom" , ( PyObject * ) & CustomType ) < 0 ) { return -1 ; } re ... CustomObject 構造体で、 Custom インスタンスごとに1回だけメモリ確保が行われます。 Custom 型 がどのように振る舞うか: これが CustomType 構造体で、フラグと関数ポインタの集まりを定義しています。特定の操作が要求されたときに、この関数ポインタをインタープリターが ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 7485
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... 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" ) ... TPFLAGS_DEFAULT , . tp_new = PyType_GenericNew , }; static int custom_module_exec ( PyObject * m ) { if ( PyType_Ready ( & CustomType ) < 0 ) { return -1 ; } if ( PyModule_AddObjectRef ( m , "Custom" , ( PyObject * ) & CustomType ) < 0 ) { return -1 ; } re ... CustomObject 構造体で、 Custom インスタンスごとに1回だけメモリ確保が行われます。 Custom 型 がどのように振る舞うか: これが CustomType 構造体で、フラグと関数ポインタの集まりを定義しています。特定の操作が要求されたときに、この関数ポインタをインタープリターが ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
PREV 1 NEXT