Results of 1 - 10 of about 20 for ClassName (0.036 sec.)
- tkinter --- Tcl/Tk の Python インターフェース — Python 3.14.8 ドキュメント 13187
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter --- Tcl/Tk の Python インターフェース テーマ 自動 ライト ダーク | tkinter --- Tcl/Tk の
...ce ; if sequence is also omitted, return a list of all the sequences for which bindings exist on this widget. bind_class ( className , sequence = None , func = None , add = None ) ¶ Like bind() , but bind func to the binding tag className rather than to a...single widget, so that the binding applies to every widget having that tag. className is usually the name of a widget class, such as 'Button' , in which case the binding affects all widgets of that class. The...3.13 で変更: If funcid is given, only that callback is unbound; other callbacks bound to sequence are kept. unbind_class ( className , sequence ) ¶ Remove all bindings for the event pattern sequence from the binding tag className . See bind_class() . unbi... - https://man.mtool.work/python/3.14/library/tkinter.html
- tkinter --- Tcl/Tk の Python インターフェース — Python 3.14.8 ドキュメント 12201
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter --- Tcl/Tk の Python インターフェース テーマ 自動 ライト ダーク | tkinter --- Tcl/Tk の
...ce ; if sequence is also omitted, return a list of all the sequences for which bindings exist on this widget. bind_class ( className , sequence = None , func = None , add = None ) ¶ Like bind() , but bind func to the binding tag className rather than to a...single widget, so that the binding applies to every widget having that tag. className is usually the name of a widget class, such as 'Button' , in which case the binding affects all widgets of that class. The...3.13 で変更: If funcid is given, only that callback is unbound; other callbacks bound to sequence are kept. unbind_class ( className , sequence ) ¶ Remove all bindings for the event pattern sequence from the binding tag className . See bind_class() . unbi... - https://man.mtool.work/python/3.14/library/tkinter.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 10230
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...(または別のオブジェクト) に置換され、テスト終了時に復元されます: >>> from unittest.mock import patch >>> @patch ( 'module.ClassName2' ) ... @patch ( 'module.ClassName1' ) ... def test ( MockClass1 , MockClass2 ): ... module . ClassName1 () ... module . C...lassName2 () ... assert MockClass1 is module . ClassName1 ... assert MockClass2 is module . ClassName2 ... assert MockClass1 . called ... assert MockClass2 . called ... >>> test (...を適用するときの通常の Python の順番) でデコレートされた関数に渡されます。 つまり下から順に適用されるため、上の例では module.ClassName1 のモックが最初に渡されます。 patch() では探索される名前空間内のオブジェクトにパッチをあてることが重要です。通常は単純です... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 9890
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...(または別のオブジェクト) に置換され、テスト終了時に復元されます: >>> from unittest.mock import patch >>> @patch ( 'module.ClassName2' ) ... @patch ( 'module.ClassName1' ) ... def test ( MockClass1 , MockClass2 ): ... module . ClassName1 () ... module . C...lassName2 () ... assert MockClass1 is module . ClassName1 ... assert MockClass2 is module . ClassName2 ... assert MockClass1 . called ... assert MockClass2 . called ... >>> test (...を適用するときの通常の Python の順番) でデコレートされた関数に渡されます。 つまり下から順に適用されるため、上の例では module.ClassName1 のモックが最初に渡されます。 patch() では探索される名前空間内のオブジェクトにパッチをあてることが重要です。通常は単純です... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- 9. クラス — Python 3.14.8 ドキュメント 9227
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 9. クラス テーマ 自動 ライト ダーク | 9. クラス ¶ クラスはデータと機能を組み合わせる方法を提供します。 新規にクラスを作成することで、新し
...新たな意味付けをいくつか取り入れています。 9.3.1. クラス定義の構文 ¶ クラス定義の最も単純な形式は、次のようになります: class ClassName : < statement - 1 > . . . < statement - N > 関数定義 ( def 文) と同様、クラス定義が効果をもつにはまず実行しなければなりませ...ーカルスコープが復帰し、生成されたクラスオブジェクトは復帰したローカルスコープにクラス定義のヘッダで指定した名前 (上の例では ClassName ) で結び付けられます。 9.3.2. クラスオブジェクト ¶ クラスオブジェクトでは2種類の演算、属性参照とインスタンス生成をサポート...トしない言語機能は "クラス" と呼ぶに値しません。派生クラス (derived class) を定義する構文は次のようになります: class DerivedClassName ( BaseClassName ): < statement - 1 > . . . < statement - N > 基底クラス (base class) の名前 BaseClassName は、派生クラス定... - https://man.mtool.work/python/3.14/tutorial/classes.html
- 9. クラス — Python 3.14.8 ドキュメント 9227
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 9. クラス テーマ 自動 ライト ダーク | 9. クラス ¶ クラスはデータと機能を組み合わせる方法を提供します。 新規にクラスを作成することで、新し
...新たな意味付けをいくつか取り入れています。 9.3.1. クラス定義の構文 ¶ クラス定義の最も単純な形式は、次のようになります: class ClassName : < statement - 1 > . . . < statement - N > 関数定義 ( def 文) と同様、クラス定義が効果をもつにはまず実行しなければなりませ...ーカルスコープが復帰し、生成されたクラスオブジェクトは復帰したローカルスコープにクラス定義のヘッダで指定した名前 (上の例では ClassName ) で結び付けられます。 9.3.2. クラスオブジェクト ¶ クラスオブジェクトでは2種類の演算、属性参照とインスタンス生成をサポート...トしない言語機能は "クラス" と呼ぶに値しません。派生クラス (derived class) を定義する構文は次のようになります: class DerivedClassName ( BaseClassName ): < statement - 1 > . . . < statement - N > 基底クラス (base class) の名前 BaseClassName は、派生クラス定... - https://man.mtool.work/python/3.14/tutorial/classes.html
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 8564
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...andle returned" モジュール名は必要に応じて package.module のようにドットを含むことができます: >>> @patch ( 'package.module.ClassName.attribute' , sentinel . attribute ) ... def test (): ... from package.module import ClassName ... assert ClassName . attri...ーンのように patch デコレータを重ねることができます: >>> class MyTest ( unittest . TestCase ): ... @patch ( 'package.module.ClassName1' ) ... @patch ( 'package.module.ClassName2' ) ... def test_something ( self , MockClass2 , MockClass1 ): ... self . asser...tIs ( package . module . ClassName1 , MockClass1 ) ... self . assertIs ( package . module . ClassName2 , MockClass2 ) ... >>> MyTest ( 'test_something' ) . t... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 8564
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...andle returned" モジュール名は必要に応じて package.module のようにドットを含むことができます: >>> @patch ( 'package.module.ClassName.attribute' , sentinel . attribute ) ... def test (): ... from package.module import ClassName ... assert ClassName . attri...ーンのように patch デコレータを重ねることができます: >>> class MyTest ( unittest . TestCase ): ... @patch ( 'package.module.ClassName1' ) ... @patch ( 'package.module.ClassName2' ) ... def test_something ( self , MockClass2 , MockClass1 ): ... self . asser...tIs ( package . module . ClassName1 , MockClass1 ) ... self . assertIs ( package . module . ClassName2 , MockClass2 ) ... >>> MyTest ( 'test_something' ) . t... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
- プログラミング FAQ — Python 3.14.8 ドキュメント 7579
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python よくある質問 » プログラミング FAQ テーマ 自動 ライト ダーク | プログラミング FAQ ¶ 一般的な質問 ¶ ブレークポイントやステップ実行ができる、ソースコードレベ
...: 99 } >>> func3 ( args ) >>> args {'a': 'new-value', 'b': 100} または、クラスインスタンスに値を同梱することによって: >>> class Namespace : ... def __init__ ( self , / , ** args ): ... for key , value in args . items (): ... setattr ( self , key , value...ample: def __init__ ( self , * args ): ... これと同じやり方がすべてのメソッド定義で使えます。 __spam を使おうとしたら _SomeClassName__spam からエラーがでました。 ¶ 先頭にアンダースコアが二つ付いた変数名は、クラスのプライベートな変数を、 "マングル化" という...い方法で定義します。 __spam のような形式 (先頭に二つ以上、末尾にもしあっても一つのアンダースコアがある) のすべての識別子は、 classname が先頭のアンダースコアをすべて削除した現在のクラス名とすれば、 _classname__spam のように文字上で置換えられます。 The ident... - https://man.mtool.work/python/3.14/faq/programming.html
- ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 7579
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as
...を付け加えたサブクラスを派生させることを意図しています。 visit ( node ) ¶ ノードを訪れます。デフォルトの実装では self.visit_ classname というメソッド (ここで classname はノードのクラス名です) を呼び出すか、そのメソッドがなければ generic_visit() を呼び出しま... - https://man.mtool.work/python/3.14/library/ast.html