Results of 1 - 10 of about 406 for most (0.013 sec.)
- 8. エラーと例外 — Python 3.14.8 ドキュメント 9489
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 8. エラーと例外 テーマ 自動 ライト ダーク | 8. エラーと例外 ¶ これまでエラーメッセージについては簡単に触れるだけでしたが、チュートリアル中
...でいきます。ほとんどの例外はプログラムで処理されず、以下に示されるようなメッセージになります: >>> 10 * ( 1 / 0 ) Traceback (most recent call last): File "<stdin>" , line 1 , in <module> 10 * ( 1 / 0 ) ~^~ ZeroDivisionError : division by zero >>> 4 + s...pam * 3 Traceback (most recent call last): File "<stdin>" , line 1 , in <module> 4 + spam * 3 ^^^^ NameError : name 'spam' is not defined >>> '2'...+ 2 Traceback (most recent call last): File "<stdin>" , line 1 , in <module> '2' + 2 ~~~~^~~ TypeError : can only concatenate str (not "int")... - https://man.mtool.work/python/3.14/tutorial/errors.html
- 8. エラーと例外 — Python 3.14.8 ドキュメント 9489
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 8. エラーと例外 テーマ 自動 ライト ダーク | 8. エラーと例外 ¶ これまでエラーメッセージについては簡単に触れるだけでしたが、チュートリアル中
...でいきます。ほとんどの例外はプログラムで処理されず、以下に示されるようなメッセージになります: >>> 10 * ( 1 / 0 ) Traceback (most recent call last): File "<stdin>" , line 1 , in <module> 10 * ( 1 / 0 ) ~^~ ZeroDivisionError : division by zero >>> 4 + s...pam * 3 Traceback (most recent call last): File "<stdin>" , line 1 , in <module> 4 + spam * 3 ^^^^ NameError : name 'spam' is not defined >>> '2'...+ 2 Traceback (most recent call last): File "<stdin>" , line 1 , in <module> '2' + 2 ~~~~^~~ TypeError : can only concatenate str (not "int")... - https://man.mtool.work/python/3.14/tutorial/errors.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 8261
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...実行できます: >>> from unittest.mock import Mock >>> mock = Mock ( side_effect = KeyError ( 'foo' )) >>> mock () Traceback (most recent call last): ... KeyError : 'foo' >>> values = { 'a' : 1 , 'b' : 2 , 'c' : 3 } >>> def side_effect ( arg ): ... retu..., 3 ) 'fishy' >>> mock_function . assert_called_once_with ( 1 , 2 , 3 ) >>> mock_function ( 'wrong arguments' ) Traceback (most recent call last): ... TypeError : missing a required argument: 'b' create_autospec() はクラスにおいても利用でき、 __init_...led_once () >>> mock . method () <Mock name='mock.method()' id='...'> >>> mock . method . assert_called_once () Traceback (most recent call last): ... AssertionError : Expected 'method' to have been called once. Called 2 times. Calls: [call(), call()... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 8261
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...実行できます: >>> from unittest.mock import Mock >>> mock = Mock ( side_effect = KeyError ( 'foo' )) >>> mock () Traceback (most recent call last): ... KeyError : 'foo' >>> values = { 'a' : 1 , 'b' : 2 , 'c' : 3 } >>> def side_effect ( arg ): ... retu..., 3 ) 'fishy' >>> mock_function . assert_called_once_with ( 1 , 2 , 3 ) >>> mock_function ( 'wrong arguments' ) Traceback (most recent call last): ... TypeError : missing a required argument: 'b' create_autospec() はクラスにおいても利用でき、 __init_...led_once () >>> mock . method () <Mock name='mock.method()' id='...'> >>> mock . method . assert_called_once () Traceback (most recent call last): ... AssertionError : Expected 'method' to have been called once. Called 2 times. Calls: [call(), call()... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- tkinter --- Tcl/Tk の Python インターフェース — Python 3.14.8 ドキュメント 7646
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter --- Tcl/Tk の Python インターフェース テーマ 自動 ライト ダーク | tkinter --- Tcl/Tk の
...user interface components along with a new API to use them (see tkinter.ttk ). Both old and new APIs are still available. Most documentation you will find online still uses the old API and can be woefully outdated. This is an optional module . If it...programming language, just like Python. Though it can be used on its own as a general-purpose programming language, it is most commonly embedded into C applications as a scripting engine or an interface to the Tk toolkit. The Tcl library has a C int...ch will in turn make calls to Xlib, Cocoa, or GDI. Tkinter modules ¶ Support for Tkinter is spread across several modules. Most applications will need the main tkinter module, as well as the tkinter.ttk module, which provides the modern themed widget... - https://man.mtool.work/python/3.14/library/tkinter.html
- tkinter --- Tcl/Tk の Python インターフェース — Python 3.14.8 ドキュメント 7134
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter --- Tcl/Tk の Python インターフェース テーマ 自動 ライト ダーク | tkinter --- Tcl/Tk の
...user interface components along with a new API to use them (see tkinter.ttk ). Both old and new APIs are still available. Most documentation you will find online still uses the old API and can be woefully outdated. This is an optional module . If it...programming language, just like Python. Though it can be used on its own as a general-purpose programming language, it is most commonly embedded into C applications as a scripting engine or an interface to the Tk toolkit. The Tcl library has a C int...ch will in turn make calls to Xlib, Cocoa, or GDI. Tkinter modules ¶ Support for Tkinter is spread across several modules. Most applications will need the main tkinter module, as well as the tkinter.ttk module, which provides the modern themed widget... - https://man.mtool.work/python/3.14/library/tkinter.html
- Floating-Point Objects — Python 3.14.8 ドキュメント 7032
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » Floating-Point Objects テーマ 自動 ライト ダーク | Floating-Point Objects ¶ type PyFl
...ます。 Py_INFINITY ¶ This macro expands to a constant expression of type double , that represents the positive infinity. On most platforms, this is equivalent to the INFINITY macro from the C11 standard <math.h> header. Py_NAN ¶ This macro expands to...a constant expression of type double , that represents a quiet not-a-number (qNaN) value. On most platforms, this is equivalent to the NAN macro from the C11 standard <math.h> header. Py_HUGE_VAL ¶ Equivalent to INFINITY...ate for a double type) of the math.tau constant. Added in version 3.6. Py_RETURN_NAN ¶ Return math.nan from a function. On most platforms, this is equivalent to return PyFloat_FromDouble(NAN) . Py_RETURN_INF ( sign ) ¶ Return math.inf or -math.inf fr... - https://man.mtool.work/python/3.14/c-api/float.html
- ctypes --- Python 用の外部関数ライブラリ — Python 3.14.8 ドキュメント 7032
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 汎用オペレーティングシステムサービス » ctypes --- Python 用の外部関数ライブラリ テーマ 自動 ライト ダーク | ctypes --- Python 用の外
...SError の別名になっています。 Here are some examples for Windows. Note that msvcrt is the MS standard C library containing most standard C functions, and uses the cdecl calling convention: >>> from ctypes import * >>> print ( windll . kernel32 ) <Win...ndll . kernel32 . GetModuleHandleA ) <_FuncPtr object at 0x...> >>> print ( windll . kernel32 . MyOwnFunction ) Traceback (most recent call last): File "<stdin>" , line 1 , in <module> File "ctypes.py" , line 239 , in __getattr__ func = _StdcallFuncP...クス指定することでアクセスします: >>> cdll . kernel32 [ 1 ] <_FuncPtr object at 0x...> >>> cdll . kernel32 [ 0 ] Traceback (most recent call last): File "<stdin>" , line 1 , in <module> File "ctypes.py" , line 310 , in __getitem__ func = _StdcallFuncP... - https://man.mtool.work/python/3.14/library/ctypes.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 6929
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
..., run_globals ) File "/usr/lib/python3.4/runpy.py" , line 160 "__main__" , fname , loader , pkg_name ) We can see that the most memory was allocated in the importlib module to load data (bytecode and constants) from modules: 870.1 KiB . The traceback...is where the importlib loaded data most recently: on the import pdb line of the doctest module. The traceback may change if a new module is loaded. top を整形化す...k If cumulative is True , cumulate size and count of memory blocks of all frames of the traceback of a trace, not only the most recent frame. The cumulative mode can only be used with key_type equal to 'filename' and 'lineno' . 結果は降順でソートされ... - https://man.mtool.work/python/3.14/library/tracemalloc.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 6929
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
..., run_globals ) File "/usr/lib/python3.4/runpy.py" , line 160 "__main__" , fname , loader , pkg_name ) We can see that the most memory was allocated in the importlib module to load data (bytecode and constants) from modules: 870.1 KiB . The traceback...is where the importlib loaded data most recently: on the import pdb line of the doctest module. The traceback may change if a new module is loaded. top を整形化す...k If cumulative is True , cumulate size and count of memory blocks of all frames of the traceback of a trace, not only the most recent frame. The cumulative mode can only be used with key_type equal to 'filename' and 'lineno' . 結果は降順でソートされ... - https://man.mtool.work/python/3.14/library/tracemalloc.html