Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 27 for warnings (0.028 sec.)
29.5. warnings --- 警告の制御 — Python 3.6.5 ドキュメント 15059
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... リ » 29. Python ランタイムサービス » 29.5. warnings --- 警告の制御 ¶ ソースコード: Lib/warnings.py 警告 ... matching rule)と動作からなるシーケンスです。 filterwarnings() を呼び出して一致規則をフィルタに追加することがで ... き、 resetwarnings() を呼び出してフィルタを標準設定の状態にリセットす ... 自作の実装を使うことができます。 参考 logging.captureWarnings() を使うことで、標準ロギング基盤ですべての警告を扱 ...
https://man.plustar.jp/python/library/warnings.html - [similar]
26.8. test --- Python 用回帰テストパッケージ — Python 3.6.5 ドキュメント 12689
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... None を設定して実行されます。 test.support. check_warnings ( *filters , quiet=True ) ¶ warning が正しく発行さ ... れているかどうかチェックする、 warnings.catch_warnings() を使いやすくするラッパーです。これ ... は、 warnings.simplefilter() を always に設定して、記録された結果 ... を自動的に検証するオプションと共に warnings.catch_warnings(record=True) を呼ぶのとほぼ同じです ...
https://man.plustar.jp/python/library/test.html - [similar]
16.6. logging --- Python 用ロギング機能 — Python 3.6.5 ドキュメント 8146
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ットすれば良いです。 バージョン 3.2 で追加. 16.6.12. warnings モジュールとの統合 ¶ captureWarnings() 関数を使って ... 、 logging を warnings モジュールと統合できます。 logging. captureWarning ... 、有効にまたは無効にします。 capture が True なら、 warnings モジュールに発せられた警告は、ロギングシステムにリ ... ダイレクトされるようになります。具体的には、警告が warnings.formatwarning() でフォーマット化され、結果の文字列 ...
https://man.plustar.jp/python/library/logging.html - [similar]
What's New in Python 2.6 — Python 3.6.5 ドキュメント 8146
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... される変数で、クラスの属性ではありません。) 最適化 ¶ warnings モジュールが C で書き直されました。これにより警告を ... . urlopen ( 'https://sf.net' ) ... 最後に、 check_warnings() は warning モジュールの警告フィルタをリセットして ... トを返します ( bpo-3781 ): with test_support . check_warnings () as wrec : warnings . simplefilter ( "always" ) ... ge ) == "function is outdated" assert len ( wrec . warnings ) == 1 , "Multiple warnings raised" (Contributed b ...
https://man.plustar.jp/python/whatsnew/2.6.html - [similar]
What's New In Python 3.6 — Python 3.6.5 ドキュメント 8146
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... d ported to 3.6 by Stéphane Wirtel in bpo-22829 .) warnings ¶ A new optional source parameter has been added t ... o the warnings.warn_explicit() function: the destroyed object whi ... arning . A source attribute has also been added to warnings.WarningMessage (contributed by Victor Stinner in b ... as allocated. スクリプト example.py での例: import warnings def func (): return open ( __file__ ) f = func () ...
https://man.plustar.jp/python/whatsnew/3.6.html - [similar]
26.4. unittest --- ユニットテストフレームワーク — Python 3.6.5 ドキュメント 8080
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 。複数の警告を捕捉する場合には、警告クラスのタプルを warnings に指定してください。 warning 引数のみ(またはそれに ... failfast=False , buffer=False , resultclass=None , warnings=None , * , tb_locals=False ) ¶ 結果をストリームに出 ... ション ( 警告の制御 を参照してください) を使ったり、 warnings を None にしたりしておくと、この動作を上書きできま ... す。 バージョン 3.2 で変更: warnings 引数が追加されました。 バージョン 3.2 で変更: イン ...
https://man.plustar.jp/python/library/unittest.html - [similar]
What's New in Python 2.1 — Python 3.6.5 ドキュメント 8080
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 機能や表示させたくない警告を除外する機能を提供する、 warnings モジュールを追加します。サードパーティーのモジュー ... is deprecated; please use the re module >>> 警告は warnings.warn() 関数を呼び出すことで発行できます: warnings ... します。警告は以下呼び出しにより抑制できます: import warnings warnings . filterwarnings ( action = 'ignore' , me ...
https://man.plustar.jp/python/whatsnew/2.1.html - [similar]
例外処理 — Python 3.6.5 ドキュメント 7998
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... 使い、 C コードで起きた警告を報告します。 Python の warnings モジュールで公開されている同様の関数とよく似てます ... ies . 警告をコントロールするための情報については、 warnings モジュールのドキュメンテーションとコマンドライン・ ... 制御した警告メッセージを出します。これは Python 関数 warnings.warn_explicit() の直接的なラッパで、さらに情報を得 ... で、 category は ResourceWarning であり、 source は warnings.WarningMessage() に渡されます。 バージョン 3.6 で追 ...
https://man.plustar.jp/python/c-api/exceptions.html - [similar]
29.4. __main__ --- トップレベルのスクリプト環境 — Python 3.6.5 ドキュメント 7998
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... tins --- 組み込みオブジェクト 次のトピックへ 29.5. warnings --- 警告の制御 ナビゲーション 索引 モジュール | 次 ...
https://man.plustar.jp/python/library/__main__.html - [similar]
6.2. re --- 正規表現操作 — Python 3.6.5 ドキュメント 7932
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... +' >>> sample = '/usr/sbin/sendmail - 0 errors, 12 warnings' >>> print ( re . sub ( digits_re , digits_re . re ... ), sample )) /usr/sbin/sendmail - \d+ errors, \d+ warnings バージョン 3.3 で変更: '_' 文字がエスケープされなく ... とを考えます / usr / sbin / sendmail - 0 errors , 4 warnings scanf() フォーマットは次のように使います % s - % d ... errors , % d warnings 同等な正規表現はこのようなものとなります ( \ S + ) ...
https://man.plustar.jp/python/library/re.html - [similar]
PREV 1 2 3 NEXT