Results of 1 - 10 of about 217 for subclass (0.051 sec.)
- abc --- 抽象基底クラス — Python 3.14.8 ドキュメント 12507
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » abc --- 抽象基底クラス テーマ 自動 ライト ダーク | abc --- 抽象基底クラス ¶ ソースコード: Lib/abc.py こ
...クラス(組み込み型でも構いません)と無関係な ABC を "仮想的サブクラス" として登録できます -- これらとその子孫は組み込み関数 issubclass() によって登録した ABC のサブクラスと判定されますが、登録した ABC は MRO (Method Resolution Order, メソッド解決順)には現れ...び出し可能になるわけでもありません。 [ 1 ] Classes created with a metaclass of ABCMeta have the following method: register ( subclass ) ¶ subclass を "仮想的サブクラス" としてこの ABC に登録します。たとえば: from abc import ABC class MyABC ( ABC ): pass My...ABC . register ( tuple ) assert issubclass ( tuple , MyABC ) assert isinstance ((), MyABC ) バージョン 3.3 で変更: クラスデコレータとして使うことができるように、登録... - https://man.mtool.work/python/3.14/library/abc.html
- abc --- 抽象基底クラス — Python 3.14.8 ドキュメント 12507
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » abc --- 抽象基底クラス テーマ 自動 ライト ダーク | abc --- 抽象基底クラス ¶ ソースコード: Lib/abc.py こ
...クラス(組み込み型でも構いません)と無関係な ABC を "仮想的サブクラス" として登録できます -- これらとその子孫は組み込み関数 issubclass() によって登録した ABC のサブクラスと判定されますが、登録した ABC は MRO (Method Resolution Order, メソッド解決順)には現れ...び出し可能になるわけでもありません。 [ 1 ] Classes created with a metaclass of ABCMeta have the following method: register ( subclass ) ¶ subclass を "仮想的サブクラス" としてこの ABC に登録します。たとえば: from abc import ABC class MyABC ( ABC ): pass My...ABC . register ( tuple ) assert issubclass ( tuple , MyABC ) assert isinstance ((), MyABC ) バージョン 3.3 で変更: クラスデコレータとして使うことができるように、登録... - https://man.mtool.work/python/3.14/library/abc.html
- 変更履歴 — Python 3.14.8 ドキュメント 8313
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...iteral control characters in JSON strings. gh-154892 : Fix a bug in the C accelerator for zoneinfo where datetime.datetime subclasses returning -1 for hour , minute , or second could incorrectly raise a SystemError . gh-154848 : The pickle C accelerator...gh-153200 : Fix math.isqrt() returning an incorrect result for arguments not less than 2**64 that are instances of an int subclass with an overridden comparison operator. gh-153068 : Fix cProfile.Profile.enable() to no longer overwrite errors from sys.m...internal buffer with concurrent writes. gh-148660 : Fix a crash in collections.OrderedDict.copy() when a key's __eq__ or a subclass method mutates the dict during the copy. Now raises RuntimeError instead, as iteration does. gh-151497 : Opening a tarfile... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- 型オブジェクト — Python 3.14.8 ドキュメント 7852
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 型オブジェクト テーマ 自動 ライト ダーク | 型オブジェクト ¶ type PyTypeObject ¶ 次に属
...urn non-zero if the type object o sets the feature feature . Type features are denoted by single bit flags. int PyType_FastSubclass ( PyTypeObject * type , int flag ) ¶ Return non-zero if the type object type sets the subclass flag flag . Subclass flags...are denoted by Py_TPFLAGS_*_SUBCLASS . This function is used by many _Check functions for common types. 参考 PyObject_TypeCheck() , which is used as a slower a...lternative in _Check functions for types that don't come with subclass flags. int PyType_IS_GC ( PyTypeObject * o ) ¶ Return true if the type object includes support for the cycle detector; thi... - https://man.mtool.work/python/3.14/c-api/type.html
- concurrent.interpreters --- Multiple interpreters in the same process — Python ... 7852
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » concurrent.interpreters --- Multiple interpreters in the same process テーマ 自動 ライト ダーク | concurrent.interpreter
...ction in the interpreter (in a new thread). 例外 ¶ exception concurrent.interpreters. InterpreterError ¶ This exception, a subclass of Exception , is raised when an interpreter-related error happens. exception concurrent.interpreters. InterpreterNotFound...Error ¶ This exception, a subclass of InterpreterError , is raised when the targeted interpreter no longer exists. exception concurrent.interpreters. Executi...onFailed ¶ This exception, a subclass of InterpreterError , is raised when the running code raised an uncaught exception. excinfo ¶ A basic snapshot of the exce... - https://man.mtool.work/python/3.14/library/concurrent.interpreters.html
- What's New In Python 3.6 — Python 3.14.8 ドキュメント 7852
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.6 テーマ 自動 ライト ダーク | What's New In Python 3.6 ¶ エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yur
...tten and implemented by Yury Selivanov. PEP 487: Simpler customization of class creation ¶ It is now possible to customize subclass creation without using a metaclass. The new __init_subclass__ classmethod will be called on the base class whenever a new...subclass is created: class PluginBase : subclasses = [] def __init_subclass__ ( cls , ** kwargs ): super () . __init_subclass__ ( ** kwargs ) cls . subclasses . append ( c...ase ): pass class Plugin2 ( PluginBase ): pass In order to allow zero-argument super() calls to work correctly from __init_subclass__() implementations, custom metaclasses must ensure that the new __classcell__ namespace entry is propagated to type.__new... - https://man.mtool.work/python/3.14/whatsnew/3.6.html
- 型オブジェクト — Python 3.14.8 ドキュメント 7852
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 型オブジェクト テーマ 自動 ライト ダーク | 型オブジェクト ¶ type PyTypeObject ¶ 次に属
...urn non-zero if the type object o sets the feature feature . Type features are denoted by single bit flags. int PyType_FastSubclass ( PyTypeObject * type , int flag ) ¶ Return non-zero if the type object type sets the subclass flag flag . Subclass flags...are denoted by Py_TPFLAGS_*_SUBCLASS . This function is used by many _Check functions for common types. 参考 PyObject_TypeCheck() , which is used as a slower a...lternative in _Check functions for types that don't come with subclass flags. int PyType_IS_GC ( PyTypeObject * o ) ¶ Return true if the type object includes support for the cycle detector; thi... - https://man.mtool.work/python/3.14/c-api/type.html
- concurrent.interpreters --- Multiple interpreters in the same process — Python ... 7852
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » concurrent.interpreters --- Multiple interpreters in the same process テーマ 自動 ライト ダーク | concurrent.interpreter
...ction in the interpreter (in a new thread). 例外 ¶ exception concurrent.interpreters. InterpreterError ¶ This exception, a subclass of Exception , is raised when an interpreter-related error happens. exception concurrent.interpreters. InterpreterNotFound...Error ¶ This exception, a subclass of InterpreterError , is raised when the targeted interpreter no longer exists. exception concurrent.interpreters. Executi...onFailed ¶ This exception, a subclass of InterpreterError , is raised when the running code raised an uncaught exception. excinfo ¶ A basic snapshot of the exce... - https://man.mtool.work/python/3.14/library/concurrent.interpreters.html
- What's New In Python 3.6 — Python 3.14.8 ドキュメント 7852
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.6 テーマ 自動 ライト ダーク | What's New In Python 3.6 ¶ エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yur
...tten and implemented by Yury Selivanov. PEP 487: Simpler customization of class creation ¶ It is now possible to customize subclass creation without using a metaclass. The new __init_subclass__ classmethod will be called on the base class whenever a new...subclass is created: class PluginBase : subclasses = [] def __init_subclass__ ( cls , ** kwargs ): super () . __init_subclass__ ( ** kwargs ) cls . subclasses . append ( c...ase ): pass class Plugin2 ( PluginBase ): pass In order to allow zero-argument super() calls to work correctly from __init_subclass__() implementations, custom metaclasses must ensure that the new __classcell__ namespace entry is propagated to type.__new... - https://man.mtool.work/python/3.14/whatsnew/3.6.html
- Pending removal in future versions — Python 3.14.8 ドキュメント 7380
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » Pending removal in future versions テーマ 自動 ライト ダーク | Pending removal in future versions ¶ The following APIs will be removed in the future, although there is current
...__index__() and __int__() method returning non-int type: these methods will be required to return an instance of a strict subclass of int . Support for __float__() method returning a strict subclass of float : these methods will be required to return an...instance of float . Support for __complex__() method returning a strict subclass of complex : these methods will be required to return an instance of complex . Passing a complex number as the real or ima...e method complex calendar parameter TLSv future group methods instance strict Contributed Support returning these required subclass float This page Report a bug Improve this page Show source Show translation source « ナビゲーション 索引 モジュール | Pyth... - https://man.mtool.work/python/3.14/deprecations/pending-removal-in-future.html