per page, with , order by , clip by
Results of 1 - 10 of about 59 for suppress (0.043 sec.)
contextlib --- with 文コンテキスト用ユーティリティ — Python 3.14.8 ドキュメント 13582
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » contextlib --- with 文コンテキスト用ユーティリティ テーマ 自動 ライト ダーク | contextlib --- with 文コ ... an optional context manager, for example: def myfunction ( arg , ignore_exceptions = False ): if ignore_exceptions : # Use suppress to ignore all exceptions. cm = contextlib . suppress ( Exception ) else : # Do not ignore any exceptions, cm has no effect ... ージョン 3.10 で変更: 非同期コンテキストマネージャ ( asynchronous context manager ) のサポートが追加されました。 contextlib. suppress ( * exceptions ) ¶ with 文の内部で指定された例外の発生を抑えるコンテキストマネージャを返します。 with 文の後に続く最初の文 ... いことであるとわかっている、非常に限定的なエラーをカバーする以上の使い方はしてはいけません。 例えば: from contextlib import suppress with suppress ( FileNotFoundError ): os . remove ( 'somefile.tmp' ) with suppress ( FileNotFoundError ): os . remove ( 'so ...
https://man.mtool.work/python/3.14/library/contextlib.html
contextlib --- with 文コンテキスト用ユーティリティ — Python 3.14.8 ドキュメント 12940
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » contextlib --- with 文コンテキスト用ユーティリティ テーマ 自動 ライト ダーク | contextlib --- with 文コ ... an optional context manager, for example: def myfunction ( arg , ignore_exceptions = False ): if ignore_exceptions : # Use suppress to ignore all exceptions. cm = contextlib . suppress ( Exception ) else : # Do not ignore any exceptions, cm has no effect ... ージョン 3.10 で変更: 非同期コンテキストマネージャ ( asynchronous context manager ) のサポートが追加されました。 contextlib. suppress ( * exceptions ) ¶ with 文の内部で指定された例外の発生を抑えるコンテキストマネージャを返します。 with 文の後に続く最初の文 ... いことであるとわかっている、非常に限定的なエラーをカバーする以上の使い方はしてはいけません。 例えば: from contextlib import suppress with suppress ( FileNotFoundError ): os . remove ( 'somefile.tmp' ) with suppress ( FileNotFoundError ): os . remove ( 'so ...
https://man.mtool.work/python/3.14/library/contextlib.html
optparse --- Parser for command line options — Python 3.14.8 ドキュメント 9424
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » optparse --- Parser for command line options テーマ 自動 ライト ダーク | optparse --- Pa ... s the usage string, it expands %prog to os.path.basename(sys.argv[0]) (or to prog if you passed that keyword argument). To suppress a usage message, pass the special value optparse.SUPPRESS_USAGE . option_list (デフォルト: [] ) パーザに追加する Option オ ... 関する説明文です。説明文を提供しておかなければ、オプションは説明文なしで表示されます。オプションを隠すには特殊な値 optparse.SUPPRESS_HELP を使います。 Option. metavar ¶ (デフォルト: オプション文字列を使う) 説明文を表示する際にオプションの引数の身代わりにな ... ていなくても、オプションはヘルプメッセージ中に列挙されます。オプションを完全に表示させないようにするには、特殊な値 optparse.SUPPRESS_HELP を使ってください。 optparse automatically adds a help option to all OptionParsers, so you do not normally need to cre ...
https://man.mtool.work/python/3.14/library/optparse.html
optparse --- Parser for command line options — Python 3.14.8 ドキュメント 9424
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » optparse --- Parser for command line options テーマ 自動 ライト ダーク | optparse --- Pa ... s the usage string, it expands %prog to os.path.basename(sys.argv[0]) (or to prog if you passed that keyword argument). To suppress a usage message, pass the special value optparse.SUPPRESS_USAGE . option_list (デフォルト: [] ) パーザに追加する Option オ ... 関する説明文です。説明文を提供しておかなければ、オプションは説明文なしで表示されます。オプションを隠すには特殊な値 optparse.SUPPRESS_HELP を使います。 Option. metavar ¶ (デフォルト: オプション文字列を使う) 説明文を表示する際にオプションの引数の身代わりにな ... ていなくても、オプションはヘルプメッセージ中に列挙されます。オプションを完全に表示させないようにするには、特殊な値 optparse.SUPPRESS_HELP を使ってください。 optparse automatically adds a help option to all OptionParsers, so you do not normally need to cre ...
https://man.mtool.work/python/3.14/library/optparse.html
argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー — Pytho... 8782
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー テーマ 自動 ライ ... fault= キーワード引数を渡します。例えば、全体で parse_args() メソッド呼び出しの属性の生成を抑制するには、 argument_default=SUPPRESS を指定します: >>> parser = argparse . ArgumentParser ( argument_default = argparse . SUPPRESS ) >>> parser . add_argument ... ositional arguments with nargs values other than ? or * , or optional arguments marked as required=True . default=argparse.SUPPRESS を渡すと、コマンドライン引数が存在しないときに属性の追加をしなくなります: >>> parser = argparse . ArgumentParser () >>> pa ... rser . add_argument ( '--foo' , default = argparse . SUPPRESS ) >>> parser . parse_args ([]) Namespace() >>> parser . parse_args ([ '--foo' , '1' ]) Namespace(foo='1') type ¶ デフォルト ...
https://man.mtool.work/python/3.14/library/argparse.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8782
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... utations , product , repeat , starmap , tee , zip_longest ) from collections import Counter , deque from contextlib import suppress from functools import reduce from heapq import heappush , heappushpop , heappush_max , heappushpop_max from math import co ... if element is value or element == value : yield i else : stop = len ( iterable ) if stop is None else stop i = start with suppress ( ValueError ): while True : yield ( i := seq_index ( value , i , stop )) i += 1 def iter_except ( function , exception , ... -exception interface to an iterator interface." # iter_except(d.popitem, KeyError) → non-blocking dictionary iterator with suppress ( exception ): if first is not None : yield first () while True : yield function () # ==== Mathematical operations ==== de ...
https://man.mtool.work/python/3.14/library/itertools.html
traceback --- スタックトレースの表示または取得 — Python 3.14.8 ドキュメント 8782
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » traceback --- スタックトレースの表示または取得 テーマ 自動 ライト ダーク | traceback --- スタックトレー ... ethod is saved in the class attributes. In particular, the __context__ field is calculated only if __cause__ is None and __suppress_context__ is false. 局所変数がキャプチャされたとき、それらはトレースバックに表示されることに注意してください。 max_group_w ... a list of TracebackException instances representing the nested exceptions. Otherwise it is None . Added in version 3.11. __suppress_context__ ¶ 元々の例外からの __suppress_context__ 。 __notes__ ¶ The __notes__ value from the original exception, or None ...
https://man.mtool.work/python/3.14/library/traceback.html
変更履歴 — Python 3.14.8 ドキュメント 8782
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac ... --exec-prefix differing from --prefix ). gh-148853 : Fix tests failing on FreeBSD in test.support's in_systemd_nspawn_sync_suppressed() due to unreadable /run directory. ビルド ¶ gh-154070 : Build the curses module against a wide-character capable ncurse ... ython 3.12. gh-146646 : Document that glob.glob() , glob.iglob() , pathlib.Path.glob() , and pathlib.Path.rglob() silently suppress OSError exceptions raised from scanning the filesystem. ビルド ¶ gh-149351 : Avoid possible broken macOS framework install ... to pass with Tcl/Tk 8.6.15. gh-124213 : Detect whether the test suite is running inside a systemd-nspawn container with --suppress-sync=true option, and skip the test_os and test_mmap tests that are failing in this scenario. gh-124190 : Add capability t ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー — Pytho... 8782
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー テーマ 自動 ライ ... fault= キーワード引数を渡します。例えば、全体で parse_args() メソッド呼び出しの属性の生成を抑制するには、 argument_default=SUPPRESS を指定します: >>> parser = argparse . ArgumentParser ( argument_default = argparse . SUPPRESS ) >>> parser . add_argument ... ositional arguments with nargs values other than ? or * , or optional arguments marked as required=True . default=argparse.SUPPRESS を渡すと、コマンドライン引数が存在しないときに属性の追加をしなくなります: >>> parser = argparse . ArgumentParser () >>> pa ... rser . add_argument ( '--foo' , default = argparse . SUPPRESS ) >>> parser . parse_args ([]) Namespace() >>> parser . parse_args ([ '--foo' , '1' ]) Namespace(foo='1') type ¶ デフォルト ...
https://man.mtool.work/python/3.14/library/argparse.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8782
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... utations , product , repeat , starmap , tee , zip_longest ) from collections import Counter , deque from contextlib import suppress from functools import reduce from heapq import heappush , heappushpop , heappush_max , heappushpop_max from math import co ... if element is value or element == value : yield i else : stop = len ( iterable ) if stop is None else stop i = start with suppress ( ValueError ): while True : yield ( i := seq_index ( value , i , stop )) i += 1 def iter_except ( function , exception , ... -exception interface to an iterator interface." # iter_except(d.popitem, KeyError) → non-blocking dictionary iterator with suppress ( exception ): if first is not None : yield first () while True : yield function () # ==== Mathematical operations ==== de ...
https://man.mtool.work/python/3.14/library/itertools.html
PREV 1 2 3 4 5 6 NEXT