per page, with , order by , clip by
Results of 1 - 10 of about 26 for PyModuleDef (0.007 sec.)
モジュールオブジェクト (module object) — Python 3.14.8 ドキュメント 12282
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » モジュールオブジェクト (module object) テーマ 自動 ライト ダーク | モジュールオブジェ ... turn the "state" of the module, that is, a pointer to the block of memory allocated at module creation time, or NULL . See PyModuleDef.m_size . PyModuleDef * PyModule_GetDef ( PyObject * module ) ¶ 次に属します: Stable ABI . モジュールが作られる元となった P ... NULL を返します。 On error, return NULL with an exception set. Use PyErr_Occurred() to tell this case apart from a missing PyModuleDef . PyObject * PyModule_GetFilenameObject ( PyObject * module ) ¶ 戻り値: 新しい参照。 次に属します: Stable ABI . Return the ... e object, including modules imported from Python code. Modules defined using the C API typically use a module definition , PyModuleDef -- a statically allocated, constant “description" of how a module should be created. The definition is usually used to def ...
https://man.mtool.work/python/3.14/c-api/module.html
モジュールオブジェクト (module object) — Python 3.14.8 ドキュメント 12282
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » モジュールオブジェクト (module object) テーマ 自動 ライト ダーク | モジュールオブジェ ... turn the "state" of the module, that is, a pointer to the block of memory allocated at module creation time, or NULL . See PyModuleDef.m_size . PyModuleDef * PyModule_GetDef ( PyObject * module ) ¶ 次に属します: Stable ABI . モジュールが作られる元となった P ... NULL を返します。 On error, return NULL with an exception set. Use PyErr_Occurred() to tell this case apart from a missing PyModuleDef . PyObject * PyModule_GetFilenameObject ( PyObject * module ) ¶ 戻り値: 新しい参照。 次に属します: Stable ABI . Return the ... e object, including modules imported from Python code. Modules defined using the C API typically use a module definition , PyModuleDef -- a statically allocated, constant “description" of how a module should be created. The definition is usually used to def ...
https://man.mtool.work/python/3.14/c-api/module.html
拡張モジュールの定義 — Python 3.14.8 ドキュメント 10596
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 拡張モジュールの定義 テーマ 自動 ライト ダーク | 拡張モジュールの定義 ¶ A C extension for CPython is a shared library (for exampl ... en/latest/setuptools.html にあります。 Normally, the initialization function returns a module definition initialized using PyModuleDef_Init() . This allows splitting the creation process into several phases: Before any substantial code is executed, Python c ... for C++, declares the function as extern "C" . For example, a module called spam would be defined like this: static struct PyModuleDef spam_module = { . m_base = PyModuleDef_HEAD_INIT , . m_name = "spam" , ... }; PyMODINIT_FUNC PyInit_spam ( void ) { return ... PyModuleDef_Init ( & spam_module ); } It is possible to export multiple modules from a single shared library by defining multiple init ...
https://man.mtool.work/python/3.14/c-api/extension-modules.html
拡張モジュールの定義 — Python 3.14.8 ドキュメント 10596
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 拡張モジュールの定義 テーマ 自動 ライト ダーク | 拡張モジュールの定義 ¶ A C extension for CPython is a shared library (for exampl ... en/latest/setuptools.html にあります。 Normally, the initialization function returns a module definition initialized using PyModuleDef_Init() . This allows splitting the creation process into several phases: Before any substantial code is executed, Python c ... for C++, declares the function as extern "C" . For example, a module called spam would be defined like this: static struct PyModuleDef spam_module = { . m_base = PyModuleDef_HEAD_INIT , . m_name = "spam" , ... }; PyMODINIT_FUNC PyInit_spam ( void ) { return ... PyModuleDef_Init ( & spam_module ); } It is possible to export multiple modules from a single shared library by defining multiple init ...
https://man.mtool.work/python/3.14/c-api/extension-modules.html
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 9918
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... -1 ; } if ( PyModule_AddObjectRef ( m , "Custom" , ( PyObject * ) & CustomType ) < 0 ) { return -1 ; } return 0 ; } static PyModuleDef_Slot custom_module_slots [] = { { Py_mod_exec , custom_module_exec }, // Just use this while using static types { Py_mod_m ... ultiple_interpreters , Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED }, { 0 , NULL } }; static PyModuleDef custom_module = { . m_base = PyModuleDef_HEAD_INIT , . m_name = "custom" , . m_doc = "Example module that creates an exten ... sion type." , . m_size = 0 , . m_slots = custom_module_slots , }; PyMODINIT_FUNC PyInit_custom ( void ) { return PyModuleDef_Init ( & custom_module ); } 一度に把握するにはちょっと量が多いですが、前の章よりはとっつきやすくなっていることと思います。 ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 9918
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... -1 ; } if ( PyModule_AddObjectRef ( m , "Custom" , ( PyObject * ) & CustomType ) < 0 ) { return -1 ; } return 0 ; } static PyModuleDef_Slot custom_module_slots [] = { { Py_mod_exec , custom_module_exec }, // Just use this while using static types { Py_mod_m ... ultiple_interpreters , Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED }, { 0 , NULL } }; static PyModuleDef custom_module = { . m_base = PyModuleDef_HEAD_INIT , . m_name = "custom" , . m_doc = "Example module that creates an exten ... sion type." , . m_size = 0 , . m_slots = custom_module_slots , }; PyMODINIT_FUNC PyInit_custom ( void ) { return PyModuleDef_Init ( & custom_module ); } 一度に把握するにはちょっと量が多いですが、前の章よりはとっつきやすくなっていることと思います。 ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
C API Extension Support for Free Threading — Python 3.14.8 ドキュメント 8860
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » C API Extension Support for Free Threading テーマ 自動 ライト ダーク | C API Extension Support for Free Threading ¶ Starting with the 3.13 release ... i-phase or single-phase initialization. Multi-Phase Initialization ¶ Extensions that use multi-phase initialization (i.e., PyModuleDef_Init() ) should add a Py_mod_gil slot in the module definition. If your extension supports older versions of CPython, you ... should guard the slot with a PY_VERSION_HEX check. static struct PyModuleDef_Slot module_slots [] = { ... #if PY_VERSION_HEX >= 0x030D0000 { Py_mod_gil , Py_MOD_GIL_NOT_USED }, #endif { 0 , NULL } }; ... static struct PyModuleDef moduledef = { PyModuleDef_HEAD_INIT , . m_slots = module_slots , ... }; Single-Phase Initialization ¶ Extensions that use ...
https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
C API Extension Support for Free Threading — Python 3.14.8 ドキュメント 8860
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » C API Extension Support for Free Threading テーマ 自動 ライト ダーク | C API Extension Support for Free Threading ¶ Starting with the 3.13 release ... i-phase or single-phase initialization. Multi-Phase Initialization ¶ Extensions that use multi-phase initialization (i.e., PyModuleDef_Init() ) should add a Py_mod_gil slot in the module definition. If your extension supports older versions of CPython, you ... should guard the slot with a PY_VERSION_HEX check. static struct PyModuleDef_Slot module_slots [] = { ... #if PY_VERSION_HEX >= 0x030D0000 { Py_mod_gil , Py_MOD_GIL_NOT_USED }, #endif { 0 , NULL } }; ... static struct PyModuleDef moduledef = { PyModuleDef_HEAD_INIT , . m_slots = module_slots , ... }; Single-Phase Initialization ¶ Extensions that use ...
https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
索引 — Python 3.14.8 ドキュメント 8166
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – P p (pdb command) P_ALL (os モジュール) P_DETACH (os モジュール) P_NOWAIT (os モジュール) P_NOWAITO (os モジュール) P_OVERLAY (os モジ ... nction) PyModule_New (C function) PyModule_NewObject (C function) PyModule_SetDocString (C function) PyModule_Type (C var) PyModuleDef (C type) PyModuleDef.m_base (C member) PyModuleDef.m_clear (C member) PyModuleDef.m_doc (C member) PyModuleDef.m_free (C m ... ember) PyModuleDef.m_methods (C member) PyModuleDef.m_name (C member) PyModuleDef.m_size (C member) PyModuleDef.m_slots (C member) PyModuleDe ... f.m_slots.m_reload (C member) PyModuleDef.m_traverse (C member) PyModuleDef_Init (C function) PyModuleDef_Slot (C type) PyModuleDef_Slot.slot (C member) PyModuleDef ...
https://man.mtool.work/python/3.14/genindex-P.html
索引 — Python 3.14.8 ドキュメント 8166
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – P p (pdb command) P_ALL (os モジュール) P_DETACH (os モジュール) P_NOWAIT (os モジュール) P_NOWAITO (os モジュール) P_OVERLAY (os モジ ... nction) PyModule_New (C function) PyModule_NewObject (C function) PyModule_SetDocString (C function) PyModule_Type (C var) PyModuleDef (C type) PyModuleDef.m_base (C member) PyModuleDef.m_clear (C member) PyModuleDef.m_doc (C member) PyModuleDef.m_free (C m ... ember) PyModuleDef.m_methods (C member) PyModuleDef.m_name (C member) PyModuleDef.m_size (C member) PyModuleDef.m_slots (C member) PyModuleDe ... f.m_slots.m_reload (C member) PyModuleDef.m_traverse (C member) PyModuleDef_Init (C function) PyModuleDef_Slot (C type) PyModuleDef_Slot.slot (C member) PyModuleDef ...
https://man.mtool.work/python/3.14/genindex-P.html
PREV 1 2 3 NEXT