Results of 1 - 2 of about 2 for pArgs (0.001 sec.)
- 1. 他のアプリケーションへの Python の埋め込み — Python 3.14.8 ドキュメント 11228
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 1. 他のアプリケーションへの Python の埋め込み テーマ 自動 ライト ダーク | 1. 他のアプリケーションへの Python の埋め込み ¶ 前
...ZE_T_CLEAN #include <Python.h> int main ( int argc , char * argv []) { PyObject * pName , * pModule , * pFunc ; PyObject * pArgs , * pValue ; int i ; if ( argc < 3 ) { fprintf ( stderr , "Usage: call pythonfile funcname [args] \n " ); return 1 ; } Py_...PyObject_GetAttrString ( pModule , argv [ 2 ]); /* pFunc is a new reference */ if ( pFunc && PyCallable_Check ( pFunc )) { pArgs = PyTuple_New ( argc - 3 ); for ( i = 0 ; i < argc - 3 ; ++ i ) { pValue = PyLong_FromLong ( atoi ( argv [ i + 3 ])); if (...! pValue ) { Py_DECREF ( pArgs ); Py_DECREF ( pModule ); fprintf ( stderr , "Cannot convert argument \n " ); return 1 ; } /* pValue reference stolen here... - https://man.mtool.work/python/3.14/extending/embedding.html
- 1. 他のアプリケーションへの Python の埋め込み — Python 3.14.8 ドキュメント 7485
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 1. 他のアプリケーションへの Python の埋め込み テーマ 自動 ライト ダーク | 1. 他のアプリケーションへの Python の埋め込み ¶ 前
...ZE_T_CLEAN #include <Python.h> int main ( int argc , char * argv []) { PyObject * pName , * pModule , * pFunc ; PyObject * pArgs , * pValue ; int i ; if ( argc < 3 ) { fprintf ( stderr , "Usage: call pythonfile funcname [args] \n " ); return 1 ; } Py_...PyObject_GetAttrString ( pModule , argv [ 2 ]); /* pFunc is a new reference */ if ( pFunc && PyCallable_Check ( pFunc )) { pArgs = PyTuple_New ( argc - 3 ); for ( i = 0 ; i < argc - 3 ; ++ i ) { pValue = PyLong_FromLong ( atoi ( argv [ i + 3 ])); if (...! pValue ) { Py_DECREF ( pArgs ); Py_DECREF ( pModule ); fprintf ( stderr , "Cannot convert argument \n " ); return 1 ; } /* pValue reference stolen here... - https://man.mtool.work/python/3.14/extending/embedding.html
PREV
1
NEXT