Results of 1 - 10 of about 26 for abstractmethod (0.014 sec.)
- abc --- 抽象基底クラス — Python 3.14.8 ドキュメント 12712
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » abc --- 抽象基底クラス テーマ 自動 ライト ダーク | abc --- 抽象基底クラス ¶ ソースコード: Lib/abc.py こ
...( self , index ): ... def __len__ ( self ): ... def get_iterator ( self ): return iter ( self ) class MyIterable ( ABC ): @abstractmethod def __iter__ ( self ): while False : yield None def get_iterator ( self ): return self . __iter__ () @classmethod def __su...n NotImplemented MyIterable . register ( Foo ) The ABC MyIterable defines the standard iterable method, __iter__() , as an abstract method. The implementation given here can still be called from subclasses. The get_iterator() method is also part of the MyItera...available as a method of Foo , so it is provided separately. The abc module also provides the following decorator: @ abc. abstractmethod ¶ 抽象メソッドを示すデコレータです。 Using this decorator requires that the class's metaclass is ABCMeta or is derived fro... - https://man.mtool.work/python/3.14/library/abc.html
- abc --- 抽象基底クラス — Python 3.14.8 ドキュメント 12662
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » abc --- 抽象基底クラス テーマ 自動 ライト ダーク | abc --- 抽象基底クラス ¶ ソースコード: Lib/abc.py こ
...( self , index ): ... def __len__ ( self ): ... def get_iterator ( self ): return iter ( self ) class MyIterable ( ABC ): @abstractmethod def __iter__ ( self ): while False : yield None def get_iterator ( self ): return self . __iter__ () @classmethod def __su...n NotImplemented MyIterable . register ( Foo ) The ABC MyIterable defines the standard iterable method, __iter__() , as an abstract method. The implementation given here can still be called from subclasses. The get_iterator() method is also part of the MyItera...available as a method of Foo , so it is provided separately. The abc module also provides the following decorator: @ abc. abstractmethod ¶ 抽象メソッドを示すデコレータです。 Using this decorator requires that the class's metaclass is ABCMeta or is derived fro... - https://man.mtool.work/python/3.14/library/abc.html
- importlib.resources.abc -- リソースの抽象基底クラス — Python 3.14.8 ドキュメン... 11423
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » モジュールのインポート » importlib.resources.abc -- リソースの抽象基底クラス テーマ 自動 ライト ダーク | importlib.resources.abc --
...hen the specified module is a package. バージョン 3.12 で非推奨: Use importlib.resources.abc.TraversableResources instead. abstractmethod open_resource ( resource ) ¶ Returns an opened, file-like object for binary reading of the resource . リソースが見付からな...い場合は、 FileNotFoundError が送出されます。 abstractmethod resource_path ( resource ) ¶ resource へのファイルシステムパスを返します。 リソースの実体がファイルシステムに存在しない場合...、 FileNotFoundError が送出されます。 abstractmethod is_resource ( path ) ¶ Returns True if the named path is considered a resource. FileNotFoundError is raised if path does n... - https://man.mtool.work/python/3.14/library/importlib.resources.abc.html
- importlib.resources.abc -- リソースの抽象基底クラス — Python 3.14.8 ドキュメン... 11423
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » モジュールのインポート » importlib.resources.abc -- リソースの抽象基底クラス テーマ 自動 ライト ダーク | importlib.resources.abc --
...hen the specified module is a package. バージョン 3.12 で非推奨: Use importlib.resources.abc.TraversableResources instead. abstractmethod open_resource ( resource ) ¶ Returns an opened, file-like object for binary reading of the resource . リソースが見付からな...い場合は、 FileNotFoundError が送出されます。 abstractmethod resource_path ( resource ) ¶ resource へのファイルシステムパスを返します。 リソースの実体がファイルシステムに存在しない場合...、 FileNotFoundError が送出されます。 abstractmethod is_resource ( path ) ¶ Returns True if the named path is considered a resource. FileNotFoundError is raised if path does n... - https://man.mtool.work/python/3.14/library/importlib.resources.abc.html
- selectors --- 高水準の I/O 多重化 — Python 3.14.8 ドキュメント 8215
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » selectors --- 高水準の I/O 多重化 テーマ 自動 ライト ダーク | selectors --- 高水準の I/O 多重化
...eSelector などの一つを使用します。 BaseSelector とその具象実装は コンテキストマネージャー プロトコルをサポートしています。 abstractmethod register ( fileobj , events , data = None ) ¶ I/O イベントを監視するファイルオブジェクトをセレクションに登録します。 fileo...イベントマスク化ファイル記述子のときは ValueError が、ファイルオブジェクトがすでに登録済みのときは KeyError が送出されます。 abstractmethod unregister ( fileobj ) ¶ ファイルオブジェクトのセレクション登録を解除し、監視対象から外します。ファイルオブジェクトの登録解...ントマスクやファイル記述子が不正な場合は ValueError を、ファイルオブジェクトが登録されていない場合は KeyError を送出します。 abstractmethod select ( timeout = None ) ¶ 登録されたいくつかのファイルオブジェクトが準備できたか、タイムアウトするまで待機します。 timeo... - https://man.mtool.work/python/3.14/library/selectors.html
- selectors --- 高水準の I/O 多重化 — Python 3.14.8 ドキュメント 8166
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » selectors --- 高水準の I/O 多重化 テーマ 自動 ライト ダーク | selectors --- 高水準の I/O 多重化
...eSelector などの一つを使用します。 BaseSelector とその具象実装は コンテキストマネージャー プロトコルをサポートしています。 abstractmethod register ( fileobj , events , data = None ) ¶ I/O イベントを監視するファイルオブジェクトをセレクションに登録します。 fileo...イベントマスク化ファイル記述子のときは ValueError が、ファイルオブジェクトがすでに登録済みのときは KeyError が送出されます。 abstractmethod unregister ( fileobj ) ¶ ファイルオブジェクトのセレクション登録を解除し、監視対象から外します。ファイルオブジェクトの登録解...ントマスクやファイル記述子が不正な場合は ValueError を、ファイルオブジェクトが登録されていない場合は KeyError を送出します。 abstractmethod select ( timeout = None ) ¶ 登録されたいくつかのファイルオブジェクトが準備できたか、タイムアウトするまで待機します。 timeo... - https://man.mtool.work/python/3.14/library/selectors.html
- importlib --- import の実装 — Python 3.14.8 ドキュメント 7769
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » モジュールのインポート » importlib --- import の実装 テーマ 自動 ライト ダーク | importlib --- import の実装 ¶ Added in version 3.1
...n version 3.3. バージョン 3.10 で変更: No longer a subclass of Finder . find_spec ( fullname , path , target = None ) ¶ An abstract method for finding a spec for the specified module. If this is a top-level import, path will be None . Otherwise, this is a sear...ib.resources.abc.TraversableResources . This class exists for backwards compatibility only with other ABCs in this module. abstractmethod get_data ( path ) ¶ An abstract method to return the bytes for the data located at path . Loaders that have a file-like st...orage back-end that allows storing arbitrary data can implement this abstract method to give direct access to the data stored. OSError is to be raised if the path cannot be found. The path is expected to be... - https://man.mtool.work/python/3.14/library/importlib.html
- importlib --- import の実装 — Python 3.14.8 ドキュメント 7769
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » モジュールのインポート » importlib --- import の実装 テーマ 自動 ライト ダーク | importlib --- import の実装 ¶ Added in version 3.1
...n version 3.3. バージョン 3.10 で変更: No longer a subclass of Finder . find_spec ( fullname , path , target = None ) ¶ An abstract method for finding a spec for the specified module. If this is a top-level import, path will be None . Otherwise, this is a sear...ib.resources.abc.TraversableResources . This class exists for backwards compatibility only with other ABCs in this module. abstractmethod get_data ( path ) ¶ An abstract method to return the bytes for the data located at path . Loaders that have a file-like st...orage back-end that allows storing arbitrary data can implement this abstract method to give direct access to the data stored. OSError is to be raised if the path cannot be found. The path is expected to be... - https://man.mtool.work/python/3.14/library/importlib.html
- What's New In Python 3.3 — Python 3.14.8 ドキュメント 7720
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.3 テーマ 自動 ライト ダーク | What's New In Python 3.3 ¶ この記事では 3.2 と比較した Python 3.3 の新機能を解説します
...n bpo-6715 .) 改良されたモジュール ¶ abc ¶ Improved support for abstract base classes containing descriptors composed with abstract methods. The recommended approach to declaring abstract descriptors is now to provide __isabstractmethod__ as a dynamically upda...The built-in descriptors have been updated accordingly. @abc.abstractproperty has been deprecated, use @property with @abc.abstractmethod instead. @abc.abstractclassmethod has been deprecated, use @classmethod with @abc.abstractmethod instead. @abc.abstractsta...ticmethod has been deprecated, use @staticmethod with @abc.abstractmethod instead. (Contributed by Darren Dale in bpo-11610 .) abc.ABCMeta.register() が登録されたサブクラスを返すようになりました。... - https://man.mtool.work/python/3.14/whatsnew/3.3.html
- What's New In Python 3.3 — Python 3.14.8 ドキュメント 7720
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.3 テーマ 自動 ライト ダーク | What's New In Python 3.3 ¶ この記事では 3.2 と比較した Python 3.3 の新機能を解説します
...n bpo-6715 .) 改良されたモジュール ¶ abc ¶ Improved support for abstract base classes containing descriptors composed with abstract methods. The recommended approach to declaring abstract descriptors is now to provide __isabstractmethod__ as a dynamically upda...The built-in descriptors have been updated accordingly. @abc.abstractproperty has been deprecated, use @property with @abc.abstractmethod instead. @abc.abstractclassmethod has been deprecated, use @classmethod with @abc.abstractmethod instead. @abc.abstractsta...ticmethod has been deprecated, use @staticmethod with @abc.abstractmethod instead. (Contributed by Darren Dale in bpo-11610 .) abc.ABCMeta.register() が登録されたサブクラスを返すようになりました。... - https://man.mtool.work/python/3.14/whatsnew/3.3.html