per page, with , order by , clip by
Results of 1 - 10 of about 25 for throw (0.005 sec.)
sys.monitoring --- 実行イベントモニタリング 12453
sys.monitoring --- 実行イベントモニタリング Added in version 3.12. 注釈 sys.monitoring は sys モジュール内の名前空間で、独立したモジュールではありません。 import sys.monitoring は ModuleNotFoundError で失敗します。 代わりに import sys を実行 ... されようとしている。 sys.monitoring.events. PY_RESUME Python 関数の再開 (ジェネレーター関数やコルーチン関数の場合)。 ただし throw() の呼び出しは除く。 sys.monitoring.events. PY_RETURN Python 関数からのリターン (リターンの直前に発生し、呼び出された関数の ... START Python 関数の開始 (呼び出しの直後に発生し、呼び出された関数のフレームはスタック上にある)。 sys.monitoring.events. PY_THROW throw() の呼び出しによって Python 関数が再開される。 sys.monitoring.events. PY_UNWIND 例外によるスタックの巻き戻し中に Pyt ... c location in the program and cannot be individually disabled via DISABLE . 監視できるその他のイベントは次のとおりです: PY_THROW PY_UNWIND RAISE EXCEPTION_HANDLED STOP_ITERATION イベント PEP 380 では、ジェネレーターやコルーチンから値を返すときに StopI ...
https://man.mtool.work/python/3.14/library/sys.monitoring.html
モニタリング C API 11191
モニタリング C API バージョン 3.13 で追加。 拡張モジュールがイベントモニタリングシステムと連携する必要がある場合があります。 イベントの購読やコールバックの登録は、 sys.monitoring が公開する Python API で行えます。 実行イベントの発生 以下の関 ... tate , PyObject * codelike , int32_t offset , PyObject * retval ) C_RETURN イベントを発生させます。 int PyMonitoring_FirePyThrowEvent ( PyMonitoringState * state , PyObject * codelike , int32_t offset ) 現在の例外 ( PyErr_GetRaisedException() が返すも ... の) を使って PY_THROW イベントを発生させます。 int PyMonitoring_FireRaiseEvent ( PyMonitoringState * state , PyObject * codelike , int32_t offse ... T_PY_RESUME PY_RESUME PY_MONITORING_EVENT_PY_RETURN PY_RETURN PY_MONITORING_EVENT_PY_START PY_START PY_MONITORING_EVENT_PY_THROW PY_THROW PY_MONITORING_EVENT_PY_UNWIND PY_UNWIND PY_MONITORING_EVENT_PY_YIELD PY_YIELD PY_MONITORING_EVENT_RAISE RAISE PY_ ...
https://man.mtool.work/python/3.14/c-api/monitoring.html
拡張 11191
拡張 asyncio を拡張する主な方法は、独自の イベントループ クラスを書くことです。 asyncio には、この作業を簡単にするための補助機能があります。 注釈 Third-parties should reuse existing asyncio code with caution, a new Python version is free to ... 現在のタスクを、引数 task に切り替えます。 タスク内の コルーチン を部分的に実行する直前 ( coroutine.send() または coroutine.throw() の呼び出し直前) に呼び出してください。 asyncio. _leave_task ( loop , task ) 現在のタスクを task から None に戻します。 c ... oroutine.send() または coroutine.throw() の実行直後に呼び出してください。 他のマニュアルの関連ページ PHP parallel-future.done PHP parallel-future.value PHP ev.ru ...
https://man.mtool.work/python/3.14/library/asyncio-extending.html
collections.abc --- コンテナの抽象基底クラス 10893
collections.abc --- コンテナの抽象基底クラス Added in version 3.3: 以前はこのモジュールは collections モジュールの一部でした。 ソースコード: Lib/_collections_abc.py このモジュールは、 抽象基底クラス を提供します。抽象基底クラスは、クラスが特 ... __iter__ Iterator [ 1 ] Iterable __next__ __iter__ Reversible [ 1 ] Iterable __reversed__ Generator [ 1 ] Iterator send , throw close , __iter__ , __next__ Sized [ 1 ] __len__ Callable [ 1 ] __call__ Collection [ 1 ] Sized , Iterable , Container __co ... r__ ValuesView MappingView , Collection __contains__ , __iter__ Awaitable [ 1 ] __await__ Coroutine [ 1 ] Awaitable send , throw close AsyncIterable [ 1 ] __aiter__ AsyncIterator [ 1 ] AsyncIterable __anext__ __aiter__ AsyncGenerator [ 1 ] AsyncIterat ... or asend , athrow aclose , __aiter__ , __anext__ Buffer [ 1 ] __buffer__ 脚注 [ 1 ] ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 ...
https://man.mtool.work/python/3.14/library/collections.abc.html
将来のバージョンで削除予定 9946
将来のバージョンで削除予定 以下の API は将来削除されますが、現時点では削除時期は決まっていません。 argparse : 引数グループの入れ子と、相互排他的なグループの入れ子は非推奨です。 add_argument_group() に、ドキュメント化されていないキーワード引 ... 数 prefix_chars を渡すことは非推奨になりました。 argparse.FileType 型コンバーターは非推奨です。 builtins : ジェネレーター: throw(type, exc, tb) と athrow(type, exc, tb) というシグネチャは非推奨です。 代わりに、引数が一つの throw(exc) と athrow(exc) を ...
https://man.mtool.work/python/3.14/deprecations/pending-removal-in-future.html
6. 式 (expression) 9946
6. 式 (expression) この章では、Python の式における個々の要素の意味について解説します。 構文上の注意: この章以降では、 文法の表記法 を字句解析ではなく構文の記述に使います。 構文規則の (選択肢の 1 つの) 形式が次のように記述され、 name : other ... をイテレートすることで生成された値は現在のジェネレータのメソッドの呼び出し元へ直接渡されます。 send() で渡されたあらゆる値と throw() で渡されたあらゆる例外は根底のイテレータに適切なメソッドがあれば渡されます。適切なメソッドがない場合、 send() は Attribu ... teError か TypeError を、 throw() は渡された例外を即座に送出します。 根底のイテレータの完了時、引き起こされた StopIteration インスタンスの value 属性はその ... it must be called with None as the argument, because there is no yield expression that could receive the value. generator. throw ( value ) generator. throw ( type [ , value [ , traceback ] ] ) Raises an exception at the point where the generator was p ...
https://man.mtool.work/python/3.14/reference/expressions.html
アノテーションのベストプラクティス 9000
アノテーションのベストプラクティス author : Larry Hastings 概要 このドキュメントは、アノテーションの辞書を扱う上でのベストプラクティスをまとめるものです。Python オブジェクトに付与された __annotations__ を Python コードからアクセスする際には ... d return as its annotations. Deleting the annotations on a function before it has lazily created its annotations dict will throw an AttributeError ; using del fn.__annotations__ twice in a row is guaranteed to always throw an AttributeError . Everythi ...
https://man.mtool.work/python/3.14/howto/annotations.html
ジェネレータオブジェクト 8701
ジェネレータオブジェクト ジェネレータオブジェクトは、 Python がジェネレータイテレータを実装するのに使っているオブジェクトです。ジェネレータオブジェクトは通常、 PyGen_New() や PyGen_NewWithQualName() の明示的な呼び出しではなく、値を yield す ... さい。 バージョン 3.14 で ソフト非推奨 <Soft deprecated> . 他のマニュアルの関連ページ PHP language.generators PHP generator.throw PHP fdf_set_target_frame() PHP generator.getreturn PHP ibase_gen_id() PHP language.generators.comparison ...
https://man.mtool.work/python/3.14/c-api/gen.html
What's New In Python 3.12 8701
What's New In Python 3.12 編集者 : Adam Turner この記事では Python 3.11 と比較した Python 3.12 の新機能を解説します。Python 3.12 は2023年10月2日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP 693 -- Python 3.12 リリ ... n が gh-99005 で貢献しました。) CALL_INTRINSIC_2 命令を追加しました。 (Irit Katriel が gh-101799 で貢献しました。) CLEANUP_THROW 命令を追加しました。 (Brandt Bucher が gh-90997 で貢献しました。) END_SEND 命令を追加しました。 (Mark Shannon が gh-103082 ... thon 実装では FutureWarning が出て、C 実装では何も出ませんでした。 (Jacob Walls が gh-83122 で貢献しました。) コルーチンの throw() 、 ジェネレータの throw() 、 非同期ジェネレータの throw() の 3 引数 ( type 、 value 、 traceback ) のシグネチャが非推奨に ... 引数 prefix_chars を渡すことは非推奨になりました。 argparse.FileType 型コンバーターは非推奨です。 builtins : ジェネレーター: throw(type, exc, tb) と athrow(type, exc, tb) というシグネチャは非推奨です。 代わりに、引数が一つの throw(exc) と athrow(exc) を ...
https://man.mtool.work/python/3.14/whatsnew/3.12.html
非推奨 8385
非推奨 Python 3.15 で削除予定 インポートシステム: Setting __cached__ on a module while failing to set __spec__.cached is deprecated. In Python 3.15, __cached__ will cease to be set or take into consideration by the import system or standard ... 引数 prefix_chars を渡すことは非推奨になりました。 argparse.FileType 型コンバーターは非推奨です。 builtins : ジェネレーター: throw(type, exc, tb) と athrow(type, exc, tb) というシグネチャは非推奨です。 代わりに、引数が一つの throw(exc) と athrow(exc) を ...
https://man.mtool.work/python/3.14/deprecations/
PREV 1 2 3 NEXT