Results of 1 - 10 of about 52 for hand (0.006 sec.)
- dataclasses --- データクラス — Python 3.14.8 ドキュメント 14547
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » dataclasses --- データクラス テーマ 自動 ライト ダーク | dataclasses --- データクラス ¶ ソースコード: L
...ass class InventoryItem : """Class for keeping track of an item in inventory.""" name : str unit_price : float quantity_on_hand : int = 0 def total_cost ( self ) -> float : return self . unit_price * self . quantity_on_hand とりわけ、以下のような __i...nit__() が追加されます: def __init__ ( self , name : str , unit_price : float , quantity_on_hand : int = 0 ): self . name = name self . unit_price = unit_price self . quantity_on_hand = quantity_on_hand このメソッドは自...ed as being excluded from the repr are not included. For example: InventoryItem(name='widget', unit_price=3.0, quantity_on_hand=10) . If the class already defines __repr__() , this parameter is ignored. eq : If true (the default), an __eq__() method... - https://man.mtool.work/python/3.14/library/dataclasses.html
- dataclasses --- データクラス — Python 3.14.8 ドキュメント 13800
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » dataclasses --- データクラス テーマ 自動 ライト ダーク | dataclasses --- データクラス ¶ ソースコード: L
...ass class InventoryItem : """Class for keeping track of an item in inventory.""" name : str unit_price : float quantity_on_hand : int = 0 def total_cost ( self ) -> float : return self . unit_price * self . quantity_on_hand とりわけ、以下のような __i...nit__() が追加されます: def __init__ ( self , name : str , unit_price : float , quantity_on_hand : int = 0 ): self . name = name self . unit_price = unit_price self . quantity_on_hand = quantity_on_hand このメソッドは自...ed as being excluded from the repr are not included. For example: InventoryItem(name='widget', unit_price=3.0, quantity_on_hand=10) . If the class already defines __repr__() , this parameter is ignored. eq : If true (the default), an __eq__() method... - https://man.mtool.work/python/3.14/library/dataclasses.html
- A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 8826
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » A Conceptual Overview of asyncio テーマ 自動 ライト ダーク | A Conceptual Overview of asyncio ¶ This HOWTO article seeks to help you build a sturd
...ated on line 5, it might be garbage collected before the event loop invokes it. Later instructions in the coroutine main() hand control back to the event loop so it can invoke other jobs. When the event loop eventually tries to run the task, it might...ed back to the event loop's to-do list to be resumed. This is a basic, yet reliable mental model. In practice, the control handoffs are slightly more complex, but not by much. In part 2, we'll walk through the details that make this possible. Unlike...tasks, awaiting a coroutine does not hand control back to the event loop! Wrapping a coroutine in a task first, then awaiting that would cede control. The behavior... - https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
- The Python 2.3 Method Resolution Order — Python 3.14.8 ドキュメント 8826
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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
...e non-trivial hierarchies, you don't need to understand the C3 algorithm, and you can easily skip this paper. On the other hand, if you really want to know how multiple inheritance works, then this paper is for you. The good news is that things are n...This prescription ensures that the merge operation preserves the ordering, if the ordering can be preserved. On the other hand, if the order cannot be preserved (as in the example of serious order disagreement discussed above) then the merge cannot...[ B , P21 ] = B C # B precedes C : B's methods win L [ D , P21 ] = D A C B C # B follows C : C's methods win! On the other hand, there are no problems with the Python 2.2 and 2.3 MROs, they give both: L [ D ] = D A B C Guido points out in his essay [... - https://man.mtool.work/python/3.14/howto/mro.html
- A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 8826
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » A Conceptual Overview of asyncio テーマ 自動 ライト ダーク | A Conceptual Overview of asyncio ¶ This HOWTO article seeks to help you build a sturd
...ated on line 5, it might be garbage collected before the event loop invokes it. Later instructions in the coroutine main() hand control back to the event loop so it can invoke other jobs. When the event loop eventually tries to run the task, it might...ed back to the event loop's to-do list to be resumed. This is a basic, yet reliable mental model. In practice, the control handoffs are slightly more complex, but not by much. In part 2, we'll walk through the details that make this possible. Unlike...tasks, awaiting a coroutine does not hand control back to the event loop! Wrapping a coroutine in a task first, then awaiting that would cede control. The behavior... - https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
- The Python 2.3 Method Resolution Order — Python 3.14.8 ドキュメント 8826
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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
...e non-trivial hierarchies, you don't need to understand the C3 algorithm, and you can easily skip this paper. On the other hand, if you really want to know how multiple inheritance works, then this paper is for you. The good news is that things are n...This prescription ensures that the merge operation preserves the ordering, if the ordering can be preserved. On the other hand, if the order cannot be preserved (as in the example of serious order disagreement discussed above) then the merge cannot...[ B , P21 ] = B C # B precedes C : B's methods win L [ D , P21 ] = D A C B C # B follows C : C's methods win! On the other hand, there are no problems with the Python 2.2 and 2.3 MROs, they give both: L [ D ] = D A B C Guido points out in his essay [... - https://man.mtool.work/python/3.14/howto/mro.html
- 7. 単純文 (simple statement) — Python 3.14.8 ドキュメント 8080
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 7. 単純文 (simple statement) テーマ 自動 ライト ダーク | 7. 単純文 (simple statement) ¶ 単純文とは、単一の論理行内に収められる文です。単
...その名前はその関数スコープでローカルなものになります。 注釈は絶対に評価されず、関数スコープにも格納されません。 If the right hand side is present, an annotated assignment performs the actual assignment as if there was no annotation present. If the righ...t hand side is not present for an expression target, then the interpreter evaluates the target except for the last __setitem__()...ョンの標準的な文法を提供する提案。 バージョン 3.8 で変更: Now annotated assignments allow the same expressions in the right hand side as regular assignments. Previously, some expressions (like un-parenthesized tuple expressions) caused a syntax error.... - https://man.mtool.work/python/3.14/reference/simple_stmts.html
- 7. 単純文 (simple statement) — Python 3.14.8 ドキュメント 8080
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 7. 単純文 (simple statement) テーマ 自動 ライト ダーク | 7. 単純文 (simple statement) ¶ 単純文とは、単一の論理行内に収められる文です。単
...その名前はその関数スコープでローカルなものになります。 注釈は絶対に評価されず、関数スコープにも格納されません。 If the right hand side is present, an annotated assignment performs the actual assignment as if there was no annotation present. If the righ...t hand side is not present for an expression target, then the interpreter evaluates the target except for the last __setitem__()...ョンの標準的な文法を提供する提案。 バージョン 3.8 で変更: Now annotated assignments allow the same expressions in the right hand side as regular assignments. Previously, some expressions (like un-parenthesized tuple expressions) caused a syntax error.... - https://man.mtool.work/python/3.14/reference/simple_stmts.html
- Type Object Structures — Python 3.14.8 ドキュメント 7826
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu
...ct * et , * ev , * etb ; PyObject * exc = PyErr_GetRaisedException (); ... PyErr_SetRaisedException ( exc ); } The dealloc handler itself must not raise an exception; if it hits an error case it should call PyErr_FormatUnraisable() to log (and clear)...a self->key member, it can only be NULL or a Python string and therefore cannot be part of a reference cycle. On the other hand, even if you know a member can never be part of a cycle, as a debugging aid you may want to visit it anyway just so the gc...emove references to other objects that might participate in a reference cycle. The purpose of the destructor, on the other hand, is a superset: it must release all resources it owns, including references to objects that cannot participate in a refere... - https://man.mtool.work/python/3.14/c-api/typeobj.html
- asyncio and free-threaded Python — Python 3.14.8 ドキュメント 7826
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio and free-threaded Python テーマ 自動 ライト ダーク | asyncio an
...hon, and the implementation of asyncio is safe to use in a multi-threaded environment. A single event loop on one core can handle many connections concurrently, but the Python code that runs to handle each one still executes serially. Once requests i...nvolve a non-trivial amount of per-request computation, that handling becomes the bottleneck, and a single core can no longer keep up. Combining asyncio with threads is most useful here: b...y running an event loop per thread, the handling of different requests can run in parallel across multiple CPU cores. It is also useful when you need to run blocking o... - https://man.mtool.work/python/3.14/library/asyncio-threading.html