Results of 1 - 7 of about 7 for returncode (0.006 sec.)
- subprocess --- サブプロセス管理 13268
- subprocess --- サブプロセス管理 ソースコード: Lib/subprocess.py subprocess モジュールでは、新しいプロセスを生成し、その標準入力、標準出力、標準エラー出力のパイプに接続して、終了コードを取得できます。 このモジュールは、次のような古いモジュー
...マッピングも使用できます。 例: >>> subprocess . run ([ "ls" , "-l" ]) # 出力を捕捉しない CompletedProcess(args=['ls', '-l'], returncode=0) >>> subprocess . run ( "exit 1" , shell = True , check = True ) Traceback (most recent call last): ... subprocess.Calle...subprocess . run ([ "ls" , "-l" , "/dev/null" ], capture_output = True ) CompletedProcess(args=['ls', '-l', '/dev/null'], returncode=0, stdout=b'crw-rw-rw- 1 root root 1, 3 Jan 23 16:23 /dev/null\n', stderr=b'') Added in version 3.5. バージョン 3.6 で変更...値。プロセスが終了したことを表します。 args プロセスを起動するときに使用された引数。1 個のリストか 1 個の文字列になります。 returncode 子プロセスの終了コード。一般に、終了ステータス 0 はプロセスが正常に終了したことを示します。 負の値 -N は子プロセスがシグナ... - https://man.mtool.work/python/3.14/library/subprocess.html
- サブプロセス 9760
- サブプロセス ソースコード: Lib/asyncio/subprocess.py , Lib/asyncio/base_subprocess.py このセクションはサブプロセスの生成と管理を行う高水準の async/await asyncio API について説明します。 以下は、 asyncio モジュールがどのようにシェルコマンドを
...= asyncio . subprocess . PIPE ) stdout , stderr = await proc . communicate () print ( f '[ { cmd !r} exited with { proc . returncode } ]' ) if stdout : print ( f '[stdout] \n { stdout . decode () } ' ) if stderr : print ( f '[stderr] \n { stderr . decode...ド安全ではありません 。 サブプロセスとスレッド 節も参照してください。 async wait ( ) 子プロセスが終了するのを待ち受けます。 returncode 属性を設定し、その値を返します。 注釈 stdout=PIPE または stderr=PIPE を使う場合、子プロセスが大量に出力して OS のパイプバッ...セスのプロセス番号 (PID) です。 create_subprocess_shell() 関数で作成したプロセスでは、この属性は起動したシェルの PID です。 returncode プロセスが終了した時の終了ステータスを返します。 この属性が None であることは、プロセスがまだ終了していないことを示していま... - https://man.mtool.work/python/3.14/library/asyncio-subprocess.html
- 低水準の API インデックス 8342
- 低水準の API インデックス このページでは低水準の asyncio API を全てリストしています。 イベントループの取得 asyncio.get_running_loop() 実行中のイベントループを取得するために 利用が推奨される 関数です。 asyncio.get_event_loop() 実行中のイベン
...信パイプ (標準入力 stdin , 標準出力 stdout , または標準エラー出力 stderr ) のためのトランスポートを返します。 transport.get_returncode() サブプロセスの終了ステータスを返します。 transport.kill() サブプロセスを強制終了 (kill) します。 transport.send_signal()... - https://man.mtool.work/python/3.14/library/asyncio-llapi-index.html
- トランスポートとプロトコル 8342
- トランスポートとプロトコル まえがき トランスポートとプロトコルは loop.create_connection() のような 低水準の イベントループ API から使われます。これらはコールバックに基づくプログラミングスタイルを使うことでネットワークや IPC プロトコル (HTTP
...トランスポート。 サブプロセスの作成時に stderr=PIPE を指定していなければ None 。 その他の fd : None SubprocessTransport. get_returncode ( ) サブプロセスのリターンコードを整数で返します。サブプロセスがリターンしなかった場合は None を返します。 subprocess.Pope...n.returncode 属性と同じです。 SubprocessTransport. kill ( ) サブプロセスを強制終了 (kill) します。 POSIX システムでは、この関数はサブプ... - https://man.mtool.work/python/3.14/library/asyncio-protocol.html
- What's New In Python 3.5 8179
- What's New In Python 3.5 エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yury Selivanov < yury @ magic . io > この記事では 3.4 と比較した Python 3.5 の新機能を解説します。 Python 3.5 は2015年9月13日にリリースされました。 全詳細につい
...er in bpo-23342 .) 例: >>> subprocess . run ([ "ls" , "-l" ]) # 出力をキャプチャしない CompletedProcess(args=['ls', '-l'], returncode=0) >>> subprocess . run ( "exit 1" , shell = True , check = True ) Traceback (most recent call last): ... subprocess.Calle...rocess . run ([ "ls" , "-l" , "/dev/null" ], stdout = subprocess . PIPE ) CompletedProcess(args=['ls', '-l', '/dev/null'], returncode=0, stdout=b'crw-rw-rw- 1 root root 1, 3 Jan 23 16:23 /dev/null\n') sys 新しい set_coroutine_wrapper() 関数で、 async def 関... - https://man.mtool.work/python/3.14/whatsnew/3.5.html
- What's New In Python 3.8 7815
- What's New In Python 3.8 編集者 : Raymond Hettinger この記事では Python 3.7 と比較した Python 3.8 の新機能を解説します。 Python 3.8 は 2019 年 10 月 14 日にリリースされました。 詳しくは 変更履歴 を参照してください。 概要 -- リリースハイライ
...en コンストラクタは、「プログラムが見つからない」などのエラーで例外を送出しなくなりました。 代わりに子プロセスがゼロ以外の returncode で失敗します。 (Contributed by Joannah Nanjekye and Victor Stinner in bpo-35537 .) subprocess.Popen の preexec_fn 引数はサ... - https://man.mtool.work/python/3.14/whatsnew/3.8.html
- 変更履歴 7815
- 変更履歴 次の Python バージョン リリース日: XXXX-XX-XX セキュリティ gh-160499 : Fix unbounded memory growth in asyncio TLS connections when a peer stops reading but keeps sending records that make OpenSSL generate its own replies (such as T
...ログ出力中のエラーと同様に logging.raiseExceptions を適用するようになりました。 gh-153970 : subprocess.CalledProcessError の returncode が None など整数でない場合も、 str() を呼び出して TypeError が送出されることはなくなりました。 gh-153005 : concurrent.inte... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
PREV
1
NEXT