per page, with , order by , clip by
Results of 1 - 10 of about 32 for exceptions (0.005 sec.)
urllib.error --- urllib.request によって送出される例外クラス 13161
urllib.error --- urllib.request によって送出される例外クラス ソースコード: Lib/urllib/error.py urllib.error モジュールは、 urllib.request が送出する例外のクラスを定義します。 基底となる例外クラスは URLError です。 The following exceptions a ... 。 content ダウンロードされた、 (おそらく切り捨てられた) データ。 他のマニュアルの関連ページ PHP gmp_div() PHP pos() Django exceptions PHP die() Django class PHP getallheaders() ...
https://man.mtool.work/python/3.14/library/urllib.error.html
pdb --- Python デバッガ 12775
pdb --- Python デバッガ ソースコード: Lib/pdb.py pdb モジュールは Python プログラム用の対話型ソースコードデバッガを定義しています。 条件付きブレークポイントの設定、ソース行単位でのステップ実行、スタックフレームの調査、ソースコードの表示、任 ... ガに入ります。 code は現在の環境で実行する任意の式または文です。 retval 現在の関数の最後の return による返り値を表示します。 exceptions [excnumber] 連鎖した例外を一覧表示したり、例外間を移動したりします。 When using pdb.pm() or Pdb.post_mortem(...) with a ch ... ained exception instead of a traceback, it allows the user to move between the chained exceptions using exceptions command to list exceptions, and exceptions <number> to switch to that exception. 以下はプログラム例です: ... び出すと、例外間を移動できます。 > example . py ( 5 ) out () -> raise ValueError ( "reraise middle() error" ) from e ( Pdb ) exceptions 0 ZeroDivisionError ( 'division by zero' ) 1 ValueError ( 'Middle fail' ) > 2 ValueError ( 'reraise middle() error' ) ( Pd ...
https://man.mtool.work/python/3.14/library/pdb.html
コルーチンとタスク 10487
コルーチンとタスク この節では、コルーチンと Task を利用する高レベルの asyncio の API の概略を解説します。 コルーチン ソースコード: Lib/asyncio/coroutines.py async/await 構文で宣言された コルーチン は、 asyncio を使ったアプリケーションを書く ... temExit を再送出します。 If the body of the async with statement exits with an exception (so __aexit__() is called with an exception set), this is treated the same as if one of the tasks failed: the remaining tasks are cancelled and then waited for, and no ... n-cancellation exceptions are grouped into an exception group and raised. The exception passed into __aexit__() , unless it is asyncio.CancelledErro ... delay が nan の場合に ValueError を送出するようになりました。 タスクの並行実行 awaitable asyncio. gather ( * aws , return_exceptions = False ) aws シーケンスにある awaitable オブジェクト を 並行 実行します。 aws にある awaitable がコルーチンである場合、自 ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
例外 9730
例外 ソースコード: Lib/asyncio/exceptions.py exception asyncio. TimeoutError 操作が指定された期限を超えたときに送出される、非推奨な TimeoutError のエイリアス。 バージョン 3.11 で変更: このクラスは TimeoutError のエイリアスになりました。 exc ...
https://man.mtool.work/python/3.14/library/asyncio-exceptions.html
traceback --- スタックトレースの表示または取得 9343
traceback --- スタックトレースの表示または取得 ソースコード: Lib/traceback.py このモジュールは、Python プログラムのスタックトレースを抽出、書式化、表示する標準的なインターフェースを提供します。 インタープリタのデフォルトのトレースバック表示 ... 追加されました。 __cause__ 元々の __cause__ の TracebackException 。 __context__ 元々の __context__ の TracebackException 。 exceptions If self represents an ExceptionGroup , this field holds a list of TracebackException instances representing the nested exc ... , "of" , "life" ) IndexError : tuple index out of range >>> # The *chain* kwarg to print() controls whether chained >>> # exceptions are displayed >>> TracebackException . from_exception ( chained_exc ) . print () Traceback (most recent call last): File " ...
https://man.mtool.work/python/3.14/library/traceback.html
8. エラーと例外 9343
8. エラーと例外 これまでエラーメッセージについては簡単に触れるだけでしたが、チュートリアル中の例を自分で試していたら、実際にいくつかのエラーメッセージを見ていることでしょう。エラーには (少なくとも) 二つのはっきり異なる種類があります。それは ... e "<stdin>", line 3, in f | raise ExceptionGroup('there were problems', excs) | ExceptionGroup: there were problems (2 sub-exceptions) +-+---------------- 1 ---------------- | OSError: error 1 +---------------- 2 ---------------- | SystemError: error 2 +-- ... on as e : ... print ( f 'caught { type ( e ) } : { e } ' ) ... caught <class 'ExceptionGroup'>: there were problems (2 sub-exceptions) >>> except の代わりに except* を使用すると、グループの中にある特定の型に一致した例外だけを選択して処理できます。以下の例で ... , line 1, in <module> | raise ExceptionGroup('We have some problems', excs) | ExceptionGroup: We have some problems (3 sub-exceptions) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "<stdin>", line 3, in <module> | f() | ...
https://man.mtool.work/python/3.14/tutorial/errors.html
contextlib --- with 文コンテキスト用ユーティリティ 8957
contextlib --- with 文コンテキスト用ユーティリティ ソースコード: Lib/contextlib.py このモジュールは with 文に関わる一般的なタスクのためのユーティリティを提供します。詳しい情報は、 コンテキストマネージャ型 と with文とコンテキストマネージャ を ... なコンテキストマネージャの代役として使用することを意図しています。 例えば次のように使います。 def myfunction ( arg , ignore_exceptions = False ): if ignore_exceptions : # suppress を使ってすべての例外を無視します。 cm = contextlib . suppress ( Exception ) e ... で変更: 非同期コンテキストマネージャ ( asynchronous context manager ) のサポートが追加されました。 contextlib. suppress ( * exceptions ) with 文の内部で指定された例外の発生を抑えるコンテキストマネージャを返します。 with 文の後に続く最初の文から処理が再開され ...
https://man.mtool.work/python/3.14/library/contextlib.html
組み込み例外 8586
組み込み例外 Python において、すべての例外は BaseException から派生したクラスのインスタンスでなければなりません。特定のクラスを言及する except 節を伴う try 文において、その節はそのクラスから派生した例外クラスも処理しますが、そのクラスの派生 ... 一度に継承する例外型は一つだけにすることを推奨します。 ほとんどの組み込み例外は効率のために C で実装されています ( Objects/exceptions.c を参照してください)。 一部の例外は独自のメモリレイアウトを持つため、そうした例外型の組み合わせでは多重継承できません。 型 ... 方互換性のために、引数が3つ渡された場合、 args 属性は最初の2つの要素のみからなるタプルを持ちます。 コンストラクタは、下の OS exceptions で説明する OSError のサブクラスを実際に返すことがよくあります。 どのサブクラスを返すかは、最終的な errno の値によって決まり ... r 他のカテゴリに分類できないエラーが検出された場合に送出されます。関連値は、何が問題だったのかをより詳細に示す文字列です。 exception StopIteration 組込み関数 next() と iterator の __next__() メソッドによって、そのイテレータが生成するアイテムがこれ以上ないこ ...
https://man.mtool.work/python/3.14/builtins/exceptions.html
Python インタプリタの拡張と埋め込み 8586
Python インタプリタの拡張と埋め込み This document describes how to write modules in C or C++ to extend the Python interpreter with new modules. Those modules can not only define new functions but also new object types and their methods. The ... -phase extension module initialization 1. Extending Python with C or C++ 1.1. A Simple Example 1.2. Intermezzo: Errors and Exceptions 1.3. Back to the Example 1.4. The Module's Method Table and Initialization Function 1.5. Compilation and Linkage 1.6. C か ...
https://man.mtool.work/python/3.14/extending/
decimal --- 10進固定小数点と浮動小数点の演算 8586
decimal --- 10進固定小数点と浮動小数点の演算 ソースコード: Lib/decimal.py decimal モジュールは、高速で正しく丸められる 10 進浮動小数点演算をサポートします。 float データ型に比べて次のような利点があります: Decimal は「人間を念頭に設計された ... に行われ、その他の混合演算は FloatOperation を送出します。 これらのシグナルの階層構造をまとめると、以下の表のようになります: exceptions . ArithmeticError ( exceptions . Exception ) DecimalException Clamped DivisionByZero ( DecimalException , exceptions . Zer ... unded ) Underflow ( Inexact , Rounded , Subnormal ) InvalidOperation Rounded Subnormal FloatOperation ( DecimalException , exceptions . TypeError ) 浮動小数点に関する注意点 精度を上げて丸め誤差を抑制する 十進浮動小数点数を使うと、十進数表現による誤差を抑制 ...
https://man.mtool.work/python/3.14/library/decimal.html
PREV 1 2 3 4 NEXT