Results of 1 - 10 of about 107 for wrapper (0.007 sec.)
- デスクリプタオブジェクト (descriptor object) — Python 3.14.8 ドキュメント 13107
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » デスクリプタオブジェクト (descriptor object) テーマ 自動 ライト ダーク | デスクリプタ
...escriptors expose C functions as methods on a type, and correspond to types.MethodDescriptorType objects in Python. struct wrapperbase ¶ Describes a slot wrapper used by PyDescr_NewWrapper() . Each wrapperbase record stores the Python-visible name and m...etadata for a special method implemented by a type slot, together with the wrapper function used to adapt that slot to Python's calling convention. PyObject * PyDescr_NewWrapper ( PyTypeObject * type , str...uct wrapperbase * base , void * wrapped ) ¶ 戻り値: 新しい参照。 Create a new wrapper descriptor for extension type type from the wrap... - https://man.mtool.work/python/3.14/c-api/descriptor.html
- デスクリプタオブジェクト (descriptor object) — Python 3.14.8 ドキュメント 13107
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » デスクリプタオブジェクト (descriptor object) テーマ 自動 ライト ダーク | デスクリプタ
...escriptors expose C functions as methods on a type, and correspond to types.MethodDescriptorType objects in Python. struct wrapperbase ¶ Describes a slot wrapper used by PyDescr_NewWrapper() . Each wrapperbase record stores the Python-visible name and m...etadata for a special method implemented by a type slot, together with the wrapper function used to adapt that slot to Python's calling convention. PyObject * PyDescr_NewWrapper ( PyTypeObject * type , str...uct wrapperbase * base , void * wrapped ) ¶ 戻り値: 新しい参照。 Create a new wrapper descriptor for extension type type from the wrap... - https://man.mtool.work/python/3.14/c-api/descriptor.html
- functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.14.8 ドキュメ... 11521
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » functools --- 高階関数と呼び出し可能オブジェクトの操作 テーマ 自動 ライト ダーク | functools ---
...ャッシュです。 "メモ化 (memoize)" とも呼ばれることがあります。 Returns the same as lru_cache(maxsize=None) , creating a thin wrapper around a dictionary lookup for the function arguments. Because it never needs to evict old values, this is smaller and fas...d for other similar decorators: @staticmethod , @~abc.abstractmethod , and others. Added in version 3.8. functools. update_wrapper ( wrapper , wrapped , assigned = WRAPPER_ASSIGNMENTS , updated = WRAPPER_UPDATES ) ¶ Update a wrapper function to look lik...ts are tuples to specify which attributes of the original function are assigned directly to the matching attributes on the wrapper function and which attributes of the wrapper function are updated with the corresponding attributes from the original func... - https://man.mtool.work/python/3.14/library/functools.html
- functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.14.8 ドキュメ... 11521
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » functools --- 高階関数と呼び出し可能オブジェクトの操作 テーマ 自動 ライト ダーク | functools ---
...ャッシュです。 "メモ化 (memoize)" とも呼ばれることがあります。 Returns the same as lru_cache(maxsize=None) , creating a thin wrapper around a dictionary lookup for the function arguments. Because it never needs to evict old values, this is smaller and fas...d for other similar decorators: @staticmethod , @~abc.abstractmethod , and others. Added in version 3.8. functools. update_wrapper ( wrapper , wrapped , assigned = WRAPPER_ASSIGNMENTS , updated = WRAPPER_UPDATES ) ¶ Update a wrapper function to look lik...ts are tuples to specify which attributes of the original function are assigned directly to the matching attributes on the wrapper function and which attributes of the wrapper function are updated with the corresponding attributes from the original func... - https://man.mtool.work/python/3.14/library/functools.html
- Python で Curses プログラミング — Python 3.14.8 ドキュメント 8427
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Python で Curses プログラミング テーマ 自動 ライト ダーク | Python で Curses プログラミング ¶ Author : A.M. Kuchling, Eric S. Raymond Release : 2.
...dows-curses package provides the same interface on Windows. Python の curses module ¶ The Python module is a fairly simple wrapper over the C functions provided by curses; if you're already familiar with curses programming in C, it's really easy to tran...されません、例えば、シェルを使うのが難しくなります。 Pythonでは、これらの複雑さを避けデバッグをより容易にするために、 curses.wrapper() 関数をインポートして、このように使います: from curses import wrapper def main ( stdscr ): # Clear screen stdscr . clear...i - 10 stdscr . addstr ( i , 0 , '10 divided by {} is {} ' . format ( v , 10 / v )) stdscr . refresh () stdscr . getkey () wrapper ( main ) The wrapper() function takes a callable object and does the initializations described above, also initializing co... - https://man.mtool.work/python/3.14/howto/curses.html
- Python で Curses プログラミング — Python 3.14.8 ドキュメント 8427
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Python で Curses プログラミング テーマ 自動 ライト ダーク | Python で Curses プログラミング ¶ Author : A.M. Kuchling, Eric S. Raymond Release : 2.
...dows-curses package provides the same interface on Windows. Python の curses module ¶ The Python module is a fairly simple wrapper over the C functions provided by curses; if you're already familiar with curses programming in C, it's really easy to tran...されません、例えば、シェルを使うのが難しくなります。 Pythonでは、これらの複雑さを避けデバッグをより容易にするために、 curses.wrapper() 関数をインポートして、このように使います: from curses import wrapper def main ( stdscr ): # Clear screen stdscr . clear...i - 10 stdscr . addstr ( i , 0 , '10 divided by {} is {} ' . format ( v , 10 / v )) stdscr . refresh () stdscr . getkey () wrapper ( main ) The wrapper() function takes a callable object and does the initializations described above, also initializing co... - https://man.mtool.work/python/3.14/howto/curses.html
- What's New in Python 2.5 — Python 3.14.8 ドキュメント 7532
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.5 テーマ 自動 ライト ダーク | What's New in Python 2.5 ¶ 著者 : A.M. Kuchling This article explains the new feature
...em , item_path ) popup_menu . append ( ( "Open" , open_func , 1 ) ) Another function in the functools module is the update_wrapper(wrapper, wrapped) function that helps you write well-behaved decorators. update_wrapper() copies the name, module, and doc...string attribute to a wrapper function so that tracebacks inside the wrapped function are easier to understand. For example, you might write: def my_dec...orator ( f ): def wrapper ( * args , ** kwds ): print 'Calling decorated function' return f ( * args , ** kwds ) functools . update_wrapper ( wrappe... - https://man.mtool.work/python/3.14/whatsnew/2.5.html
- What's New in Python 2.5 — Python 3.14.8 ドキュメント 7532
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.5 テーマ 自動 ライト ダーク | What's New in Python 2.5 ¶ 著者 : A.M. Kuchling This article explains the new feature
...em , item_path ) popup_menu . append ( ( "Open" , open_func , 1 ) ) Another function in the functools module is the update_wrapper(wrapper, wrapped) function that helps you write well-behaved decorators. update_wrapper() copies the name, module, and doc...string attribute to a wrapper function so that tracebacks inside the wrapped function are easier to understand. For example, you might write: def my_dec...orator ( f ): def wrapper ( * args , ** kwds ): print 'Calling decorated function' return f ( * args , ** kwds ) functools . update_wrapper ( wrappe... - https://man.mtool.work/python/3.14/whatsnew/2.5.html
- wsgiref --- WSGI ユーティリティとリファレンス実装 — Python 3.14.8 ドキュメント 7225
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » wsgiref --- WSGI ユーティリティとリファレンス実装 テーマ 自動 ライト ダーク | wsgiref --- WSGI
...eader_name' が RFC 2616 で定義されている HTTP/1.1 の "Hop-by-Hop" ヘッダの場合に True を返します。 class wsgiref.util. FileWrapper ( filelike , blksize = 8192 ) ¶ A concrete implementation of the wsgiref.types.FileWrapper protocol used to convert a file...合には filelike オブジェクトの close() メソッドを呼び出します。 使用例: from io import StringIO from wsgiref.util import FileWrapper # We're using a StringIO-buffer for as the file-like object filelike = StringIO ( "This is an example file-like object" *...10 ) wrapper = FileWrapper ( filelike , blksize = 5 ) for chunk in wrapper : print ( chunk ) バージョン 3.11 で変更: __getitem__() メソ... - https://man.mtool.work/python/3.14/library/wsgiref.html
- wsgiref --- WSGI ユーティリティとリファレンス実装 — Python 3.14.8 ドキュメント 7225
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » wsgiref --- WSGI ユーティリティとリファレンス実装 テーマ 自動 ライト ダーク | wsgiref --- WSGI
...eader_name' が RFC 2616 で定義されている HTTP/1.1 の "Hop-by-Hop" ヘッダの場合に True を返します。 class wsgiref.util. FileWrapper ( filelike , blksize = 8192 ) ¶ A concrete implementation of the wsgiref.types.FileWrapper protocol used to convert a file...合には filelike オブジェクトの close() メソッドを呼び出します。 使用例: from io import StringIO from wsgiref.util import FileWrapper # We're using a StringIO-buffer for as the file-like object filelike = StringIO ( "This is an example file-like object" *...10 ) wrapper = FileWrapper ( filelike , blksize = 5 ) for chunk in wrapper : print ( chunk ) バージョン 3.11 で変更: __getitem__() メソ... - https://man.mtool.work/python/3.14/library/wsgiref.html