Results of 1 - 10 of about 148 for descriptor (0.008 sec.)
- デスクリプタオブジェクト (descriptor object) — Python 3.14.8 ドキュメント 12509
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » デスクリプタオブジェクト (descriptor object) テーマ 自動 ライト ダーク | デスクリプタ
...オブジェクト (descriptor object) ¶ "デスクリプタ (descriptor)" は、あるオブジェクトのいくつかの属性について記述したオブジェクトです。デスクリプタオ...オブジェクトの辞書内にあります。 PyTypeObject PyProperty_Type ¶ 次に属します: Stable ABI . The type object for the built-in descriptor types. PyObject * PyDescr_NewGetSet ( PyTypeObject * type , struct PyGetSetDef * getset ) ¶ 戻り値: 新しい参照。 次に属しま...す: Stable ABI . Create a new get-set descriptor for extension type type from the PyGetSetDef structure getset . Get-set descriptors expose attributes implemented by C get... - https://man.mtool.work/python/3.14/c-api/descriptor.html
- デスクリプタオブジェクト (descriptor object) — Python 3.14.8 ドキュメント 12509
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » デスクリプタオブジェクト (descriptor object) テーマ 自動 ライト ダーク | デスクリプタ
...オブジェクト (descriptor object) ¶ "デスクリプタ (descriptor)" は、あるオブジェクトのいくつかの属性について記述したオブジェクトです。デスクリプタオ...オブジェクトの辞書内にあります。 PyTypeObject PyProperty_Type ¶ 次に属します: Stable ABI . The type object for the built-in descriptor types. PyObject * PyDescr_NewGetSet ( PyTypeObject * type , struct PyGetSetDef * getset ) ¶ 戻り値: 新しい参照。 次に属しま...す: Stable ABI . Create a new get-set descriptor for extension type type from the PyGetSetDef structure getset . Get-set descriptors expose attributes implemented by C get... - https://man.mtool.work/python/3.14/c-api/descriptor.html
- デスクリプタ ガイド — Python 3.14.8 ドキュメント 9845
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » デスクリプタ ガイド テーマ 自動 ライト ダーク | デスクリプタ ガイド ¶ Author : Raymond Hettinger Contact : <python at rcn dot com> デスクリプタ を
...ているのかを紹介します。多くの人はこのレベルの理解は不要でしょう。 The last section has pure Python equivalents for built-in descriptors that are written in C. Read this if you're curious about how functions turn into bound methods or about the implementatio...く基礎的なところから開始し、新しい要素を一つずつ紹介していきます。 シンプルな例: 定数を返すデスクリプタ ¶ The Ten class is a descriptor whose __get__() method always returns the constant 10 : class Ten : def __get__ ( self , obj , objtype = None ): return 10...このデスクリプタを使うには他のクラスのクラス変数として保存します: class A : x = 5 # Regular class attribute y = Ten () # Descriptor instance インタラクティブセッションを使って、通常の属性ルックアップと、デスクリプタのルックアップの違いを見てみましょう。... - https://man.mtool.work/python/3.14/howto/descriptor.html
- デスクリプタ ガイド — Python 3.14.8 ドキュメント 9845
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » デスクリプタ ガイド テーマ 自動 ライト ダーク | デスクリプタ ガイド ¶ Author : Raymond Hettinger Contact : <python at rcn dot com> デスクリプタ を
...ているのかを紹介します。多くの人はこのレベルの理解は不要でしょう。 The last section has pure Python equivalents for built-in descriptors that are written in C. Read this if you're curious about how functions turn into bound methods or about the implementatio...く基礎的なところから開始し、新しい要素を一つずつ紹介していきます。 シンプルな例: 定数を返すデスクリプタ ¶ The Ten class is a descriptor whose __get__() method always returns the constant 10 : class Ten : def __get__ ( self , obj , objtype = None ): return 10...このデスクリプタを使うには他のクラスのクラス変数として保存します: class A : x = 5 # Regular class attribute y = Ten () # Descriptor instance インタラクティブセッションを使って、通常の属性ルックアップと、デスクリプタのルックアップの違いを見てみましょう。... - https://man.mtool.work/python/3.14/howto/descriptor.html
- timer file descriptor HOWTO — Python 3.14.8 ドキュメント 9540
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » timer file descriptor HOWTO テーマ 自動 ライト ダーク | timer file descriptor HOWTO ¶ リリース : 1.13 This HOWTO discusses Python's support for th
...e linux timer file descriptor. 使用例 ¶ The following example shows how to use a timer file descriptor to execute a function twice a second: # Practical...e really use a non-blocking timer, # we use a blocking timer here for simplicity. import os , time # Create the timer file descriptor fd = os . timerfd_create ( time . CLOCK_REALTIME ) # Start the timer in 1 second, with an interval of half a second os . t...ck until the timer expires _ = os . read ( fd , 8 ) print ( "Timer expired" ) finally : # Remember to close the timer file descriptor! os . close ( fd ) To avoid the precision loss caused by the float type, timer file descriptors allow specifying initial e... - https://man.mtool.work/python/3.14/howto/timerfd.html
- timer file descriptor HOWTO — Python 3.14.8 ドキュメント 9540
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » timer file descriptor HOWTO テーマ 自動 ライト ダーク | timer file descriptor HOWTO ¶ リリース : 1.13 This HOWTO discusses Python's support for th
...e linux timer file descriptor. 使用例 ¶ The following example shows how to use a timer file descriptor to execute a function twice a second: # Practical...e really use a non-blocking timer, # we use a blocking timer here for simplicity. import os , time # Create the timer file descriptor fd = os . timerfd_create ( time . CLOCK_REALTIME ) # Start the timer in 1 second, with an interval of half a second os . t...ck until the timer expires _ = os . read ( fd , 8 ) print ( "Timer expired" ) finally : # Remember to close the timer file descriptor! os . close ( fd ) To avoid the precision loss caused by the float type, timer file descriptors allow specifying initial e... - https://man.mtool.work/python/3.14/howto/timerfd.html
- os --- 雑多なオペレーティングシステムインターフェース — Python 3.14.8 ドキュメ... 8929
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 汎用オペレーティングシステムサービス » os --- 雑多なオペレーティングシステムインターフェース テーマ 自動 ライト ダーク | os --- 雑多
...W* constants to impose constraints on the operation ( 0 means no constraints). Since Linux 5.8, fd may refer to a PID file descriptor obtained from pidfd_open() . In this case, setns() reassociates the calling thread into one or more of the same namespaces...ler's memberships in unspecified namespaces are left unchanged. fd can be any object with a fileno() method, or a raw file descriptor. This example reassociates the thread with the init process's network namespace: fd = os . open ( "/proc/1/ns/net" , os ....rror : pass os. copy_file_range ( src , dst , count , offset_src = None , offset_dst = None ) ¶ Copy count bytes from file descriptor src , starting from offset offset_src , to file descriptor dst , starting from offset offset_dst . If offset_src is None ,... - https://man.mtool.work/python/3.14/library/os.html
- Python 開発モード — Python 3.14.8 ドキュメント 7850
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » Python 開発モード テーマ 自動 ライト ダーク | Python 開発モード ¶ Added in version 3.7. The Python Development Mode in
...it is even worse in PyPy. Closing resources explicitly makes an application more deterministic and more reliable. Bad file descriptor error example ¶ Script displaying the first line of itself: import os def main (): fp = open ( __file__ ) firstline = fp ....ot emit any warning: $ python script.py import os The Python Development Mode shows a ResourceWarning and logs a "Bad file descriptor" error when finalizing the file object: $ python -X dev script.py import os script.py:10: ResourceWarning: unclosed file <...ding='UTF-8'> Traceback (most recent call last): File "script.py", line 10, in <module> main() OSError: [Errno 9] Bad file descriptor os.close(fp.fileno()) closes the file descriptor. When the file object finalizer tries to close the file descriptor again,... - https://man.mtool.work/python/3.14/library/devmode.html
- Python 開発モード — Python 3.14.8 ドキュメント 7850
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » Python 開発モード テーマ 自動 ライト ダーク | Python 開発モード ¶ Added in version 3.7. The Python Development Mode in
...it is even worse in PyPy. Closing resources explicitly makes an application more deterministic and more reliable. Bad file descriptor error example ¶ Script displaying the first line of itself: import os def main (): fp = open ( __file__ ) firstline = fp ....ot emit any warning: $ python script.py import os The Python Development Mode shows a ResourceWarning and logs a "Bad file descriptor" error when finalizing the file object: $ python -X dev script.py import os script.py:10: ResourceWarning: unclosed file <...ding='UTF-8'> Traceback (most recent call last): File "script.py", line 10, in <module> main() OSError: [Errno 9] Bad file descriptor os.close(fp.fileno()) closes the file descriptor. When the file object finalizer tries to close the file descriptor again,... - https://man.mtool.work/python/3.14/library/devmode.html
- os --- 雑多なオペレーティングシステムインターフェース — Python 3.14.8 ドキュメ... 7744
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 汎用オペレーティングシステムサービス » os --- 雑多なオペレーティングシステムインターフェース テーマ 自動 ライト ダーク | os --- 雑多
...W* constants to impose constraints on the operation ( 0 means no constraints). Since Linux 5.8, fd may refer to a PID file descriptor obtained from pidfd_open() . In this case, setns() reassociates the calling thread into one or more of the same namespaces...ler's memberships in unspecified namespaces are left unchanged. fd can be any object with a fileno() method, or a raw file descriptor. This example reassociates the thread with the init process's network namespace: fd = os . open ( "/proc/1/ns/net" , os ....rror : pass os. copy_file_range ( src , dst , count , offset_src = None , offset_dst = None ) ¶ Copy count bytes from file descriptor src , starting from offset offset_src , to file descriptor dst , starting from offset offset_dst . If offset_src is None ,... - https://man.mtool.work/python/3.14/library/os.html