per page, with , order by , clip by
Results of 1 - 10 of about 19 for PyInit (0.007 sec.)
拡張モジュールの定義 — Python 3.14.8 ドキュメント 13233
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 拡張モジュールの定義 テーマ 自動 ライト ダーク | 拡張モジュールの定義 ¶ A C extension for CPython is a shared library (for exampl ... itialization function ¶ The initialization function defined by an extension module has the following signature: PyObject * PyInit_modulename ( void ) ¶ Its name should be PyInit_ <name> , with <name> replaced by the name of the module. For modules with ... ASCII-only names, the function must instead be named PyInit_ <name> , with <name> replaced by the name of the module. When using 多段階初期化 , non-ASCII module names are allowed. In ... this case, the initialization function name is PyInitU_ <name> , with <name> encoded using Python's punycode encoding with hyphens replaced by underscores. In Python: def initf ...
https://man.mtool.work/python/3.14/c-api/extension-modules.html
拡張モジュールの定義 — Python 3.14.8 ドキュメント 13233
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 拡張モジュールの定義 テーマ 自動 ライト ダーク | 拡張モジュールの定義 ¶ A C extension for CPython is a shared library (for exampl ... itialization function ¶ The initialization function defined by an extension module has the following signature: PyObject * PyInit_modulename ( void ) ¶ Its name should be PyInit_ <name> , with <name> replaced by the name of the module. For modules with ... ASCII-only names, the function must instead be named PyInit_ <name> , with <name> replaced by the name of the module. When using 多段階初期化 , non-ASCII module names are allowed. In ... this case, the initialization function name is PyInitU_ <name> , with <name> encoded using Python's punycode encoding with hyphens replaced by underscores. In Python: def initf ...
https://man.mtool.work/python/3.14/c-api/extension-modules.html
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 9049
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... oc = "Example module that creates an extension type." , . m_size = 0 , . m_slots = custom_module_slots , }; PyMODINIT_FUNC PyInit_custom ( void ) { return PyModuleDef_Init ( & custom_module ); } 一度に把握するにはちょっと量が多いですが、前の章よりはとっ ... 求されたときに、この関数ポインタをインタープリターが見に行きます。 How to define and execute the custom module: this is the PyInit_custom function and the associated custom_module struct for defining the module, and the custom_module_exec function to se ... oc = "Example module that creates an extension type." , . m_size = 0 , . m_slots = custom_module_slots , }; PyMODINIT_FUNC PyInit_custom2 ( void ) { return PyModuleDef_Init ( & custom_module ); } モジュールのこのバージョンでは、いくつもの変更をおこない ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 9049
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... oc = "Example module that creates an extension type." , . m_size = 0 , . m_slots = custom_module_slots , }; PyMODINIT_FUNC PyInit_custom ( void ) { return PyModuleDef_Init ( & custom_module ); } 一度に把握するにはちょっと量が多いですが、前の章よりはとっ ... 求されたときに、この関数ポインタをインタープリターが見に行きます。 How to define and execute the custom module: this is the PyInit_custom function and the associated custom_module struct for defining the module, and the custom_module_exec function to se ... oc = "Example module that creates an extension type." , . m_size = 0 , . m_slots = custom_module_slots , }; PyMODINIT_FUNC PyInit_custom2 ( void ) { return PyModuleDef_Init ( & custom_module ); } モジュールのこのバージョンでは、いくつもの変更をおこない ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
1. Extending Python with C or C++ — Python 3.14.8 ドキュメント 8862
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ... ModuleDef_HEAD_INIT , . m_name = "spam" , . m_size = 0 , // non-negative . m_slots = spam_module_slots , }; PyMODINIT_FUNC PyInit_spam ( void ) { return PyModuleDef_Init ( & spam_module ); } Note that the Python name for the exception object is spam.er ... turn, must be passed to the interpreter in the module's initialization function. The initialization function must be named PyInit_name() , where name is the name of the module, and should be the only non- static item defined in the module file: PyMODIN ... IT_FUNC PyInit_spam ( void ) { return PyModuleDef_Init ( & spam_module ); } Note that PyMODINIT_FUNC declares the function as PyObject * ...
https://man.mtool.work/python/3.14/extending/extending.html
1. Extending Python with C or C++ — Python 3.14.8 ドキュメント 8862
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ... ModuleDef_HEAD_INIT , . m_name = "spam" , . m_size = 0 , // non-negative . m_slots = spam_module_slots , }; PyMODINIT_FUNC PyInit_spam ( void ) { return PyModuleDef_Init ( & spam_module ); } Note that the Python name for the exception object is spam.er ... turn, must be passed to the interpreter in the module's initialization function. The initialization function must be named PyInit_name() , where name is the name of the module, and should be the only non- static item defined in the module file: PyMODIN ... IT_FUNC PyInit_spam ( void ) { return PyModuleDef_Init ( & spam_module ); } Note that PyMODINIT_FUNC declares the function as PyObject * ...
https://man.mtool.work/python/3.14/extending/extending.html
Windows 上の Python FAQ — Python 3.14.8 ドキュメント 8059
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python よくある質問 » Windows 上の Python FAQ テーマ 自動 ライト ダーク | Windows 上の Python FAQ ¶ Python プログラムを Windows で動かすにはどうしますか? ¶ これは ... い、.pyd ファイルは dll と同じようなものですが、少し違いがあります。 foo.pyd という名前の DLL があったとしたら、それには関数 PyInit_foo() が含まれていなければなりません。そうすれば Python で "import foo" を書けて、Python は foo.pyd (や foo.py、foo.pyc) を ... 探して、あれば、 PyInit_foo() を呼び出して初期化しようとします。Windows が DLL の存在を必要とするのと違い、.exe ファイルを foo.lib にリンクするわけ ...
https://man.mtool.work/python/3.14/faq/windows.html
1. 他のアプリケーションへの Python の埋め込み — Python 3.14.8 ドキュメント 7957
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 1. 他のアプリケーションへの Python の埋め込み テーマ 自動 ライト ダーク | 1. 他のアプリケーションへの Python の埋め込み ¶ 前 ... m_base = PyModuleDef_HEAD_INIT , . m_name = "emb" , . m_size = 0 , . m_methods = emb_module_methods , }; static PyObject * PyInit_emb ( void ) { return PyModuleDef_Init ( & emb_module ); } 上のコードを main() 関数のすぐ上に挿入します。また、以下の二つの ... 文を Py_Initialize() の呼び出しの前に挿入します: numargs = argc ; PyImport_AppendInittab ( "emb" , & PyInit_emb ); These two lines initialize the numargs variable, and make the emb.numargs() function accessible to the embedded Pyt ...
https://man.mtool.work/python/3.14/extending/embedding.html
1. 他のアプリケーションへの Python の埋め込み — Python 3.14.8 ドキュメント 7957
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 1. 他のアプリケーションへの Python の埋め込み テーマ 自動 ライト ダーク | 1. 他のアプリケーションへの Python の埋め込み ¶ 前 ... m_base = PyModuleDef_HEAD_INIT , . m_name = "emb" , . m_size = 0 , . m_methods = emb_module_methods , }; static PyObject * PyInit_emb ( void ) { return PyModuleDef_Init ( & emb_module ); } 上のコードを main() 関数のすぐ上に挿入します。また、以下の二つの ... 文を Py_Initialize() の呼び出しの前に挿入します: numargs = argc ; PyImport_AppendInittab ( "emb" , & PyInit_emb ); These two lines initialize the numargs variable, and make the emb.numargs() function accessible to the embedded Pyt ...
https://man.mtool.work/python/3.14/extending/embedding.html
Windows 上の Python FAQ — Python 3.14.8 ドキュメント 7957
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python よくある質問 » Windows 上の Python FAQ テーマ 自動 ライト ダーク | Windows 上の Python FAQ ¶ Python プログラムを Windows で動かすにはどうしますか? ¶ これは ... い、.pyd ファイルは dll と同じようなものですが、少し違いがあります。 foo.pyd という名前の DLL があったとしたら、それには関数 PyInit_foo() が含まれていなければなりません。そうすれば Python で "import foo" を書けて、Python は foo.pyd (や foo.py、foo.pyc) を ... 探して、あれば、 PyInit_foo() を呼び出して初期化しようとします。Windows が DLL の存在を必要とするのと違い、.exe ファイルを foo.lib にリンクするわけ ...
https://man.mtool.work/python/3.14/faq/windows.html
PREV 1 2 NEXT