per page, with , order by , clip by
Results of 1 - 10 of about 15 for started (0.008 sec.)
Logging クックブック 12905
Logging クックブック Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に有用であるとされていた、logging に関連するいくつものレシピを含んでいます。チュートリアルやリファレンス情報へのリンクについては その他のリソース ... _request . set ( request ) ctx_appname . set ( self . name ) self . num_requests += 1 logger . debug ( 'Request processing started' ) webapplib . useful () logger . debug ( 'Request processing finished' ) def main (): fn = os . path . splitext ( os . pa ... g-contextual-webapp$ head -3 app1.log Thread-3 ( process_request ) app1 __main__ jim 192 .168.3.21 POST Request processing started Thread-3 ( process_request ) app1 webapplib jim 192 .168.3.21 POST Hello from webapplib! Thread-5 ( process_request ) app1 ... __main__ jim 192 .168.3.21 POST Request processing started ~/logging-contextual-webapp$ head -3 app2.log Thread-1 ( process_request ) app2 __main__ sheila 192 .168.2.21 GET Request ...
https://man.mtool.work/python/3.14/howto/logging-cookbook.html
ライブラリと拡張 FAQ 10989
ライブラリと拡張 FAQ ライブラリ一般の質問 作業 X を行うためのモジュールやアプリケーションを探すにはどうしますか? ライブラリリファンレス から関係がありそうな標準ライブラリモジュールがあるかどうか調べてください。 (標準ライブラリに何があるかが ... : Running worker Running worker Running worker Running worker Running worker Main thread sleeping Worker <Thread(worker 1, started 130283832797456)> running with argument 0 Worker <Thread(worker 2, started 130283824404752)> running with argument 1 Worke ... r <Thread(worker 3, started 130283816012048)> running with argument 2 Worker <Thread(worker 4, started 130283807619344)> running with argument 3 Worke ... r <Thread(worker 5, started 130283799226640)> running with argument 4 Worker <Thread(worker 1, started 130283832797456)> running with argument 5 ... よ ...
https://man.mtool.work/python/3.14/faq/library.html
コルーチンとタスク 10432
コルーチンとタスク この節では、コルーチンと Task を利用する高レベルの asyncio の API の概略を解説します。 コルーチン ソースコード: Lib/asyncio/coroutines.py async/await 構文で宣言された コルーチン は、 asyncio を使ったアプリケーションを書く ... rt time async def say_after ( delay , what ): await asyncio . sleep ( delay ) print ( what ) async def main (): print ( f "started at { time . strftime ( ' %X ' ) } " ) await say_after ( 1 , 'hello' ) await say_after ( 2 , 'world' ) print ( f "finished ... at { time . strftime ( ' %X ' ) } " ) asyncio . run ( main ()) 予想される出力: started at 17 : 13 : 52 hello world finished at 17 : 13 : 55 asyncio の Tasks としてコルーチンを並行して走らせる asyncio.create_ta ... = asyncio . create_task ( say_after ( 1 , 'hello' )) task2 = asyncio . create_task ( say_after ( 2 , 'world' )) print ( f "started at { time . strftime ( ' %X ' ) } " ) # 両方のタスクが完了するまで待つ (約 2 秒かかる)。 await task1 await task2 print ( f ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
pty --- 擬似端末ユーティリティ 10170
pty --- 擬似端末ユーティリティ ソースコード: Lib/pty.py pty モジュールは、別のプロセスを起動してその制御端末をプログラムから読み書きする、擬似端末の操作を定義します。 利用可能な環境 : Unix. 擬似端末の扱いはプラットフォームに大きく依存します ... e , mode ) as script : def read ( fd ): data = os . read ( fd , 1024 ) script . write ( data ) return data print ( 'Script started, file is' , filename ) script . write (( 'Script started on %s \n ' % time . asctime ()) . encode ()) pty . spawn ( shell ...
https://man.mtool.work/python/3.14/library/pty.html
syslog --- Unix syslog ライブラリルーチン群 9892
syslog --- Unix syslog ライブラリルーチン群 このモジュールは Unix の syslog ライブラリルーチンへのインターフェースを提供します。 syslog の機能の詳しい説明は、Unix のマニュアルページを参照してください。 利用可能な環境 : Unix, not WASI, not i ... に定義されている場合に利用できます。 使用例 シンプルな例 1つ目のシンプルな例: import syslog syslog . syslog ( 'Processing started' ) if error : syslog . syslog ( syslog . LOG_ERR , 'Processing started' ) いくつかのログオプションを設定する例。ログメッセ ...
https://man.mtool.work/python/3.14/library/syslog.html
キュー 9334
キュー ソースコード: Lib/asyncio/queues.py asyncio キューは queue モジュールのクラス群と同じ形になるように設計されています。 asyncio キューはスレッドセーフではありませんが、それらは async/await コードから使われるために特別に設計されています ... . create_task ( worker ( f 'worker- { i } ' , queue )) tasks . append ( task ) # キューの全項目の処理が完了するまで待つ。 started_at = time . monotonic () await queue . join () total_slept_for = time . monotonic () - started_at # ワーカータスクをキャン ...
https://man.mtool.work/python/3.14/library/asyncio-queue.html
site --- サイト固有の設定フック 7959
site --- サイト固有の設定フック ソースコード: Lib/site.py このモジュールは初期化中に自動的にインポートされます。 自動インポートはインタプリタの -S オプションで禁止できます。 Importing this module normally appends site-specific paths to the ... r its subclass exception, and the exception's name attribute equals 'sitecustomize' , it is silently ignored. If Python is started without output streams available, as with pythonw.exe on Windows (which is used by default to start IDLE), attempted outpu ...
https://man.mtool.work/python/3.14/library/site.html
logging --- Python 用のログ記録手段 7697
logging --- Python 用のログ記録手段 ソースコード: Lib/logging/__init__.py Important このページには、リファレンス情報だけが含まれています。チュートリアルは、以下のページを参照してください 基本チュートリアル 上級チュートリアル ロギングクックブ ... ogger ( __name__ ) def main (): logging . basicConfig ( filename = 'myapp.log' , level = logging . INFO ) logger . info ( 'Started' ) mylib . do_something () logger . info ( 'Finished' ) if __name__ == '__main__' : main () # mylib.py import logging logg ... do_something (): logger . info ( 'Doing something' ) myapp.py を実行すれば、 myapp.log でログが確認できます: INFO:__main__:Started INFO:mylib:Doing something INFO:__main__:Finished この慣用的な使い方における重要な特色は、大部分のコードは getLogger(__nam ...
https://man.mtool.work/python/3.14/library/logging.html
multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ 7697
multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ ソースコード Lib/multiprocessing/shared_memory.py Added in version 3.8. このモジュールは、マルチコアもしくは対称型マルチプロセッサ(SMP) を持つマシン上で実行される、ひ ... ing.managers.BaseManager のサブクラスです。 A call to start() on a SharedMemoryManager instance causes a new process to be started. This new process's sole purpose is to manage the life cycle of all shared memory blocks created through it. To trigger th ...
https://man.mtool.work/python/3.14/library/multiprocessing.shared_memory.html
一般 Python FAQ 7419
一般 Python FAQ 一般情報 Python とは何ですか? Python は、インタプリタ形式の、対話的な、オブジェクト指向プログラミング言語です。この言語には、モジュール、例外、動的な型付け、超高水準の動的なデータ型、およびクラスが取り入れられています。 Pyth ... UNIX プラットフォームでそのままコンパイルして動かせます。 ソースコードの入手とコンパイルについて、より詳しい情報は Getting Started section of the Python Developer's Guide を参照してください。 Python のドキュメントはどこで手に入りますか? 現行の安定版 Pyt ...
https://man.mtool.work/python/3.14/faq/general.html
PREV 1 2 NEXT