per page, with , order by , clip by
Results of 1 - 10 of about 86 for Level (0.009 sec.)
Logging クックブック 14298
Logging クックブック Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に有用であるとされていた、logging に関連するいくつものレシピを含んでいます。チュートリアルやリファレンス情報へのリンクについては その他のリソース ... y_module # 'spam_application' という名前のロガーを作成する logger = logging . getLogger ( 'spam_application' ) logger . setLevel ( logging . DEBUG ) # デバッグメッセージも記録するファイルハンドラーを作成する fh = logging . FileHandler ( 'spam.log' ) f ... h . setLevel ( logging . DEBUG ) # より高いログレベルのコンソールハンドラーを作成する ch = logging . StreamHandler () ch . setLevel ( l ... ng . ERROR ) # フォーマッターを作成してハンドラーに設定する formatter = logging . Formatter ( ' %(asctime)s - %(name)s - %(levelname)s - %(message)s ' ) fh . setFormatter ( formatter ) ch . setFormatter ( formatter ) # ロガーにハンドラーを追加する log ...
https://man.mtool.work/python/3.14/howto/logging-cookbook.html
compression.zstd --- Zstandard 形式に対応した圧縮 12236
compression.zstd --- Zstandard 形式に対応した圧縮 Added in version 3.14. ソースコード: Lib/compression/zstd/__init__.py このモジュールは、Zstandard (または zstd ) 圧縮アルゴリズムを使ってデータを圧縮・展開するクラスと関数を提供します。 zstd ... 化中にエラーが発生すると送出される例外です。 圧縮ファイルへの読み書き compression.zstd. open ( file , / , mode = 'rb' , * , level = None , options = None , zstd_dict = None , encoding = None , errors = None , newline = None ) Zstandard で圧縮されたファ ... の詳細は DecompressionParameter を参照してください。 zstd_dict 引数は、展開時に使う ZstdDict インスタンスです。 読み込み時に level 引数が None でない場合は TypeError を送出します。 書き込み時には、圧縮の高度なパラメータを指定する辞書を options 引数に渡せ ... ます。 サポートされるパラメータの詳細は CompressionParameter を参照してください。 level 引数は、圧縮データを書き込む際の圧縮レベルです。 level と options のうち、 None 以外にできるのは一方だけです。 zstd_dict 引 ...
https://man.mtool.work/python/3.14/library/compression.zstd.html
logging --- Python 用のログ記録手段 11252
logging --- Python 用のログ記録手段 ソースコード: Lib/logging/__init__.py Important このページには、リファレンス情報だけが含まれています。チュートリアルは、以下のページを参照してください 基本チュートリアル 上級チュートリアル ロギングクックブ ... gging import mylib logger = logging . getLogger ( __name__ ) def main (): logging . basicConfig ( filename = 'myapp.log' , level = logging . INFO ) logger . info ( 'Started' ) mylib . do_something () logger . info ( 'Finished' ) if __name__ == '__main ... た、ロガーを取得するために getLogger() を呼び出すときに渡された値です。 注釈 この属性は読み出し専用として扱われるべきです。 level setLevel() メソッドで設定された、このロガーのしきい値です。 注釈 この属性を直接設定しないでください - setLevel() は渡された ... 。また、この属性はロギングを設定するコードによってのみ変更されます。 注釈 この属性は読み出し専用として扱われるべきです。 setLevel ( level ) このロガーの閾値を level に設定します。 level よりも深刻でないログメッセージは無視されます; 深刻さが level 以上の ...
https://man.mtool.work/python/3.14/library/logging.html
logging.config --- ログ記録の環境設定 9271
logging.config --- ログ記録の環境設定 ソースコード: Lib/logging/config.py Important このページには、リファレンス情報だけが含まれています。チュートリアルは、以下のページを参照してください 基本チュートリアル 上級チュートリアル ロギングクックブ ... する条件を (不完全かもしれませんが) 以下に列挙します: 文字列でなかったり、実際のロギングレベルと関係ない文字列であったりする level 。 ブール値でない propagate の値。 対応する行き先を持たない id。 インクリメンタルな呼び出しの中で見つかった存在しないハンド ... る辞書になります。 環境設定辞書は、以下のキーを検索されます: class (必須)。これはハンドラクラスの完全に修飾された名前です。 level (任意)。ハンドラのレベルです。 formatter (任意)。このハンドラへのフォーマッタの id です。 filters (任意)。このハンドラへの ... 渡されます。例えば、以下のコード片が与えられたとすると: handlers : console : class : logging.StreamHandler formatter : brief level : INFO filters : [ allow_foo ] stream : ext://sys.stdout file : class : logging.handlers.RotatingFileHandler formatter : p ...
https://man.mtool.work/python/3.14/library/logging.config.html
Logging HOWTO 8732
Logging HOWTO Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページはチュートリアルです。レファレンスやロギングクックブックは、 その他のリソース を参照してください。 基本 logging チュートリアル logging は、あるソフトウェアが実行 ... かもしれないデータ) を加えることもできます。イベントには、開発者がそのイベントに定めた重要性も含まれます。重要性は、 レベル (level) や 重大度 (severity) とも呼ばれます。 logging を使うとき logger = logging.getLogger(__name__) でロガーを作成し、 debug() ... logging logger = logging . getLogger ( __name__ ) logging . basicConfig ( filename = 'example.log' , encoding = 'utf-8' , level = logging . DEBUG ) logger . debug ( 'This message should go to the log file' ) logger . info ( 'So should this' ) logger ... 表示されています。 次のようなコマンドラインオプションでログレベルを設定したいと考え: --log=INFO --log に渡された値を変数 loglevel に保存しているなら、 getattr ( logging , loglevel . upper ()) というコードを使い、 basicConfig() の level 引数に渡すべき値 ...
https://man.mtool.work/python/3.14/howto/logging.html
API と ABI のバージョニング 8665
API と ABI のバージョニング ビルド時のバージョン定数 CPython は以下のマクロでバージョン番号を公開しています。 これらはコードの ビルド時 のバージョンに対応します。 実行時 のバージョンについては Py_Version を参照してください。 バージョン間の ... してください。 PY_MAJOR_VERSION 3.4.1a2 の 3 。 PY_MINOR_VERSION 3.4.1a2 の 4 。 PY_MICRO_VERSION 3.4.1a2 の 1 。 PY_RELEASE_LEVEL 3.4.1a2 の a 。アルファでは 0xA 、ベータでは 0xB 、リリース候補では 0xC 、最終版では 0xF となります。 PY_RELEASE_SERIAL 3. ... を参照してください。 #if PY_VERSION_HEX >= ... のように、数値として比較するときに使います。 これらのマクロは Include/patchlevel.h で定義されています。 実行時のバージョン const unsigned long Py_Version 次に属します: Stable ABI (バージョン 3.11 より). ... n version 3.11. ビットを詰め合わせるマクロ uint32_t Py_PACK_FULL_VERSION ( int major , int minor , int micro , int release_level , int release_serial ) 次に属します: Stable ABI (バージョン 3.14 より). 指定されたバージョンを、以下の構造を持つ一つの 32 ...
https://man.mtool.work/python/3.14/c-api/apiabiversion.html
reprlib --- もう一つの repr() の実装 8665
reprlib --- もう一つの repr() の実装 ソースコード: Lib/reprlib.py reprlib モジュールは、結果の文字列のサイズに対する制限付きでオブジェクト表現を生成するための手段を提供します。これは Python デバッガの中で使用されており、他の文脈でも同様に役 ... に立つかもしれません。 このモジュールはクラスとインスタンス、それに関数を提供します: class reprlib. Repr ( * , maxlevel = 6 , maxtuple = 6 , maxlist = 6 , maxarray = 5 , maxdict = 4 , maxset = 6 , maxfrozenset = 6 , maxdeque = 6 , maxstring = ... 引数を使うと、 Repr インスタンスの属性を簡単に設定できます。 例えば、次のように初期化できます。 aRepr = reprlib . Repr ( maxlevel = 3 ) は、次のコードと等しいです: aRepr = reprlib . Repr () aRepr . maxlevel = 3 Repr の属性について詳しくは Repr Objects ... 供します。 Repr. fillvalue 再帰的な参照に対して表示する文字列です。 デフォルトは ... です。 Added in version 3.11. Repr. maxlevel 再帰的な表現を作る場合の深さ制限。デフォルトは 6 です。 Repr. maxdict Repr. maxlist Repr. maxtuple Repr. maxset Repr. maxf ...
https://man.mtool.work/python/3.14/library/reprlib.html
Pythonモジュール索引 8665
Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i ... nterfaces, import-time behavior, and ``__name__ == '__main__'``. _thread Low-level threading API. _tkinter A binary module that contains the low-level interface to Tcl/Tk. a abc Abstract base classes accor ... systems. compileall Tools for byte-compiling all Python source files in a directory tree. compression compression.zstd Low-level interface to compression and decompression routines in the zstd library. concurrent concurrent.futures Execute computation ... ts Generate secure random numbers for managing secrets. select Wait for I/O completion on multiple streams. selectors High-level I/O multiplexing. shelve Python object persistence. shlex Simple lexical analysis for Unix shell-like languages. shutil Hi ...
https://man.mtool.work/python/3.14/py-modindex.html
sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース 8584
sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース ソースコード: Lib/sqlite3/ SQLite は、軽量なディスク上のデータベースを提供する C ライブラリです。別のサーバプロセスを用意する必要なく、 SQL クエリー言語の非標準的な一種を使用し ... 深く掘り下げた説明。 リファレンス モジュール関数 sqlite3. connect ( database , timeout = 5.0 , detect_types = 0 , isolation_level = 'DEFERRED' , check_same_thread = True , factory = sqlite3.Connection , cached_statements = 128 , uri = False , * , autoc ... す。 両方のフラグを指定した場合は、宣言された型よりも列名を優先します。 デフォルト ( 0 ) では型の検出は無効です。 isolation_level ( str | None ) -- 従来のトランザクション処理の動作を制御します。 詳しくは Connection.isolation_level と isolation_level 属 ... ocommit 引数が追加されました。 バージョン 3.13 で変更: Positional use of the parameters timeout , detect_types , isolation_level , check_same_thread , factory , cached_statements , and uri is deprecated. They will become keyword-only parameters in Pyt ...
https://man.mtool.work/python/3.14/library/sqlite3.html
Python 2.3 のメソッド解決順序 7748
Python 2.3 のメソッド解決順序 注釈 これは公式ドキュメントの付録として提供する歴史的な文書です。 ここで説明するメソッド解決順序は Python 2.3 で 導入 されましたが、Python 3 を含む後のバージョンでも使われています。 著者: Michele Simionato 。 概 ... lass C ( D , F ): pass >>> class B ( D , E ): pass >>> class A ( B , C ): pass この場合、継承図は次のように描けます: 6 --- Level 3 | O | (more general) / --- \ / | \ | / | \ | / | \ | --- --- --- | Level 2 3 | D | 4| E | | F | 5 | --- --- --- | \ \ _ ... / | | \ / \ _ | | \ / \ | | --- --- | Level 1 1 | B | | C | 2 | --- --- | \ / | \ / \ / --- Level 0 0 | A | (more specialized) --- O、D、E、F の線形化は単純です。 L [ ... ): pass 前の例との違いは B(D,E) を B(E,D) に変えただけです。 しかし、この小さな変更でも階層の順序は大きく変わります: 6 --- Level 3 | O | / --- \ / | \ / | \ / | \ --- --- --- Level 2 2 | E | 4 | D | | F | 5 --- --- --- \ / \ / \ / \ / \ / \ / --- --- ...
https://man.mtool.work/python/3.14/howto/mro.html
PREV 1 2 3 4 5 6 7 8 9 NEXT