Results of 1 - 6 of about 6 for argc (0.005 sec.)
- インタープリタの初期化と終了処理 11095
- インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP
...次に属します: Stable ABI . この関数は Py_FinalizeEx() の後方互換性バージョンで、戻り値がありません。 int Py_BytesMain ( int argc , char * * argv ) 次に属します: Stable ABI (バージョン 3.8 より). Py_Main() と同様ですが、 argv はバイト文字列の配列です。...出し元のアプリケーションは、テキストのデコードを CPython ランタイムに任せられます。 Added in version 3.8. int Py_Main ( int argc , wchar_t * * argv ) 次に属します: Stable ABI . 標準インタープリタのメインプログラムです。 初期化から終了処理までの一連の処...イムを組み込むだけでなく、CPython の完全なコマンドラインインターフェースをサポートしたいプログラムのために提供されています。 argc と argv 引数は、C プログラムの main() 関数に渡すものに似ていますが、 argv の各要素をあらかじめ Py_DecodeLocale() で wchar_... - https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html
- 1. 他のアプリケーションへの Python の埋め込み 11095
- 1. 他のアプリケーションへの Python の埋め込み 前章では、 Python を拡張する方法、すなわち C 関数のライブラリを Python に結びつけて機能を拡張する方法について述べました。同じようなことを別の方法でも実行できます: それは、自分の C/C++ アプリケー
...れは、一つのファイル上で何らかの操作を実現するのに利用できます。 #define PY_SSIZE_T_CLEAN #include <Python.h> int main ( int argc , char * argv []) { PyStatus status ; PyConfig config ; PyConfig_InitPythonConfig ( & config ); /* 省略可能だが推奨 */ sta...定義されている関数を実行するためのコードは以下のようになります: #define PY_SSIZE_T_CLEAN #include <Python.h> int main ( int argc , char * argv []) { PyObject * pName , * pModule , * pFunc ; PyObject * pArgs , * pValue ; int i ; if ( argc < 3 ) { fprin...String ( pModule , argv [ 2 ]); /* pFunc は新しい参照 */ 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_DECR... - https://man.mtool.work/python/3.14/extending/embedding.html
- dis --- Python バイトコードの逆アセンブラー 9962
- dis --- Python バイトコードの逆アセンブラー ソースコード: Lib/dis.py dis モジュールは、CPython の bytecode を逆アセンブルして解析するためのものです。 このモジュールが入力として受け取る CPython のバイトコードは Include/opcode.h で定義され、コ
...ます。 これにより、クロージャの呼び出し元で特別なコードを用意する必要がなくなります。 Added in version 3.11. RAISE_VARARGS ( argc ) argc の値に応じて、 raise 文の 3 つの形式のいずれかで例外を送出します: 0: raise (直前の例外を再送出) 1: raise STACK[-1]...raise STACK[-2] from STACK[-1] ( __cause__ を STACK[-1] に設定し、 STACK[-2] の例外インスタンスまたは例外型を送出) CALL ( argc ) argc で指定した数の引数で呼び出し可能オブジェクトを呼び出します。 スタックには下から上の順に次のものがあります: 呼び出し...可能オブジェクト self または NULL 残りの位置引数 argc は self を除いた位置引数の総数です。 CALL はすべての引数と呼び出し可能オブジェクトをスタックからポップし、それらの引数でオ... - https://man.mtool.work/python/3.14/library/dis.html
- Python 初期化設定 9194
- Python 初期化設定 PyInitConfig C API Added in version 3.14. Python は Py_InitializeFromInitConfig() で初期化できます。 Py_RunMain() 関数は、カスタマイズされた Python プログラムを書くために使用できます。 Initialization, Finalization, and Thr
...さい。 参考 PEP 587 "Python 初期化設定" 使用例 常に隔離モードで実行するようカスタマイズした Python の例です。 int main ( int argc , char ** argv ) { PyStatus status ; PyConfig config ; PyConfig_InitPythonConfig ( & config ); config . isolated = 1 ; /*...マンドライン引数をデコードする。 Python を暗黙に事前初期化する (隔離モード)。 */ status = PyConfig_SetBytesArgv ( & config , argc , argv ); if ( PyStatus_Exception ( status )) { goto exception ; } status = Py_InitializeFromConfig ( & config ); if ( PyS...= PyMem_RawMalloc ( size ); if ( * ptr == NULL ) { return PyStatus_NoMemory (); } return PyStatus_Ok (); } int main ( int argc , char ** argv ) { void * ptr ; PyStatus status = alloc ( & ptr , 16 ); if ( PyStatus_Exception ( status )) { Py_ExitStatu... - https://man.mtool.work/python/3.14/c-api/init_config.html
- 1. Extending Python with C or C++ 6726
- 1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec
...endInittab() , optionally followed by an import of the module: #define PY_SSIZE_T_CLEAN #include <Python.h> int main ( int argc , char * argv []) { PyStatus status ; PyConfig config ; PyConfig_InitPythonConfig ( & config ); /* Add a built-in module,... - https://man.mtool.work/python/3.14/extending/extending.html
- 1. コマンドラインと環境 6726
- 1. コマンドラインと環境 CPython インタプリタはコマンドラインと環境を読み取って様々な設定を行ないます。 ほかの実装では、コマンドラインの形式が異なる場合があります。 関連情報は 別のPythonの実装 を参照してください。 1.1. コマンドライン Python
...す。 Added in version 3.13. 他のマニュアルの関連ページ PHP reserved.variables.argv Linux JM script(1) PHP reserved.variables.argc PHP features.commandline.usage PHP features.commandline.differences Linux JM stdin(3)... - https://man.mtool.work/python/3.14/using/cmdline.html
PREV
1
NEXT