per page, with , order by , clip by
Results of 1 - 10 of about 31 for limit (0.005 sec.)
traceback --- スタックトレースの表示または取得 15789
traceback --- スタックトレースの表示または取得 ソースコード: Lib/traceback.py このモジュールは、Python プログラムのスタックトレースを抽出、書式化、表示する標準的なインターフェースを提供します。 インタープリタのデフォルトのトレースバック表示 ... ェクトへの参照を保持せずに、後で書式化するために必要な情報を保存できます。 モジュールレベルの関数 traceback. print_tb ( tb , limit = None , file = None ) limit が正の場合、 トレースバックオブジェクト tb から、呼び出し元のフレームを先頭に最大 limit 個のス ... タックトレース項目を出力します。 それ以外の場合は、末尾の abs(limit) 個の項目を出力します。 limit を省略するか None を指定すると、すべての項目を出力します。 file を省略するか None を指定する ... .stderr に出力します。 それ以外の場合は、出力を受け取る開かれた ファイル または file-like object を指定してください。 注釈 limit 引数の意味は sys.tracebacklimit とは異なります。 負の limit は正の sys.tracebacklimit に相当しますが、正の limit の動作は ...
https://man.mtool.work/python/3.14/library/traceback.html
tracemalloc --- メモリ割り当ての追跡 10580
tracemalloc --- メモリ割り当ての追跡 Added in version 3.4. ソースコード: Lib/tracemalloc.py tracemallocモジュールは、Python が割り当てたメモリブロックをトレースするためのデバッグツールです。このモジュールは以下の情報を提供します。 オブジェク ... 形化して表示するコードです: import linecache import os import tracemalloc def display_top ( snapshot , key_type = 'lineno' , limit = 10 ): snapshot = snapshot . filter_traces (( tracemalloc . Filter ( False , "<frozen importlib._bootstrap>" ), tracemall ... oc . Filter ( False , "<unknown>" ), )) top_stats = snapshot . statistics ( key_type ) print ( "Top %s lines" % limit ) for index , stat in enumerate ( top_stats [: limit ], 1 ): frame = stat . traceback [ 0 ] print ( "# %s : %s : %s : %.1f ... linecache . getline ( frame . filename , frame . lineno ) . strip () if line : print ( ' %s ' % line ) other = top_stats [ limit :] if other : size = sum ( stat . size for stat in other ) print ( " %s other: %.1f KiB" % ( len ( other ), size / 1024 )) ...
https://man.mtool.work/python/3.14/library/tracemalloc.html
呼び出しグラフのイントロスペクション 10110
呼び出しグラフのイントロスペクション ソースコード: Lib/asyncio/graph.py asyncio は、実行中の コルーチン や タスク 、または中断中の Future の呼び出しグラフ全体を実行時にたどる、強力なイントロスペクション機能を備えています。 これらの機能とその ... ンドラインツールです。 Added in version 3.14. asyncio. print_call_graph ( future = None , / , * , file = None , depth = 1 , limit = None ) 現在のタスク、または指定した Task や Future の非同期呼び出しグラフを表示します。 スタックの最上部のフレームから、 ... 合、省略可能なキーワード専用引数 depth で、スタックの最上部から飛ばすフレーム数を指定できます。 省略可能なキーワード専用引数 limit を指定すると、グラフ内の各コールスタックのエントリー数を最大 abs(limit) 個に制限します。 limit が正なら呼び出し元の起点に近 ... いエントリーを、負ならスタックの最上部に近いエントリーを残します。 limit を省略するか None にすると、すべてのエントリーを含めます。 0 の場合、コールスタックは表示せず、何に await されているかの情 ...
https://man.mtool.work/python/3.14/library/asyncio-graph.html
ストリーム 8978
ストリーム ソースコード: Lib/asyncio/streams.py ストリームはネットワークコネクションと合わせて動作する高水準の async/await 可能な基本要素です。ストリームはコールバックや低水準のプロトコルやトランスポートを使うことなくデータを送受信することを ... ップレベル関数はストリームの作成や操作を行うことができます: async asyncio. open_connection ( host = None , port = None , * , limit = 65536 , ssl = None , family = 0 , proto = 0 , flags = 0 , sock = None , local_addr = None , server_hostname = None , ssl ... オブジェクトのペアを返します。 戻り値の reader と writer はそれぞれ StreamReader と StreamWriter クラスのインスタンスです。 limit は戻り値の StreamReader インスタンスが利用するバッファのサイズの上限値を設定します。デフォルトでは limit は 64 KiB に設定さ ... n_timeout パラメータが追加されました。 async asyncio. start_server ( client_connected_cb , host = None , port = None , * , limit = 65536 , family = socket.AF_UNSPEC , flags = socket.AI_PASSIVE , sock = None , backlog = 100 , ssl = None , reuse_address ...
https://man.mtool.work/python/3.14/library/asyncio-stream.html
fractions --- 有理数 8768
fractions --- 有理数 ソースコード: Lib/fractions.py fractions モジュールは有理数の演算をサポートします。 Fraction インスタンスは、2 つの有理数、1 つの数値、または文字列から作成できます。 class fractions. Fraction ( numerator = 0 , denominat ... 1/10 と等しくないため、 Fraction(1.1) は期待するかもしれない Fraction(11, 10) を返すわけでは ありません 。 (ただし、以下の limit_denominator() メソッドの説明を参照してください。) 最後の形式のコンストラクタは文字列を受け取ります。 通常は次の形式です。 ... r_ratio() メソッドを持つオブジェクトだけを受け取る代替コンストラクタです。 文字列は受け取りません。 Added in version 3.14. limit_denominator ( max_denominator = 1000000 ) 分母が高々 max_denominator である、 self に最も近い Fraction を見付けて返します。 ... 浮動小数点数の有理数近似を見つけるのに役立ちます: >>> from fractions import Fraction >>> Fraction ( '3.1415926535897932' ) . limit_denominator ( 1000 ) Fraction(355, 113) あるいは float で表された有理数を元に戻すのにも使えます: >>> from math import pi , ...
https://man.mtool.work/python/3.14/library/fractions.html
compileall --- Python ライブラリをバイトコンパイルする 8574
compileall --- Python ライブラリをバイトコンパイルする ソースコード: Lib/compileall.py このモジュールは、Python ライブラリのインストールを助けるユーティリティ関数群を提供します。この関数群は、ディレクトリツリー内の Python ソースファイルをコ ... 3.9 で変更: -s 、 -p 、 -e 、 --hardlink-dupes オプションが追加されました。 デフォルトの再帰上限が 10 から sys.getrecursionlimit() に引き上げられました。 -o オプションを複数回指定できるようになりました。 compile() 関数で利用される最適化レベルを制御する ... える必要があります (設定しない場合も同様です)。 パブリックな関数 compileall. compile_dir ( dir , maxlevels = sys.getrecursionlimit() , ddir = None , force = False , rx = None , quiet = 0 , legacy = False , optimize = -1 , workers = 1 , invalidation_mode ... = None , * , stripdir = None , prependdir = None , limit_sl_dest = None , hardlink_dupes = False ) dir という名前のディレクトリーツリーをたどり、途中で見つけた全ての .py をコンパイ ...
https://man.mtool.work/python/3.14/library/compileall.html
サブプロセス 8315
サブプロセス ソースコード: Lib/asyncio/subprocess.py , Lib/asyncio/base_subprocess.py このセクションはサブプロセスの生成と管理を行う高水準の async/await asyncio API について説明します。 以下は、 asyncio モジュールがどのようにシェルコマンドを ... サブプロセスの生成 async asyncio. create_subprocess_exec ( program , * args , stdin = None , stdout = None , stderr = None , limit = 65536 , ** kwds ) サブプロセスを作成します。 limit 引数は、 stdout と stderr をラップする StreamReader のバッファの上限を ... パラメータが削除されました。 async asyncio. create_subprocess_shell ( cmd , stdin = None , stdout = None , stderr = None , limit = 65536 , ** kwds ) シェルコマンド cmd を実行します。 limit 引数は、 stdout と stderr をラップする StreamReader のバッファ ...
https://man.mtool.work/python/3.14/library/asyncio-subprocess.html
csv --- CSV File Reading and Writing 7975
csv --- CSV File Reading and Writing ソースコード: Lib/csv.py CSV (Comma Separated Values、カンマ区切り値列) と呼ばれる形式は、 スプレッドシートやデータベース間でのデータのインポートやエクスポートにおける最も一般的な形式です。 CSVフォーマッ ... 違いのために、複数のデータ源から得られた CSV ファイルを処理する作業が鬱陶しいものになることがあります。とはいえ、デリミタ (delimiter) やクオート文字の 相違はあっても、全体的な形式は十分似通っているため、こうしたデータを効率的に操作し、データの読み書きに ... 利用例: >>> import csv >>> with open ( 'eggs.csv' , newline = '' ) as csvfile : ... spamreader = csv . reader ( csvfile , delimiter = ' ' , quotechar = '|' ) ... for row in spamreader : ... print ( ', ' . join ( row )) Spam, Spam, Spam, Spam, Spam, Bak ... 短い利用例: import csv with open ( 'eggs.csv' , 'w' , newline = '' ) as csvfile : spamwriter = csv . writer ( csvfile , delimiter = ' ' , quotechar = '|' , quoting = csv . QUOTE_MINIMAL ) spamwriter . writerow ([ 'Spam' ] * 5 + [ 'Baked Beans' ]) spa ...
https://man.mtool.work/python/3.14/library/csv.html
sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース 7910
sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース ソースコード: Lib/sqlite3/ SQLite は、軽量なディスク上のデータベースを提供する C ライブラリです。別のサーバプロセスを用意する必要なく、 SQL クエリー言語の非標準的な一種を使用し ... . backup ( dst ) dst . close () src . close () Added in version 3.7. 参考 UTF-8 以外のテキストエンコーディングの扱い方 getlimit ( category , / ) 接続(connection)の実行時制限を取得します。 パラメータ : category ( int ) -- 問い合わせを行う実行時制限カテ ... ゴリー( SQLite limit category )。 戻り値の型 : int 例外 : ProgrammingError -- category に、 背後の SQLite ライブラリが認識できないカテゴリーを指 ... 定した場合に送出されます。 例: Connection の con の SQL 文の最大長を照会します (デフォルトは 1000000000 です): >>> con . getlimit ( sqlite3 . SQLITE_LIMIT_SQL_LENGTH ) 1000000000 Added in version 3.11. setlimit ( category , limit , / ) 接続の実行時制限 ...
https://man.mtool.work/python/3.14/library/sqlite3.html
The Python Profilers 7846
The Python Profilers Source code: Lib/profile.py and Lib/pstats.py Introduction to the profilers cProfile and profile provide deterministic profiling of Python programs. A profile is a set of statistics that describes how often and for how ... eration done on the object (subject to caveats in add() and strip_dirs() ). The arguments provided (if any) can be used to limit the list down to the significant entries. Initially, the list is taken to be the complete set of profiled functions. Each ... everal restrictions are provided, then they are applied sequentially. For example: print_stats ( .1 , 'foo:' ) would first limit the printing to first 10% of list, and then only print functions that were part of filename .*foo: . In contrast, the comm ... and: print_stats ( 'foo:' , .1 ) would limit the list to all functions having file names .*foo: , and then proceed to only print the first 10% of them. print_callers ( ...
https://man.mtool.work/python/3.14/library/profile.html
PREV 1 2 3 4 NEXT