per page, with , order by , clip by
Results of 1 - 10 of about 22 for SystemExit (0.005 sec.)
_thread --- 低水準なスレッド API 12625
_thread --- 低水準なスレッド API このモジュールはマルチスレッド (別名 軽量プロセス ( light-weight processes )または タスク ( tasks )) に用いられる低水準プリミティブを提供します --- グローバルデータ空間を共有するマルチスレッドを制御します。同 ... 属性は function です。 デフォルトではスタックトレースを表示してスレッドを終了します (他のスレッドは実行を続けます)。 関数が SystemExit 例外を送出した場合は、何も表示せずに無視します。 引数 function 、 args 、 kwargs を指定して、 監査イベント _thread.start_n ... あれば、その呼び出しを予約します。 実際にシグナルを発生させるには signal.raise_signal() を使ってください。 _thread. exit ( ) SystemExit を送出します。それが捕えられないときは、静かにスレッドを終了させます。 _thread. allocate_lock ( ) 新しいロックオブジェクト ... 込みは常にメインスレッドに届きます ( KeyboardInterrupt 例外を受け取るのはこのスレッドです)。 sys.exit() を呼び出す、あるいは SystemExit 例外を送出することは、 _thread.exit() を呼び出すことと同じです。 メインスレッドが終了したとき、他のスレッドが生き残るかどう ...
https://man.mtool.work/python/3.14/library/_thread.html
code --- インタープリター基底クラス 12171
code --- インタープリター基底クラス ソースコード: Lib/code.py code モジュールはread-eval-print (読み込み-評価-表示)ループをPythonで実装するための機能を提供します。対話的なインタプリタプロンプトを提供するアプリケーションを作るために使える二つ ... と sys.ps2 を使用してプロンプトと入力バッファリングを追加します。 local_exit が真の場合、コンソールでの exit() と quit() は SystemExit を送出せず、代わりに呼び出し元のコードに戻ります。 バージョン 3.13 で変更: local_exit 引数が追加されました。 code. interac ... が None を返した場合。 runsource() は True を返します。 入力が完全。 compile_command() がコードオブジェクトを返した場合。 ( SystemExit を除く実行時例外も処理する) runcode() を呼び出すことによって、コードは実行されます。 runsource() は False を返します。 戻り ... 実行します。例外が生じたときは、トレースバックを表示するために showtraceback() が呼び出されます。伝搬することが許されている SystemExit を除くすべての例外が捉えられます。 KeyboardInterrupt についての注意。このコードの他の場所でこの例外が生じる可能性があります ...
https://man.mtool.work/python/3.14/library/code.html
winsound --- Windows 用の音声再生インターフェース 11262
winsound --- Windows 用の音声再生インターフェース winsound モジュールは、Windows が提供する基本的な音声再生機能へのアクセスを提供します。 関数といくつかの定数が含まれています。 利用可能な環境 : Windows. winsound. Beep ( frequency , duration ... 数あります: PlaySound() name 対応するコントロールパネルでの音声名 'SystemAsterisk' Asterisk 'SystemExclamation' Exclamation 'SystemExit' Exit Windows 'SystemHand' Critical Stop 'SystemQuestion' Question 例えば: import winsound # Windows の終了音を再生する。 ... winsound . PlaySound ( "SystemExit" , winsound . SND_ALIAS ) # 登録されていれば、おそらく Windows のデフォルトの音を再生する。 # "*" という名前の音声は登録さ ...
https://man.mtool.work/python/3.14/library/winsound.html
例外処理 9427
例外処理 この章で説明する関数を使うと、 Python の例外の処理や例外の送出ができるようになります。 Python の例外処理の基本をいくらか理解することが大切です。例外は POSIX errno 変数にやや似た機能を果たします: 発生した中で最も新しいエラーの (スレ ... 次に属します: Stable ABI . 標準のトレースバックを sys.stderr に出力し、エラーインジケータをクリアします。 ただし、エラーが SystemExit である場合を除いて です。 その場合、トレースバックは出力されず、 Python プロセスは SystemExit インスタンスで指定されたエラ ... 次に属します: Stable ABI . SyntaxError PyObject * PyExc_SystemError 次に属します: Stable ABI . SystemError PyObject * PyExc_SystemExit 次に属します: Stable ABI . SystemExit PyObject * PyExc_TabError 次に属します: Stable ABI . TabError PyObject * PyExc_Timeo ...
https://man.mtool.work/python/3.14/c-api/exceptions.html
インタープリタの初期化と終了処理 9427
インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP ... out an unhandled exception, 1 otherwise, and 120 if finalizing the interpreter failed (see Py_FinalizeEx() ). An unhandled SystemExit terminates the process. If the interpreter cannot be initialized, the process exits via Py_ExitStatusException() . On Wind ... PyConfig.inspect が設定されていない場合 (デフォルト)、インタープリタが例外を送出せず正常終了すれば 0 を返します。 未処理の SystemExit があればその終了ステータスを、それ以外の未処理の例外があれば 1 を返します。 If PyConfig.inspect is set (such as when the - ... L session. The function return value is then determined by the way the REPL session terminates: 0 , 1 , or the status of a SystemExit , as specified above. この関数は、戻る前に必ず Python インタープリタの終了処理を行います。 Py_RunMain() を使って常に隔離モ ...
https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html
組み込み定数 8972
組み込み定数 組み込み名前空間にはいくつかの定数があります。定数の一覧: False bool 型の偽値です。 False への代入は不正で、 SyntaxError を送出します。 True bool 型の真値です。 True への代入は不正で、 SyntaxError を送出します。 None 関数にデフ ... うなメッセージを表示するオブジェクトです。 対話型インタープリタで直接入力するか、関数として呼び出すと、指定した終了コードで SystemExit を送出します。 help 表示すると "Type help() for interactive help, or help(object) for help about object." というメッセージ ...
https://man.mtool.work/python/3.14/builtins/constants.html
atexit --- 終了ハンドラー 8972
atexit --- 終了ハンドラー atexit モジュールは、 終了ハンドラー を登録・解除する関数を定義します。 終了ハンドラーは、プログラムの正常終了時 (例えば sys.exit() が呼び出されたときや、メインモジュールの実行が完了したとき)、より一般的には interp ... るという想定に基づいています。 If an exception is raised during execution of an exit handler, a traceback is printed (unless SystemExit is raised) and the exception information is saved. After all exit handlers have had a chance to run, the last exception to ...
https://man.mtool.work/python/3.14/library/atexit.html
What's New in Python 2.5 8972
What's New in Python 2.5 著者 : A.M. Kuchling この記事では Python 2.5 の新機能を説明します。 Python 2.5 の最終リリースは 2006 年 8 月に予定されており、 PEP 356 にリリース計画が記載されています。 Python 2.5 は 2006 年 9 月 19 日にリリースされ ... otion の直接の子になり、これは 3.x でも引き継がれています。---): BaseException # Python 2.5 で追加 |- KeyboardInterrupt |- SystemExit |- Exception |- ( その他の現在の組み込み例外すべて ) この再編成が行われたのは、人々がしばしばプログラムのエラーを示す例外す ... べてを捕捉したがるからです。 KeyboardInterrupt と SystemExit はエラーではありませんが、普通は Control - C をユーザが叩いたか、コードが sys.exit() を呼び出したかのような明示的なアクショ ... ンを表します。剥き出しの except: はまさに全ての例外を捕捉しますから、一般に、再送出のために KeyboardInterrupt と SystemExit はリストする必要があります。お決まりのパターンはこんなです: try : ... except ( KeyboardInterrupt , SystemExit ): raise exc ...
https://man.mtool.work/python/3.14/whatsnew/2.5.html
コルーチンとタスク 8518
コルーチンとタスク この節では、コルーチンと Task を利用する高レベルの asyncio の API の概略を解説します。 コルーチン ソースコード: Lib/asyncio/coroutines.py async/await 構文で宣言された コルーチン は、 asyncio を使ったアプリケーションを書く ... れぞれのドキュメントを参照してください)。 基底例外のうち、2 つは特別に扱います。 いずれかのタスクが KeyboardInterrupt または SystemExit で失敗した場合も、タスクグループは残りのタスクをキャンセルして終了を待ちます。 ただし、その後は ExceptionGroup や BaseExce ... ptionGroup ではなく、最初の KeyboardInterrupt または SystemExit を再送出します。 If the body of the async with statement exits with an exception (so __aexit__() is called with an excepti ... asyncio.CancelledError , is also included in the exception group. The same special case is made for KeyboardInterrupt and SystemExit as in the previous paragraph. タスクグループは、 __aexit__() を「起こす」ための内部的なキャンセルと、タスクグループが実行さ ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
組み込み例外 8046
組み込み例外 Python において、すべての例外は BaseException から派生したクラスのインスタンスでなければなりません。特定のクラスを言及する except 節を伴う try 文において、その節はそのクラスから派生した例外クラスも処理しますが、そのクラスの派生 ... 正確なエラーメッセージ (例外の関連値)、可能であればエラーを引き起こしたプログラムのソースを必ず報告してください。 exception SystemExit この例外は sys.exit() 関数によって送出されます。 Exception を捕捉するコードに誤って捕捉されないように、 Exception ではなく ... 組み込み例外のクラス階層は以下のとおりです: BaseException ├── BaseExceptionGroup ├── GeneratorExit ├── KeyboardInterrupt ├── SystemExit └── Exception ├── ArithmeticError │ ├── FloatingPointError │ ├── OverflowError │ └── ZeroDivisionError ├── AssertionError ...
https://man.mtool.work/python/3.14/builtins/exceptions.html
PREV 1 2 3 NEXT