Results of 1 - 10 of about 107 for bound (0.010 sec.)
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 10972
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...B : Sequence [ bytes ], S : ( int , str )]: ... OldT = TypeVar ( 'OldT' , contravariant = True ) OldB = TypeVar ( 'OldB' , bound = Sequence [ bytes ], covariant = True ) OldS = TypeVar ( 'OldS' , int , str ) class OldWeirdTrio ( Generic [ OldT , OldB...cally equivalent to the following, albeit in a more succinct fashion: from typing import TypeVar Self = TypeVar ( "Self" , bound = "Foo" ) class Foo : def return_self ( self : Self ) -> Self : ... return self In general, if something returns self , as...eneric [ KT , VT ]): def __getitem__ ( self , key : KT ) -> VT : ... # Etc. class typing. TypeVar ( name , * constraints , bound = None , covariant = False , contravariant = False , infer_variance = False , default = typing.NoDefault ) ¶ 型変数です。... - https://man.mtool.work/python/3.14/library/typing.html
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 10972
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...B : Sequence [ bytes ], S : ( int , str )]: ... OldT = TypeVar ( 'OldT' , contravariant = True ) OldB = TypeVar ( 'OldB' , bound = Sequence [ bytes ], covariant = True ) OldS = TypeVar ( 'OldS' , int , str ) class OldWeirdTrio ( Generic [ OldT , OldB...cally equivalent to the following, albeit in a more succinct fashion: from typing import TypeVar Self = TypeVar ( "Self" , bound = "Foo" ) class Foo : def return_self ( self : Self ) -> Self : ... return self In general, if something returns self , as...eneric [ KT , VT ]): def __getitem__ ( self , key : KT ) -> VT : ... # Etc. class typing. TypeVar ( name , * constraints , bound = None , covariant = False , contravariant = False , infer_variance = False , default = typing.NoDefault ) ¶ 型変数です。... - https://man.mtool.work/python/3.14/library/typing.html
- asyncio and free-threaded Python — Python 3.14.8 ドキュメント 9693
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio and free-threaded Python テーマ 自動 ライト ダーク | asyncio an
...nt concurrency by switching between tasks to allow non-blocking I/O operations. This results in better performance for I/O-bound use cases. It also allows off-loading CPU-bound work to a thread or process pool, but that is still limited by the global...f different requests can run in parallel across multiple CPU cores. It is also useful when you need to run blocking or CPU-bound code from an asyncio application. 参考 Scaling asyncio on Free-Threaded Python , a blog post by Kumar Aditya which explain...event queue threaded consumer free safe Queue threading import multiple cores runs across Thread None print producer tasks bound still code 目次 asyncio and free-threaded Python Thread safety considerations Using asyncio with threads Producer/consumer... - https://man.mtool.work/python/3.14/library/asyncio-threading.html
- 8. 複合文 (compound statement) — Python 3.14.8 ドキュメント 9514
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 8. 複合文 (compound statement) テーマ 自動 ライト ダーク | 8. 複合文 (compound statement) ¶ 複合文には、他の文 (のグループ) が入ります;
...asterisks (e.g., **P ). Semantically, this stands for the parameters of a callable. typing.TypeVar declarations can define bounds and constraints with a colon ( : ) followed by an expression. A single expression after the colon indicates a bound (e.g....T: int ). Semantically, this means that the typing.TypeVar can only represent types that are a subtype of this bound. A parenthesized tuple of expressions after the colon indicates a set of constraints (e.g. T: (str, bytes) ). Each member...ke on one of the types in the list of constraints. For typing.TypeVar s declared using the type parameter list syntax, the bound and constraints are not evaluated when the generic object is created, but only when the value is explicitly accessed throu... - https://man.mtool.work/python/3.14/reference/compound_stmts.html
- 8. 複合文 (compound statement) — Python 3.14.8 ドキュメント 9514
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 8. 複合文 (compound statement) テーマ 自動 ライト ダーク | 8. 複合文 (compound statement) ¶ 複合文には、他の文 (のグループ) が入ります;
...asterisks (e.g., **P ). Semantically, this stands for the parameters of a callable. typing.TypeVar declarations can define bounds and constraints with a colon ( : ) followed by an expression. A single expression after the colon indicates a bound (e.g....T: int ). Semantically, this means that the typing.TypeVar can only represent types that are a subtype of this bound. A parenthesized tuple of expressions after the colon indicates a set of constraints (e.g. T: (str, bytes) ). Each member...ke on one of the types in the list of constraints. For typing.TypeVar s declared using the type parameter list syntax, the bound and constraints are not evaluated when the generic object is created, but only when the value is explicitly accessed throu... - https://man.mtool.work/python/3.14/reference/compound_stmts.html
- 7. 単純文 (simple statement) — Python 3.14.8 ドキュメント 9143
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 7. 単純文 (simple statement) テーマ 自動 ライト ダーク | 7. 単純文 (simple statement) ¶ 単純文とは、単一の論理行内に収められる文です。単
...uate to a mutable sequence object (such as a list). The assigned object should be iterable . The slicing's lower and upper bounds should be integers; if they are None (or not present), the defaults are zero and the sequence's length. If either bound i...s negative, the sequence's length is added to it. The resulting bounds are clipped to lie between zero and the sequence's length, inclusive. Finally, the sequence object is asked to replace th...global namespace, depending on whether the name occurs in a global statement in the same code block. Trying to delete an unbound name raises a NameError exception. Deletion of attribute references and subscriptions is passed to the primary object invo... - https://man.mtool.work/python/3.14/reference/simple_stmts.html
- 7. 単純文 (simple statement) — Python 3.14.8 ドキュメント 9143
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 7. 単純文 (simple statement) テーマ 自動 ライト ダーク | 7. 単純文 (simple statement) ¶ 単純文とは、単一の論理行内に収められる文です。単
...uate to a mutable sequence object (such as a list). The assigned object should be iterable . The slicing's lower and upper bounds should be integers; if they are None (or not present), the defaults are zero and the sequence's length. If either bound i...s negative, the sequence's length is added to it. The resulting bounds are clipped to lie between zero and the sequence's length, inclusive. Finally, the sequence object is asked to replace th...global namespace, depending on whether the name occurs in a global statement in the same code block. Trying to delete an unbound name raises a NameError exception. Deletion of attribute references and subscriptions is passed to the primary object invo... - https://man.mtool.work/python/3.14/reference/simple_stmts.html
- 並行実行 — Python 3.14.8 ドキュメント 8785
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 テーマ 自動 ライト ダーク | 並行実行 ¶ この章で記述されているモジュールは、コードの並行実行のサポートを提供します。ツールの
...適切な選択は、実行されるタスク(IO bound vs CPU bound) や推奨される開発スタイル (イベントドリブンな協調的マルチタスク vs プリエンプティブマルチタスク) に依存します...変数 開始 方式 同期 共有 キュー マネージャー spawn concurrent Interpreters subprocess Popen Windows Replacing 並行 タスク bound スレッド ベース 前のトピックへ cmd --- 行指向のコマンドインタープリターのサポート 次のトピックへ threading --- スレッドベー... - https://man.mtool.work/python/3.14/library/concurrency.html
- asyncio and free-threaded Python — Python 3.14.8 ドキュメント 8593
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio and free-threaded Python テーマ 自動 ライト ダーク | asyncio an
...nt concurrency by switching between tasks to allow non-blocking I/O operations. This results in better performance for I/O-bound use cases. It also allows off-loading CPU-bound work to a thread or process pool, but that is still limited by the global...f different requests can run in parallel across multiple CPU cores. It is also useful when you need to run blocking or CPU-bound code from an asyncio application. 参考 Scaling asyncio on Free-Threaded Python , a blog post by Kumar Aditya which explain... - https://man.mtool.work/python/3.14/library/asyncio-threading.html
- symtable --- コンパイラーの記号表へのアクセス — Python 3.14.8 ドキュメント 8593
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » symtable --- コンパイラーの記号表へのアクセス テーマ 自動 ライト ダーク | symtable --- コンパイラーの記号表への
...symbol table of generic functions or generic classes . TYPE_VARIABLE = "type variable" ¶ Used for the symbol table of the bound, the constraint tuple or the default value of a single type variable in the formal sense, i.e., a TypeVar, a TypeVarTuple...or a ParamSpec object (the latter two do not support a bound or a constraint tuple). Added in version 3.13. class symtable. SymbolTable ¶ ブロックに対する名前空間の記号表。コンストラク...ble. Possible values are members of the SymbolTableType enumeration. バージョン 3.12 で変更: Added 'annotation' , 'TypeVar bound' , 'type alias' , and 'type parameter' as possible return values. バージョン 3.13 で変更: Return values are members of the... - https://man.mtool.work/python/3.14/library/symtable.html