Results of 1 - 10 of about 298 for pass (0.033 sec.)
- The Python 2.3 Method Resolution Order — Python 3.14.8 ドキュメント 14163
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » The Python 2.3 Method Resolution Order テーマ 自動 ライト ダーク | The Python 2.3 Method Resolution Order ¶ 注釈 This is a historical document, pr
...the desired properties. Here I give an example of this situation. Consider the hierarchy >>> O = object >>> class X ( O ): pass >>> class Y ( O ): pass >>> class A ( X , Y ): pass >>> class B ( Y , X ): pass which can be represented with the followin...thout a couple of examples ;-) 使用例 ¶ First example. Consider the following hierarchy: >>> O = object >>> class F ( O ): pass >>> class E ( O ): pass >>> class D ( O ): pass >>> class C ( D , F ): pass >>> class B ( D , E ): pass >>> class A ( B ,...C ): pass In this case the inheritance graph can be drawn as: 6 --- Level 3 | O | (more general) / --- \ / | \ | / | \ | / | \ | ---... - https://man.mtool.work/python/3.14/howto/mro.html
- The Python 2.3 Method Resolution Order — Python 3.14.8 ドキュメント 14163
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » The Python 2.3 Method Resolution Order テーマ 自動 ライト ダーク | The Python 2.3 Method Resolution Order ¶ 注釈 This is a historical document, pr
...the desired properties. Here I give an example of this situation. Consider the hierarchy >>> O = object >>> class X ( O ): pass >>> class Y ( O ): pass >>> class A ( X , Y ): pass >>> class B ( Y , X ): pass which can be represented with the followin...thout a couple of examples ;-) 使用例 ¶ First example. Consider the following hierarchy: >>> O = object >>> class F ( O ): pass >>> class E ( O ): pass >>> class D ( O ): pass >>> class C ( D , F ): pass >>> class B ( D , E ): pass >>> class A ( B ,...C ): pass In this case the inheritance graph can be drawn as: 6 --- Level 3 | O | (more general) / --- \ / | \ | / | \ | / | \ | ---... - https://man.mtool.work/python/3.14/howto/mro.html
- timeit --- 小さなコードスニペットの実行時間計測 — Python 3.14.8 ドキュメント 8848
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » timeit --- 小さなコードスニペットの実行時間計測 テーマ 自動 ライト ダーク | timeit --- 小さなコードスニペ
...明しています。 Python Interface ¶ このモジュールは 3 つの有用な関数と 1 つの公開クラスを持っています: timeit. timeit ( stmt='pass' , setup='pass' , timer=<default timer> , number=1000000 , globals=None ) ¶ 与えられた文、 setup コードおよび timer 関数で...はコードを実行する名前空間を指定します。 バージョン 3.5 で変更: 任意の globals 引数が追加されました。 timeit. repeat ( stmt='pass' , setup='pass' , timer=<default timer> , repeat=5 , number=1000000 , globals=None ) ¶ 与えられた文、 setup コードおよび t...秒を返します。 バージョン 3.3 で変更: デフォルトのタイマーが time.perf_counter() になりました。 class timeit. Timer ( stmt='pass' , setup='pass' , timer=<timer function> , globals=None ) ¶ 小さなコード片の実行時間を計測するためのクラスです。 コンストラ... - https://man.mtool.work/python/3.14/library/timeit.html
- timeit --- 小さなコードスニペットの実行時間計測 — Python 3.14.8 ドキュメント 8848
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » timeit --- 小さなコードスニペットの実行時間計測 テーマ 自動 ライト ダーク | timeit --- 小さなコードスニペ
...明しています。 Python Interface ¶ このモジュールは 3 つの有用な関数と 1 つの公開クラスを持っています: timeit. timeit ( stmt='pass' , setup='pass' , timer=<default timer> , number=1000000 , globals=None ) ¶ 与えられた文、 setup コードおよび timer 関数で...はコードを実行する名前空間を指定します。 バージョン 3.5 で変更: 任意の globals 引数が追加されました。 timeit. repeat ( stmt='pass' , setup='pass' , timer=<default timer> , repeat=5 , number=1000000 , globals=None ) ¶ 与えられた文、 setup コードおよび t...秒を返します。 バージョン 3.3 で変更: デフォルトのタイマーが time.perf_counter() になりました。 class timeit. Timer ( stmt='pass' , setup='pass' , timer=<timer function> , globals=None ) ¶ 小さなコード片の実行時間を計測するためのクラスです。 コンストラ... - https://man.mtool.work/python/3.14/library/timeit.html
- 変更履歴 — Python 3.14.8 ドキュメント 7228
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...asyncio : loop.start_tls() and loop.create_connection() now validate the server_hostname argument if an ssl.SSLContext is passed with check_hostname set to True . gh-156793 : ssl.SSLContext.wrap_bio() now validates its server_side , server_hostname...ents similar to ssl.SSLContext.wrap_socket() . In particular, a context with check_hostname enabled and no server_hostname passed to wrap_bio() now raises ValueError instead of completing a handshake that verified the certificate chain without verify...not consider Unicode codepoint attributes beyond those defined in RFC 3454 . gh-155694 : Fix CVE 2026-15806 by scoping HTTPPasswordMgr credentials to the URL scheme, preventing credentials stored for an HTTPS URL from being used for a matching HTTP U... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 6489
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...ort NewType UserId = NewType ( 'UserId' , int ) # 実行時にエラーとなり、型チェックも通らない class AdminUserId ( UserId ): pass しかし、 'derived' である NewType をもとにした NewType は作ることが出来ます: from typing import NewType UserId = NewType (...ます: from typing import Any a : Any = None a = [] # OK a = 2 # OK s : str = '' s = a # OK def foo ( item : Any ) -> int : # Passes type checking; 'item' could be any type, # and that type might have a 'bar' method item . bar () ... Any 型の値をより詳細...# Fails type checking; an object does not have a 'magic' method. item . magic () ... def hash_b ( item : Any ) -> int : # Passes type checking item . magic () ... # Passes type checking, since ints and strs are subclasses of object hash_a ( 42 ) has... - https://man.mtool.work/python/3.14/library/typing.html
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 6489
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...ort NewType UserId = NewType ( 'UserId' , int ) # 実行時にエラーとなり、型チェックも通らない class AdminUserId ( UserId ): pass しかし、 'derived' である NewType をもとにした NewType は作ることが出来ます: from typing import NewType UserId = NewType (...ます: from typing import Any a : Any = None a = [] # OK a = 2 # OK s : str = '' s = a # OK def foo ( item : Any ) -> int : # Passes type checking; 'item' could be any type, # and that type might have a 'bar' method item . bar () ... Any 型の値をより詳細...# Fails type checking; an object does not have a 'magic' method. item . magic () ... def hash_b ( item : Any ) -> int : # Passes type checking item . magic () ... # Passes type checking, since ints and strs are subclasses of object hash_a ( 42 ) has... - https://man.mtool.work/python/3.14/library/typing.html
- symtable --- コンパイラーの記号表へのアクセス — Python 3.14.8 ドキュメント 6423
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » symtable --- コンパイラーの記号表へのアクセス テーマ 自動 ライト ダーク | symtable --- コンパイラーの記号表への
...lass) are not picked up by get_methods() . 例えば: >>> import symtable >>> st = symtable . symtable ( ''' ... def outer(): pass ... ... class A: ... def f(): ... def w(): pass ... ... def g(self): pass ... ... @classmethod ... async def h(cls): pass...... ... global outer ... def outer(self): pass ... ''' , 'test' , 'exec' ) >>> class_A = st . get_children ()[ 2 ] >>> class_A . get_methods () ('f', 'g', 'h') Although...が関数または class 文のターゲットとして使われるならば、真です。 例えば: >>> table = symtable . symtable ( "def some_func(): pass" , "string" , "exec" ) >>> table . lookup ( "some_func" ) . is_namespace () True 一つの名前が複数のオブジェクトに束縛されう... - https://man.mtool.work/python/3.14/library/symtable.html
- symtable --- コンパイラーの記号表へのアクセス — Python 3.14.8 ドキュメント 6423
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » symtable --- コンパイラーの記号表へのアクセス テーマ 自動 ライト ダーク | symtable --- コンパイラーの記号表への
...lass) are not picked up by get_methods() . 例えば: >>> import symtable >>> st = symtable . symtable ( ''' ... def outer(): pass ... ... class A: ... def f(): ... def w(): pass ... ... def g(self): pass ... ... @classmethod ... async def h(cls): pass...... ... global outer ... def outer(self): pass ... ''' , 'test' , 'exec' ) >>> class_A = st . get_children ()[ 2 ] >>> class_A . get_methods () ('f', 'g', 'h') Although...が関数または class 文のターゲットとして使われるならば、真です。 例えば: >>> table = symtable . symtable ( "def some_func(): pass" , "string" , "exec" ) >>> table . lookup ( "some_func" ) . is_namespace () True 一つの名前が複数のオブジェクトに束縛されう... - https://man.mtool.work/python/3.14/library/symtable.html
- 4. その他の制御フローツール — Python 3.14.8 ドキュメント 6015
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 4. その他の制御フローツール テーマ 自動 ライト ダーク | 4. その他の制御フローツール ¶ 前章で紹介した while 文の他にも、 Python にはいくつ
...プの else 句は break されなかった場合に実行されます。 try 文と例外についての詳細は 例外を処理する を参照してください。 4.6. pass 文 ¶ pass 文は何もしません。 pass は、文を書くことが構文上要求されているが、プログラム上何の動作もする必要がない時に使われ...ます: >>> while True : ... pass # キーボード割り込み(Ctrl+C)のためのビジーウェイト ... これは最小のクラスを作るときによく使われる方法です: >>> class MyEmp...tyClass : ... pass ... pass のもう 1 つの使い道は、新しいコードを書いているときの関数や条件文の仮置きの本体としてです。こうすることで、より抽... - https://man.mtool.work/python/3.14/tutorial/controlflow.html