per page, with , order by , clip by
Results of 1 - 10 of about 446 for Print (0.013 sec.)
traceback --- スタックトレースの表示または取得 — Python 3.14.8 ドキュメント 8210
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » traceback --- スタックトレースの表示または取得 テーマ 自動 ライト ダーク | traceback --- スタックトレー ... スの表示または取得 ¶ ソースコード: Lib/traceback.py This module provides a standard interface to extract, format and print stack traces of Python programs. It is more flexible than the interpreter's default traceback display, and therefore makes ... igure certain aspects of the output. Finally, it contains a utility for capturing enough information about an exception to print it later, without the need to save a reference to the actual exception. Since exceptions can be the roots of large objects ... 13: Output is colorized by default and can be controlled using environment variables . モジュールレベルの関数 ¶ traceback. print_tb ( tb , limit = None , file = None ) ¶ Print up to limit stack trace entries from traceback object tb (starting from the ...
https://man.mtool.work/python/3.14/library/traceback.html
traceback --- スタックトレースの表示または取得 — Python 3.14.8 ドキュメント 8210
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » traceback --- スタックトレースの表示または取得 テーマ 自動 ライト ダーク | traceback --- スタックトレー ... スの表示または取得 ¶ ソースコード: Lib/traceback.py This module provides a standard interface to extract, format and print stack traces of Python programs. It is more flexible than the interpreter's default traceback display, and therefore makes ... igure certain aspects of the output. Finally, it contains a utility for capturing enough information about an exception to print it later, without the need to save a reference to the actual exception. Since exceptions can be the roots of large objects ... 13: Output is colorized by default and can be controlled using environment variables . モジュールレベルの関数 ¶ traceback. print_tb ( tb , limit = None , file = None ) ¶ Print up to limit stack trace entries from traceback object tb (starting from the ...
https://man.mtool.work/python/3.14/library/traceback.html
multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 7714
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶ ... using Pool , from multiprocessing import Pool def f ( x ): return x * x if __name__ == '__main__' : with Pool ( 5 ) as p : print ( p . map ( f , [ 1 , 2 , 3 ])) 標準出力に以下が出力されます: [ 1 , 4 , 9 ] The multiprocessing module also introduces API ... I of threading.Thread . A trivial example of a multiprocess program is from multiprocessing import Process def f ( name ): print ( 'hello' , name ) if __name__ == '__main__' : p = Process ( target = f , args = ( 'bob' ,)) p . start () p . join () 実行 ... を表示するために拡張したサンプルコードを以下に示します: from multiprocessing import Process import os def info ( title ): print ( title ) print ( 'module name:' , __name__ ) print ( 'parent process:' , os . getppid ()) print ( 'process id:' , os . ge ...
https://man.mtool.work/python/3.14/library/multiprocessing.html
multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 7714
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶ ... using Pool , from multiprocessing import Pool def f ( x ): return x * x if __name__ == '__main__' : with Pool ( 5 ) as p : print ( p . map ( f , [ 1 , 2 , 3 ])) 標準出力に以下が出力されます: [ 1 , 4 , 9 ] The multiprocessing module also introduces API ... I of threading.Thread . A trivial example of a multiprocess program is from multiprocessing import Process def f ( name ): print ( 'hello' , name ) if __name__ == '__main__' : p = Process ( target = f , args = ( 'bob' ,)) p . start () p . join () 実行 ... を表示するために拡張したサンプルコードを以下に示します: from multiprocessing import Process import os def info ( title ): print ( title ) print ( 'module name:' , __name__ ) print ( 'parent process:' , os . getppid ()) print ( 'process id:' , os . ge ...
https://man.mtool.work/python/3.14/library/multiprocessing.html
ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 7681
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as ... ule's 文 (Statements) . type_ignores is a list of the module's type ignore comments; see ast.parse() for more details. >>> print ( ast . dump ( ast . parse ( 'x = 1' ), indent = 4 )) Module( body=[ Assign( targets=[ Name(id='x', ctx=Store())], value=C ... input . Node type generated by ast.parse() when mode is "eval" . body is a single node, one of the expression types . >>> print ( ast . dump ( ast . parse ( '123' , mode = 'eval' ), indent = 4 )) Expression( body=Constant(value=123)) class ast. Inter ... , like in 対話モード . Node type generated by ast.parse() when mode is "single" . body is a list of statement nodes . >>> print ( ast . dump ( ast . parse ( 'x = 1; y = 2' , mode = 'single' ), indent = 4 )) Interactive( body=[ Assign( targets=[ Name( ...
https://man.mtool.work/python/3.14/library/ast.html
ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 7681
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as ... ule's 文 (Statements) . type_ignores is a list of the module's type ignore comments; see ast.parse() for more details. >>> print ( ast . dump ( ast . parse ( 'x = 1' ), indent = 4 )) Module( body=[ Assign( targets=[ Name(id='x', ctx=Store())], value=C ... input . Node type generated by ast.parse() when mode is "eval" . body is a single node, one of the expression types . >>> print ( ast . dump ( ast . parse ( '123' , mode = 'eval' ), indent = 4 )) Expression( body=Constant(value=123)) class ast. Inter ... , like in 対話モード . Node type generated by ast.parse() when mode is "single" . body is a list of statement nodes . >>> print ( ast . dump ( ast . parse ( 'x = 1; y = 2' , mode = 'single' ), indent = 4 )) Interactive( body=[ Assign( targets=[ Name( ...
https://man.mtool.work/python/3.14/library/ast.html
4. その他の制御フローツール — Python 3.14.8 ドキュメント 7615
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 4. その他の制御フローツール テーマ 自動 ライト ダーク | 4. その他の制御フローツール ¶ 前章で紹介した while 文の他にも、 Python にはいくつ ... ょう。例えば: >>> x = int ( input ( "Please enter an integer: " )) Please enter an integer: 42 >>> if x < 0 : ... x = 0 ... print ( 'Negative changed to zero' ) ... elif x == 0 : ... print ( 'Zero' ) ... elif x == 1 : ... print ( 'Single' ) ... else : ... ... print ( 'More' ) ... More ゼロ個以上の elif 部を使うことができ、 else 部を付けることもできます。キーワード ' elif ' は 'else if' ... 現れる順番です。例えば: >>> # 文字列の長さを計測: >>> words = [ 'cat' , 'window' , 'defenestrate' ] >>> for w in words : ... print ( w , len ( w )) ... cat 3 window 6 defenestrate 12 コレクションオブジェクトの値を反復処理をしているときに、そのコレクショ ...
https://man.mtool.work/python/3.14/tutorial/controlflow.html
4. その他の制御フローツール — Python 3.14.8 ドキュメント 7615
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 4. その他の制御フローツール テーマ 自動 ライト ダーク | 4. その他の制御フローツール ¶ 前章で紹介した while 文の他にも、 Python にはいくつ ... ょう。例えば: >>> x = int ( input ( "Please enter an integer: " )) Please enter an integer: 42 >>> if x < 0 : ... x = 0 ... print ( 'Negative changed to zero' ) ... elif x == 0 : ... print ( 'Zero' ) ... elif x == 1 : ... print ( 'Single' ) ... else : ... ... print ( 'More' ) ... More ゼロ個以上の elif 部を使うことができ、 else 部を付けることもできます。キーワード ' elif ' は 'else if' ... 現れる順番です。例えば: >>> # 文字列の長さを計測: >>> words = [ 'cat' , 'window' , 'defenestrate' ] >>> for w in words : ... print ( w , len ( w )) ... cat 3 window 6 defenestrate 12 コレクションオブジェクトの値を反復処理をしているときに、そのコレクショ ...
https://man.mtool.work/python/3.14/tutorial/controlflow.html
timer file descriptor HOWTO — Python 3.14.8 ドキュメント 7086
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » timer file descriptor HOWTO テーマ 自動 ライト ダーク | timer file descriptor HOWTO ¶ リリース : 1.13 This HOWTO discusses Python's support for th ... rocess timer events four times. for _ in range ( 4 ): # read() will block until the timer expires _ = os . read ( fd , 8 ) print ( "Timer expired" ) finally : # Remember to close the timer file descriptor! os . close ( fd ) To avoid the precision loss ... d more than once since # the last os.read() call, os.read() returns the number of signaled # as host order of class bytes. print ( f "Signaled events= { events } " ) for fd , event in events : if event & select . EPOLLIN : if fd == sock . fileno (): # ... Check if there is a connection request. print ( f "Accepting connection { fd } " ) conn , addr = sock . accept () conn . setblocking ( False ) print ( f "Accepted conne ...
https://man.mtool.work/python/3.14/howto/timerfd.html
timer file descriptor HOWTO — Python 3.14.8 ドキュメント 7086
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » timer file descriptor HOWTO テーマ 自動 ライト ダーク | timer file descriptor HOWTO ¶ リリース : 1.13 This HOWTO discusses Python's support for th ... rocess timer events four times. for _ in range ( 4 ): # read() will block until the timer expires _ = os . read ( fd , 8 ) print ( "Timer expired" ) finally : # Remember to close the timer file descriptor! os . close ( fd ) To avoid the precision loss ... d more than once since # the last os.read() call, os.read() returns the number of signaled # as host order of class bytes. print ( f "Signaled events= { events } " ) for fd , event in events : if event & select . EPOLLIN : if fd == sock . fileno (): # ... Check if there is a connection request. print ( f "Accepting connection { fd } " ) conn , addr = sock . accept () conn . setblocking ( False ) print ( f "Accepted conne ...
https://man.mtool.work/python/3.14/howto/timerfd.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT