per page, with , order by , clip by
Results of 1 - 4 of about 4 for CalledProcessError (0.008 sec.)
subprocess --- サブプロセス管理 12426
subprocess --- サブプロセス管理 ソースコード: Lib/subprocess.py subprocess モジュールでは、新しいプロセスを生成し、その標準入力、標準出力、標準エラー出力のパイプに接続して、終了コードを取得できます。 このモジュールは、次のような古いモジュー ... して自動的に作成されるため、 stdin 引数は併用できません。 check に真を指定した場合、プロセスが非ゼロの終了コードで終了すると CalledProcessError 例外が送出されます。 この例外の属性には、引数、終了コード、標準出力および標準エラー出力が捕捉できた場合に格納されます。 en ... ncode=0) >>> subprocess . run ( "exit 1" , shell = True , check = True ) Traceback (most recent call last): ... subprocess.CalledProcessError : Command 'exit 1' returned non-zero exit status 1 >>> subprocess . run ([ "ls" , "-l" , "/dev/null" ], capture_output = T ... た場合は文字列になります。 標準エラー出力を捕捉していない場合は None です。 check_returncode ( ) returncode が非ゼロの場合、 CalledProcessError が送出されます。 Added in version 3.5. subprocess. DEVNULL Popen の stdin , stdout , stderr 引数に渡して、標準入出力を os. ...
https://man.mtool.work/python/3.14/library/subprocess.html
What's New in Python 2.7 8358
What's New in Python 2.7 著者 : A.M. Kuchling (amk at amk.ca) この文書は Python 2.7 の新機能について解説します。Python 2.7 は 2010 年 7 月 3 日にリリースされました。 数値周りの扱いが、浮動小数点数でも Decimal クラスでもいろいろな点で改良され ... 、指定された引数群でコマンドを実行し、コマンドがエラーを起こさずに実行したらコマンドの出力を文字列として返し、そうでなければ CalledProcessError 例外を送出します。 >>> subprocess . check_output ([ 'df' , '-h' , '.' ]) 'Filesystem Size Used Avail Capacity Mounted on\n ... /dev/disk0s2 52G 49G 3.0G 94% /\n' >>> subprocess . check_output ([ 'df' , '-h' , '/bogus' ]) ... subprocess.CalledProcessError: Command '['df', '-h', '/bogus']' returned non-zero exit status 1 (Contributed by Gregory P. Smith.) The subprocess module ...
https://man.mtool.work/python/3.14/whatsnew/2.7.html
What's New In Python 3.5 8081
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日にリリースされました。 全詳細につい ... ncode=0) >>> subprocess . run ( "exit 1" , shell = True , check = True ) Traceback (most recent call last): ... subprocess.CalledProcessError : Command 'exit 1' returned non-zero exit status 1 >>> subprocess . run ([ "ls" , "-l" , "/dev/null" ], stdout = subproces ...
https://man.mtool.work/python/3.14/whatsnew/3.5.html
変更履歴 8081
変更履歴 次の 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 : c ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
PREV 1 NEXT