Results of 1 - 10 of about 183 for script (0.005 sec.)
- Python 開発モード — Python 3.14.8 ドキュメント 10906
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » Python 開発モード テーマ 自動 ライト ダーク | Python 開発モード ¶ Added in version 3.7. The Python Development Mode in
...ding and errors arguments are now checked for string encoding and decoding operations. ResourceWarning の例 ¶ Example of a script counting the number of lines of the text file specified in the command line: import sys def main (): fp = open ( sys . arg...nlines = len ( fp . readlines ()) print ( nlines ) # ファイルは暗黙的に閉じられる if __name__ == "__main__" : main () The script does not close the file explicitly. By default, Python does not emit any warning. Example using README.txt, which has 269...lines: $ python script.py README.txt 269 Enabling the Python Development Mode displays a ResourceWarning warning: $ python -X dev script.py READM... - https://man.mtool.work/python/3.14/library/devmode.html
- Python 開発モード — Python 3.14.8 ドキュメント 10906
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » Python 開発モード テーマ 自動 ライト ダーク | Python 開発モード ¶ Added in version 3.7. The Python Development Mode in
...ding and errors arguments are now checked for string encoding and decoding operations. ResourceWarning の例 ¶ Example of a script counting the number of lines of the text file specified in the command line: import sys def main (): fp = open ( sys . arg...nlines = len ( fp . readlines ()) print ( nlines ) # ファイルは暗黙的に閉じられる if __name__ == "__main__" : main () The script does not close the file explicitly. By default, Python does not emit any warning. Example using README.txt, which has 269...lines: $ python script.py README.txt 269 Enabling the Python Development Mode displays a ResourceWarning warning: $ python -X dev script.py READM... - https://man.mtool.work/python/3.14/library/devmode.html
- Remote debugging attachment protocol — Python 3.14.8 ドキュメント 10089
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Remote debugging attachment protocol テーマ 自動 ライト ダーク | Remote debugging attachment protocol ¶ This protocol enables external tools to at
...efore proceeding. This section describes the low-level protocol that enables external tools to inject and execute a Python script within a running CPython process. This mechanism forms the basis of the sys.remote_exec() function, which instructs a remo...ports independent reimplementation of the protocol, regardless of programming language. 警告 The execution of the injected script depends on the interpreter reaching a safe evaluation point. As a result, execution may be delayed depending on the runtim...e state of the target process. Once injected, the script is executed by the interpreter within the target process the next time a safe evaluation point is reached. This approach e... - https://man.mtool.work/python/3.14/howto/remote_debugging.html
- Remote debugging attachment protocol — Python 3.14.8 ドキュメント 10089
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Remote debugging attachment protocol テーマ 自動 ライト ダーク | Remote debugging attachment protocol ¶ This protocol enables external tools to at
...efore proceeding. This section describes the low-level protocol that enables external tools to inject and execute a Python script within a running CPython process. This mechanism forms the basis of the sys.remote_exec() function, which instructs a remo...ports independent reimplementation of the protocol, regardless of programming language. 警告 The execution of the injected script depends on the interpreter reaching a safe evaluation point. As a result, execution may be delayed depending on the runtim...e state of the target process. Once injected, the script is executed by the interpreter within the target process the next time a safe evaluation point is reached. This approach e... - https://man.mtool.work/python/3.14/howto/remote_debugging.html
- pty --- 擬似端末ユーティリティ — Python 3.14.8 ドキュメント 8974
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Unix-specific services » pty --- 擬似端末ユーティリティ テーマ 自動 ライト ダーク | pty --- 擬似端末ユーティリティ ¶ ソースコード:
...led to the child if STDIN of the current process closes down. The functions master_read and stdin_read are passed a file descriptor which they should read from, and they should always return a byte string. In order to force spawn to return before the c...n up to 1024 bytes each time the function is called. The master_read callback is passed the pseudoterminal's master file descriptor to read output from the child process, and stdin_read is passed file descriptor 0, to read from the parent process's sta...: spawn() が os.waitpid() が返す子プロセスのステータス値を返すようになりました。 使用例 ¶ 下記のプログラムは Unix コマンド script(1) のように動作します。疑似端末を使用して、端末セッションのすべての入出力を "typescript" に記録します。 import argparse im... - https://man.mtool.work/python/3.14/library/pty.html
- pty --- 擬似端末ユーティリティ — Python 3.14.8 ドキュメント 8599
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Unix-specific services » pty --- 擬似端末ユーティリティ テーマ 自動 ライト ダーク | pty --- 擬似端末ユーティリティ ¶ ソースコード:
...led to the child if STDIN of the current process closes down. The functions master_read and stdin_read are passed a file descriptor which they should read from, and they should always return a byte string. In order to force spawn to return before the c...n up to 1024 bytes each time the function is called. The master_read callback is passed the pseudoterminal's master file descriptor to read output from the child process, and stdin_read is passed file descriptor 0, to read from the parent process's sta...: spawn() が os.waitpid() が返す子プロセスのステータス値を返すようになりました。 使用例 ¶ 下記のプログラムは Unix コマンド script(1) のように動作します。疑似端末を使用して、端末セッションのすべての入出力を "typescript" に記録します。 import argparse im... - https://man.mtool.work/python/3.14/library/pty.html
- Python support for the Linux perf profiler — Python 3.14.8 ドキュメント 8466
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Python support for the Linux perf profiler テーマ 自動 ライト ダーク | Python support for the Linux perf profiler ¶ author : Pablo Galindo The Lin
...of python -m sysconfig | grep HAVE_PERF_TRAMPOLINE to see if your system is supported. For example, consider the following script: def foo ( n ): result = 0 for _ in range ( n ): result += 1 return result def bar ( n ): foo ( n ) def baz ( n ): bar ( n...baz ( 1000000 ) We can run perf to sample CPU stack traces at 9999 hertz: $ perf record -F 9999 -g -o perf.data python my_script.py Then we can use perf report to analyze the data: $ perf report --stdio -n -g # Children Self Samples Command Shared Obj...t | | _PyRun_SimpleFileObject | | | | | |--53.62%--run_mod | | | | | | | --53.26%--PyEval_EvalCode | | | py::<module>:/src/script.py | | | _PyEval_EvalFrameDefault | | | PyObject_Vectorcall | | | _PyEval_Vector | | | py::baz:/src/script.py | | | _PyEva... - https://man.mtool.work/python/3.14/howto/perf_profiling.html
- Python support for the Linux perf profiler — Python 3.14.8 ドキュメント 8466
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Python support for the Linux perf profiler テーマ 自動 ライト ダーク | Python support for the Linux perf profiler ¶ author : Pablo Galindo The Lin
...of python -m sysconfig | grep HAVE_PERF_TRAMPOLINE to see if your system is supported. For example, consider the following script: def foo ( n ): result = 0 for _ in range ( n ): result += 1 return result def bar ( n ): foo ( n ) def baz ( n ): bar ( n...baz ( 1000000 ) We can run perf to sample CPU stack traces at 9999 hertz: $ perf record -F 9999 -g -o perf.data python my_script.py Then we can use perf report to analyze the data: $ perf report --stdio -n -g # Children Self Samples Command Shared Obj...t | | _PyRun_SimpleFileObject | | | | | |--53.62%--run_mod | | | | | | | --53.26%--PyEval_EvalCode | | | py::<module>:/src/script.py | | | _PyEval_EvalFrameDefault | | | PyObject_Vectorcall | | | _PyEval_Vector | | | py::baz:/src/script.py | | | _PyEva... - https://man.mtool.work/python/3.14/howto/perf_profiling.html
- test --- Regression tests package for Python — Python 3.14.8 ドキュメント 8411
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » test --- Regression tests package for Python テーマ 自動 ライト ダーク | test --- Regression tests package for Python
...法論に関する Kent Beck の著書。 コマンドラインインターフェースを利用してテストを実行する ¶ The test package can be run as a script to drive Python's regression test suite, thanks to the -m option: python -m test . Under the hood, it uses test.regrtest ;...the call python -m test.regrtest used in previous Python versions still works. Running the script by itself automatically starts running all regression tests in the test package. It does this by finding all modules in th...ittest.TestLoader.loadTestsFromModule if test_main does not exist. The names of tests to execute may also be passed to the script. Specifying a single regression test ( python -m test test_spam ) will minimize output and only print whether the test pas... - https://man.mtool.work/python/3.14/library/test.html
- test --- Regression tests package for Python — Python 3.14.8 ドキュメント 8411
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » test --- Regression tests package for Python テーマ 自動 ライト ダーク | test --- Regression tests package for Python
...法論に関する Kent Beck の著書。 コマンドラインインターフェースを利用してテストを実行する ¶ The test package can be run as a script to drive Python's regression test suite, thanks to the -m option: python -m test . Under the hood, it uses test.regrtest ;...the call python -m test.regrtest used in previous Python versions still works. Running the script by itself automatically starts running all regression tests in the test package. It does this by finding all modules in th...ittest.TestLoader.loadTestsFromModule if test_main does not exist. The names of tests to execute may also be passed to the script. Specifying a single regression test ( python -m test test_spam ) will minimize output and only print whether the test pas... - https://man.mtool.work/python/3.14/library/test.html