per page, with , order by , clip by
Results of 1 - 10 of about 27 for were (0.006 sec.)
8. エラーと例外 13364
8. エラーと例外 これまでエラーメッセージについては簡単に触れるだけでしたが、チュートリアル中の例を自分で試していたら、実際にいくつかのエラーメッセージを見ていることでしょう。エラーには (少なくとも) 二つのはっきり異なる種類があります。それは ... 捉できます。: >>> def f (): ... excs = [ OSError ( 'error 1' ), SystemError ( 'error 2' )] ... raise ExceptionGroup ( 'there were problems' , excs ) ... >>> f () + Exception Group Traceback (most recent call last): | File "<stdin>", line 1, in <module> ... | f() | ~^^ | File "<stdin>", line 3, in f | raise ExceptionGroup('there were problems', excs) | ExceptionGroup: there were problems (2 sub-exceptions) +-+---------------- 1 ---------------- | OSError ... () ... except Exception as e : ... print ( f 'caught { type ( e ) } : { e } ' ) ... caught <class 'ExceptionGroup'>: there were problems (2 sub-exceptions) >>> except の代わりに except* を使用すると、グループの中にある特定の型に一致した例外だけを選択 ...
https://man.mtool.work/python/3.14/tutorial/errors.html
The Python Profilers 12820
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 ... r . py : 598 ( _code ) 1 0.000 0.000 0.000 0.000 _parser . py : 435 ( _parse_sub ) The first line indicates that 214 calls were monitored. Of those calls, 207 were primitive , meaning that the call was not induced via recursion. The next line: Ordere ... significant lines. If you want to understand what algorithms are taking time, the above line is what you would use. If you were looking to see what functions were looping a lot, and taking a lot of time, you would do: p . sort_stats ( SortKey . TIME ... means that the embedded line numbers get compared in an odd way. For example, lines 3, 20, and 40 would (if the file names were the same) appear in the string order 20, 3 and 40. In contrast, SortKey.NFL does a numeric compare of the line numbers. In ...
https://man.mtool.work/python/3.14/library/profile.html
Page not found 11998
Page not found Unfortunately we couldn't find the content you were looking for. 他のマニュアルの関連ページ PHP ds-vector.find PHP ds-sequence.find PHP array_find() PHP array_find_key() PHP count_chars() Django 1.7.6 ...
https://man.mtool.work/python/3.14/404.html
gc --- ガベージコレクターインターフェース 8969
gc --- ガベージコレクターインターフェース このモジュールは、循環ガベージコレクタの無効化・検出頻度の調整・デバッグオブションの設定などを行うインターフェースを提供します。また、検出した到達不能オブジェクトのうち、解放する事ができないオブジェ ... った回数です; collected は、この世代内で回収されたオブジェクトの総数です; uncollectable is the total number of objects which were found to be uncollectable (and were therefore moved to the garbage list) inside this generation. Added in version 3.4. gc. ...
https://man.mtool.work/python/3.14/library/gc.html
インタープリタの初期化と終了処理 8146
インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP ... es. This prevents random crashes and/or unexpectedly skipped C++ finalizations further up the call stack when such threads were forcibly exited here in CPython 3.13 and earlier. The CPython runtime thread state C APIs have never had any error reporti ... te that compiled Python bytecode files are platform independent (but not independent from the Python version by which they were compiled!). System administrators will know how to configure the mount or automount programs to share /usr/local between p ...
https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html
Python support for the Linux perf profiler 8146
Python support for the Linux perf profiler author : Pablo Galindo The Linux perf profiler is a very powerful tool that allows you to profile and obtain information about the performance of your application. perf also has a very vibrant ecos ... also create a lot of jitted-XXXX-N.so files in the current directory which are ELF images for all the JIT trampolines that were created by Python. 警告 --call-graph dwarf を指定すると、 perf は対象プロセスのスタックのスナップショットを取得し、 perf.d ...
https://man.mtool.work/python/3.14/howto/perf_profiling.html
What's New In Python 3.6 8146
What's New In Python 3.6 エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yury Selivanov < yury @ magic . io > この記事では 3.5 と比較した Python 3.6 の新機能を解説します。 Python 3.6 は2016年12月23日にリリースされました。 全詳細につい ... SourceFileLoader.load_module() and importlib.machinery.SourcelessFileLoader.load_module() methods are now deprecated. They were the only remaining implementations of importlib.abc.Loader.load_module() in importlib that had not been deprecated in prev ... , traceback.find_lines_from_code , traceback.find_lines , traceback.find_strings , traceback.find_executable_lines methods were removed from the traceback module. They were undocumented methods deprecated since Python 3.2 and equivalent functionality ...
https://man.mtool.work/python/3.14/whatsnew/3.6.html
例外処理 7867
例外処理 この章で説明する関数を使うと、 Python の例外の処理や例外の送出ができるようになります。 Python の例外処理の基本をいくらか理解することが大切です。例外は POSIX errno 変数にやや似た機能を果たします: 発生した中で最も新しいエラーの (スレ ... exceptions that need to be raised. This list contains the unhandled part of orig , if any, as well as the exceptions that were raised from the except* clauses (so they have a different traceback from orig ) and those that were reraised (and have the ...
https://man.mtool.work/python/3.14/c-api/exceptions.html
ast --- 抽象構文木 7867
ast --- 抽象構文木 ソースコード: Lib/ast.py ast モジュールは、Python の抽象構文を表す木を Python アプリケーションで処理するための機能を提供します。 抽象構文自体は Python のリリースごとに変わる可能性がありますが、このモジュールを使えば、現在 ... 。 バージョン 3.13 で非推奨、バージョン 3.15 で削除予定: Previous versions of Python allowed the creation of AST nodes that were missing required fields. Similarly, AST node constructors allowed arbitrary keyword arguments that were set as attributes ...
https://man.mtool.work/python/3.14/library/ast.html
subprocess --- サブプロセス管理 7867
subprocess --- サブプロセス管理 ソースコード: Lib/subprocess.py subprocess モジュールでは、新しいプロセスを生成し、その標準入力、標準出力、標準エラー出力のパイプに接続して、終了コードを取得できます。 このモジュールは、次のような古いモジュー ... のように解釈します: pipe = os . popen ( cmd , 'w' ) ... rc = pipe . close () if rc is not None and rc >> 8 : print ( "There were some errors" ) ==> process = Popen ( cmd , stdin = PIPE ) ... process . stdin . close () if process . wait () != 0 : print ... ( "There were some errors" ) レガシーなシェル呼び出し関数 このモジュールでは、以下のような 2.x commands モジュールからのレガシー関数も提 ...
https://man.mtool.work/python/3.14/library/subprocess.html
PREV 1 2 3 NEXT