Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 83 for pass (0.016 sec.)
27.5. timeit --- 小さなコード断片の実行時間計測 — Python 3.6.5 ドキュメント 15446
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... つの公開クラスを持っています: timeit. timeit ( stmt='pass' , setup='pass' , timer=<default timer> , number=1 ... bals 引数が追加されました。 timeit. repeat ( stmt='pass' , setup='pass' , timer=<default timer> , repeat=3 ... unter() になりました。 class timeit. Timer ( stmt='pass' , setup='pass' , timer=<timer function> , globals ... ならびにタイマー関数を取ります。 両文のデフォルトは 'pass' です。 タイマー関数はプラットフォーム依存です (モ ...
https://man.plustar.jp/python/library/timeit.html - [similar]
Argument Clinic How-To — Python 3.6.5 ドキュメント 10678
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Argu ... the exact same function. Second, the format string passed in to PyArg_ParseTuple() or PyArg_ParseTupleAndK ... ents are called x and y ; if you call the function passing in x , you must also pass in y —and if you don' ... t pass in x you may not pass in y either.) In any case, t ... al groups are groups of arguments that must all be passed in together. They can be to the left or the righ ...
https://man.plustar.jp/python/howto/clinic.html - [similar]
29.12. inspect --- 活動中のオブジェクトの情報を取得する — Python 3.6.5 ドキュメ... 10392
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... s, for example, is true of int.__add__ . An object passing this test has a __get__() method but not a __se ... e >>> def foo ( a , * , b : int , ** kwargs ): ... pass >>> sig = signature ( foo ) >>> str ( sig ) '(a, * ... 。 バージョン 3.5 で追加: follow_wrapped parameter. Pass False to get a signature of callable specifically ... urns BoundArguments , or raises a TypeError if the passed arguments do not match the signature. replace ( ...
https://man.plustar.jp/python/library/inspect.html - [similar]
4. その他の制御フローツール — Python 3.6.5 ドキュメント 9808
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... ber 7 Found an even number 8 Found a number 9 4.5. pass 文 ¶ pass 文は何もしません。 pass は、文を書くこと ... もする必要がない時に使われます: >>> while True : ... pass # Busy-wait for keyboard interrupt (Ctrl+C) ... こ ... によく使われる方法です: >>> class MyEmptyClass : ... pass ... pass が使われるもう1つの場所は、新しいコードを ... ドを書かないで抽象的なレベルで考えることができます。 pass は何もすることなく無視されます: >>> def initlog ( ...
https://man.plustar.jp/python/tutorial/controlflow.html - [similar]
7. 単純文 (simple statement) — Python 3.6.5 ドキュメント 9088
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... nted_assignment_stmt | annotated_assignment_stmt | pass_stmt | del_stmt | return_stmt | yield_stmt | raise ... は、インタプリタが開始するときに決定されます。 7.4. pass 文 ¶ pass_stmt ::= "pass" pass はヌル操作 (null op ... eration) です --- pass が実行されても、何も起きません。 pass は、構文法的 ... プレースホルダとして有用です。例えば: def f ( arg ): pass # a function that does nothing (yet) class C : pas ...
https://man.plustar.jp/python/reference/simple_stmts.html - [similar]
26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 8653
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... , 3 ) ... def something ( self , a , b , c ): ... pass ... >>> real = ProductionClass () >>> real . somet ... e mock, regardless of whether some parameters were passed as positional or named arguments: >>> def f ( a ... , b , c ): pass ... >>> mock = Mock ( spec = f ) >>> mock ( 1 , 2 ... ass ProductionClass : ... def method ( self ): ... pass ... >>> with patch . object ( ProductionClass , 'm ...
https://man.plustar.jp/python/library/unittest.mock-examples.html - [similar]
8. エラーと例外 — Python 3.6.5 ドキュメント 8219
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... cept ( RuntimeError , TypeError , NameError ): ... pass except 節のクラスは、例外と同じクラスか基底クラスの ... , D を順序通りに出力します: class B ( Exception ): pass class C ( B ): pass class D ( C ): pass for cls in ... ): """Base class for exceptions in this module.""" pass class InputError ( Error ): """Exception raised fo ...
https://man.plustar.jp/python/tutorial/errors.html - [similar]
10. 完全な文法仕様 — Python 3.6.5 ドキュメント 8083
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... ;' ] NEWLINE small_stmt : ( expr_stmt | del_stmt | pass_stmt | flow_stmt | import_stmt | global_stmt | non ... orced by the interpreter del_stmt : 'del' exprlist pass_stmt : 'pass' flow_stmt : break_stmt | continue_st ... ] # not used in grammar, but may appear in "node" passed from Parser to Compiler encoding_decl : NAME yie ...
https://man.plustar.jp/python/reference/grammar.html - [similar]
8. 複合文 (compound statement) — Python 3.6.5 ドキュメント 7933
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... ば、以下のようなコード: @f1 ( arg ) @f2 def func (): pass は、だいたい次と等価です def func (): pass func = ... トで、基底クラス object を継承するので: class Foo : pass は、以下と同等です class Foo ( object ): pass 次に ... ートすることが出来ます、 @f1 ( arg ) @f2 class Foo : pass は、だいたい次と等価です class Foo : pass Foo = f1 ...
https://man.plustar.jp/python/reference/compound_stmts.html - [similar]
29.6. contextlib --- with 文コンテキスト用ユーティリティ — Python 3.6.5 ドキュ... 7784
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... move ( 'somefile.tmp' ) except FileNotFoundError : pass try : os . remove ( 'someotherfile.tmp' ) except F ... ileNotFoundError : pass このコンテキストマネージャは 再入可能(リエントラン ... stack . push ( self ) yield # The validation check passed and didn't raise an exception # Accordingly, we ... want to keep the resource, and pass it # back to our caller stack . pop_all () def __e ...
https://man.plustar.jp/python/library/contextlib.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 NEXT