Results of 1 - 8 of about 8 for myfunc (0.017 sec.)
- Logging クックブック — Python 3.14.8 ドキュメント 11350
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Logging クックブック テーマ 自動 ライト ダーク | Logging クックブック ¶ Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に
...例です: import logging import threading import time def worker ( arg ): while not arg [ 'stop' ]: logging . debug ( 'Hi from myfunc' ) time . sleep ( 0.5 ) def main (): logging . basicConfig ( level = logging . DEBUG , format = ' %(relativeCreated)6d %(t...break thread . join () if __name__ == '__main__' : main () 実行すると、出力は以下のようになるはずです: 0 Thread-1 Hi from myfunc 3 MainThread Hello from main 505 Thread-1 Hi from myfunc 755 MainThread Hello from main 1007 Thread-1 Hi from myfunc 1507...MainThread Hello from main 1508 Thread-1 Hi from myfunc 2010 Thread-1 Hi from myfunc 2258 MainThread Hello from main 2512 Thread-1 Hi from myfunc 3009 MainThread Hello from main... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html
- Logging クックブック — Python 3.14.8 ドキュメント 11350
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Logging クックブック テーマ 自動 ライト ダーク | Logging クックブック ¶ Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に
...例です: import logging import threading import time def worker ( arg ): while not arg [ 'stop' ]: logging . debug ( 'Hi from myfunc' ) time . sleep ( 0.5 ) def main (): logging . basicConfig ( level = logging . DEBUG , format = ' %(relativeCreated)6d %(t...break thread . join () if __name__ == '__main__' : main () 実行すると、出力は以下のようになるはずです: 0 Thread-1 Hi from myfunc 3 MainThread Hello from main 505 Thread-1 Hi from myfunc 755 MainThread Hello from main 1007 Thread-1 Hi from myfunc 1507...MainThread Hello from main 1508 Thread-1 Hi from myfunc 2010 Thread-1 Hi from myfunc 2258 MainThread Hello from main 2512 Thread-1 Hi from myfunc 3009 MainThread Hello from main... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html
- dis --- Python バイトコードの逆アセンブラー — Python 3.14.8 ドキュメント 10537
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » dis --- Python バイトコードの逆アセンブラー テーマ 自動 ライト ダーク | dis --- Python バイトコードの逆アセンブ
...d-line option and the show_positions argument were added. The -S command-line option is added. Example: Given the function myfunc() : def myfunc ( alist ): return len ( alist ) the following command can be used to display the disassembly of myfunc() :...>>> dis . dis ( myfunc ) 2 RESUME 0 3 LOAD_GLOBAL 1 (len + NULL) LOAD_FAST_BORROW 0 (alist) CALL 1 RETURN_VALUE ("2" は行番号です)。 コマンドライ...the show_offsets parameter バージョン 3.14 で変更: Added the show_positions parameter. 例: >>> bytecode = dis . Bytecode ( myfunc ) >>> for instr in bytecode : ... print ( instr . opname ) ... RESUME LOAD_GLOBAL LOAD_FAST_BORROW CALL RETURN_VALUE 解析関... - https://man.mtool.work/python/3.14/library/dis.html
- dis --- Python バイトコードの逆アセンブラー — Python 3.14.8 ドキュメント 9742
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » dis --- Python バイトコードの逆アセンブラー テーマ 自動 ライト ダーク | dis --- Python バイトコードの逆アセンブ
...d-line option and the show_positions argument were added. The -S command-line option is added. Example: Given the function myfunc() : def myfunc ( alist ): return len ( alist ) the following command can be used to display the disassembly of myfunc() :...>>> dis . dis ( myfunc ) 2 RESUME 0 3 LOAD_GLOBAL 1 (len + NULL) LOAD_FAST_BORROW 0 (alist) CALL 1 RETURN_VALUE ("2" は行番号です)。 コマンドライ...the show_offsets parameter バージョン 3.14 で変更: Added the show_positions parameter. 例: >>> bytecode = dis . Bytecode ( myfunc ) >>> for instr in bytecode : ... print ( instr . opname ) ... RESUME LOAD_GLOBAL LOAD_FAST_BORROW CALL RETURN_VALUE 解析関... - https://man.mtool.work/python/3.14/library/dis.html
- re --- 正規表現操作 — Python 3.14.8 ドキュメント 7717
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » re --- 正規表現操作 テーマ 自動 ライト ダーク | re --- 正規表現操作 ¶ ソースコード: Lib/re/ このモジュールは
...yword argument or as a base value that will be conditionally ORed with other flags. Example of use as a default value: def myfunc ( text , flag = re . NOFLAG ): return re . match ( text , flag ) Added in version 3.11. re. S ¶ re. DOTALL ¶ 特殊文字 '.'...例えば: >>> re . sub ( r 'def\s+([a-zA-Z_][a-zA-Z_0-9]*)\s*\(\s*\):' , ... r 'static PyObject*\npy_\1(void)\n{' , ... 'def myfunc():' ) 'static PyObject*\npy_myfunc(void)\n{' もし repl が関数であれば、重複しない pattern が発生するたびにその関数が呼ばれ... - https://man.mtool.work/python/3.14/library/re.html
- re --- 正規表現操作 — Python 3.14.8 ドキュメント 7717
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » re --- 正規表現操作 テーマ 自動 ライト ダーク | re --- 正規表現操作 ¶ ソースコード: Lib/re/ このモジュールは
...yword argument or as a base value that will be conditionally ORed with other flags. Example of use as a default value: def myfunc ( text , flag = re . NOFLAG ): return re . match ( text , flag ) Added in version 3.11. re. S ¶ re. DOTALL ¶ 特殊文字 '.'...例えば: >>> re . sub ( r 'def\s+([a-zA-Z_][a-zA-Z_0-9]*)\s*\(\s*\):' , ... r 'static PyObject*\npy_\1(void)\n{' , ... 'def myfunc():' ) 'static PyObject*\npy_myfunc(void)\n{' もし repl が関数であれば、重複しない pattern が発生するたびにその関数が呼ばれ... - https://man.mtool.work/python/3.14/library/re.html
- プログラミング FAQ — Python 3.14.8 ドキュメント 6904
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python よくある質問 » プログラミング FAQ テーマ 自動 ライト ダーク | プログラミング FAQ ¶ 一般的な質問 ¶ ブレークポイントやステップ実行ができる、ソースコードレベ
...: ... def do_bar ( self ): ... f = getattr ( foo_instance , 'do_' + opname ) f () locals() を使って関数名を決める方法: def myFunc (): print ( "hello" ) fname = "myFunc" f = locals ()[ fname ] f () 文字列から後端の改行を取り除く Perl の chomp() に相当す... - https://man.mtool.work/python/3.14/faq/programming.html
- プログラミング FAQ — Python 3.14.8 ドキュメント 6904
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python よくある質問 » プログラミング FAQ テーマ 自動 ライト ダーク | プログラミング FAQ ¶ 一般的な質問 ¶ ブレークポイントやステップ実行ができる、ソースコードレベ
...: ... def do_bar ( self ): ... f = getattr ( foo_instance , 'do_' + opname ) f () locals() を使って関数名を決める方法: def myFunc (): print ( "hello" ) fname = "myFunc" f = locals ()[ fname ] f () 文字列から後端の改行を取り除く Perl の chomp() に相当す... - https://man.mtool.work/python/3.14/faq/programming.html
PREV
1
NEXT