per page, with , order by , clip by
Results of 1 - 10 of about 357 for last (0.013 sec.)
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 12949
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... ォルトの文字列表現やエラーメッセージに現れます。例えば次の通りです: >>> "" + custom . Custom () Traceback (most recent call last): File "<stdin>" , line 1 , in <module> TypeError : can only concatenate str (not "custom.Custom") to str 型の名前が、モジ ... .h> #include <stddef.h> /* for offsetof() */ typedef struct { PyObject_HEAD PyObject * first ; /* first name */ PyObject * last ; /* last name */ int number ; } CustomObject ; static void Custom_dealloc ( PyObject * op ) { CustomObject * self = ( Cus ... tomObject * ) op ; Py_XDECREF ( self -> first ); Py_XDECREF ( self -> last ); Py_TYPE ( self ) -> tp_free ( self ); } static PyObject * Custom_new ( PyTypeObject * type , PyObject * args , PyObject ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 12949
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... ォルトの文字列表現やエラーメッセージに現れます。例えば次の通りです: >>> "" + custom . Custom () Traceback (most recent call last): File "<stdin>" , line 1 , in <module> TypeError : can only concatenate str (not "custom.Custom") to str 型の名前が、モジ ... .h> #include <stddef.h> /* for offsetof() */ typedef struct { PyObject_HEAD PyObject * first ; /* first name */ PyObject * last ; /* last name */ int number ; } CustomObject ; static void Custom_dealloc ( PyObject * op ) { CustomObject * self = ( Cus ... tomObject * ) op ; Py_XDECREF ( self -> first ); Py_XDECREF ( self -> last ); Py_TYPE ( self ) -> tp_free ( self ); } static PyObject * Custom_new ( PyTypeObject * type , PyObject * args , PyObject ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
tkinter --- Tcl/Tk の Python インターフェース — Python 3.14.8 ドキュメント 7901
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter --- Tcl/Tk の Python インターフェース テーマ 自動 ライト ダーク | tkinter --- Tcl/Tk の ... 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 set and API: from tkinter import * from tkinter import ttk ... of the selection, set with the widget's selection methods; the string "end" , which refers to the position just after the last character; the string "insert" , which refers to the character just after the insertion cursor; the strings "sel.first" an ... d "sel.last" , which refer to the first character in the selection and the position just after the last (it is an error to use these i ...
https://man.mtool.work/python/3.14/library/tkinter.html
traceback --- スタックトレースの表示または取得 — Python 3.14.8 ドキュメント 7429
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » traceback --- スタックトレースの表示または取得 テーマ 自動 ライト ダーク | traceback --- スタックトレー ... stack trace entries from traceback object tb (starting from the caller's frame) if limit is positive. Otherwise, print the last abs(limit) entries. If limit is omitted or None , all entries are printed. If file is omitted or None , the output goes to ... file に出力します。 この関数は以下の点で print_tb() と異なります: tb が None でない場合ヘッダ Traceback (most recent call last): を出力します スタックトレースの後に例外タイプと value を出力します type(value) が SyntaxError であり、 value が適切な形式 ... , chain = True ) ¶ print_exception(sys.exception(), limit=limit, file=file, chain=chain) の省略表現です。 traceback. print_last ( limit = None , file = None , chain = True ) ¶ print_exception(sys.last_exc, limit=limit, file=file, chain=chain) の省略表 ...
https://man.mtool.work/python/3.14/library/traceback.html
traceback --- スタックトレースの表示または取得 — Python 3.14.8 ドキュメント 7250
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » traceback --- スタックトレースの表示または取得 テーマ 自動 ライト ダーク | traceback --- スタックトレー ... stack trace entries from traceback object tb (starting from the caller's frame) if limit is positive. Otherwise, print the last abs(limit) entries. If limit is omitted or None , all entries are printed. If file is omitted or None , the output goes to ... file に出力します。 この関数は以下の点で print_tb() と異なります: tb が None でない場合ヘッダ Traceback (most recent call last): を出力します スタックトレースの後に例外タイプと value を出力します type(value) が SyntaxError であり、 value が適切な形式 ... , chain = True ) ¶ print_exception(sys.exception(), limit=limit, file=file, chain=chain) の省略表現です。 traceback. print_last ( limit = None , file = None , chain = True ) ¶ print_exception(sys.last_exc, limit=limit, file=file, chain=chain) の省略表 ...
https://man.mtool.work/python/3.14/library/traceback.html
8. エラーと例外 — Python 3.14.8 ドキュメント 7188
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 + spam * 3 Traceback ... (most recent call last): File "<stdin>" , line 1 , in <module> 4 + spam * 3 ^^^^ NameError : name 'spam' is not defined >>> '2' + 2 Traceback (mo ... st recent call last): File "<stdin>" , line 1 , in <module> '2' + 2 ~~~~^~~ TypeError : can only concatenate str (not "int") to str エラーメッ ...
https://man.mtool.work/python/3.14/tutorial/errors.html
8. エラーと例外 — Python 3.14.8 ドキュメント 7188
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 + spam * 3 Traceback ... (most recent call last): File "<stdin>" , line 1 , in <module> 4 + spam * 3 ^^^^ NameError : name 'spam' is not defined >>> '2' + 2 Traceback (mo ... st recent call last): File "<stdin>" , line 1 , in <module> '2' + 2 ~~~~^~~ TypeError : can only concatenate str (not "int") to str エラーメッ ...
https://man.mtool.work/python/3.14/tutorial/errors.html
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 6947
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ): ... return values [ arg ] ... 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__ メソッドのシグニ ... ock . 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()]. Added in versi ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 6947
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ): ... return values [ arg ] ... 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__ メソッドのシグニ ... ock . 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()]. Added in versi ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
ctypes --- Python 用の外部関数ライブラリ — Python 3.14.8 ドキュメント 6653
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 汎用オペレーティングシステムサービス » ctypes --- Python 用の外部関数ライブラリ テーマ 自動 ライト ダーク | ctypes --- Python 用の外 ... 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 = _StdcallFuncPtr ( name , self ... でアクセスします: >>> 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 = _StdcallFuncPtr ( name , self ... ValueError が送出されます。逆の場合も同様です: >>> cdll . kernel32 . GetModuleHandleA ( None ) Traceback (most recent call last): File "<stdin>" , line 1 , in <module> ValueError : Procedure probably called with not enough arguments (4 bytes missing) ...
https://man.mtool.work/python/3.14/library/ctypes.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT