per page, with , order by , clip by
Results of 1 - 10 of about 65 for metaclass (0.009 sec.)
型オブジェクト — Python 3.14.8 ドキュメント 13312
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 型オブジェクト テーマ 自動 ライト ダーク | 型オブジェクト ¶ type PyTypeObject ¶ 次に属 ... Creating Heap-Allocated Types ¶ The following functions and structs are used to create heap types . PyObject * PyType_FromMetaclass ( PyTypeObject * metaclass , PyObject * module , PyType_Spec * spec , PyObject * bases ) ¶ 次に属します: Stable ABI (バージ ... ョン 3.12 より). Create and return a heap type from the spec (see Py_TPFLAGS_HEAPTYPE ). The metaclass metaclass is used to construct the resulting type object. When metaclass is NULL , the metaclass is derived from bases (or ... Py_tp_base[s] slots if bases is NULL , see below). Metaclasses that override tp_new are not supported, except if tp_new is NULL . The bases argument can be used to specify base classe ...
https://man.mtool.work/python/3.14/c-api/type.html
型オブジェクト — Python 3.14.8 ドキュメント 13312
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 型オブジェクト テーマ 自動 ライト ダーク | 型オブジェクト ¶ type PyTypeObject ¶ 次に属 ... Creating Heap-Allocated Types ¶ The following functions and structs are used to create heap types . PyObject * PyType_FromMetaclass ( PyTypeObject * metaclass , PyObject * module , PyType_Spec * spec , PyObject * bases ) ¶ 次に属します: Stable ABI (バージ ... ョン 3.12 より). Create and return a heap type from the spec (see Py_TPFLAGS_HEAPTYPE ). The metaclass metaclass is used to construct the resulting type object. When metaclass is NULL , the metaclass is derived from bases (or ... Py_tp_base[s] slots if bases is NULL , see below). Metaclasses that override tp_new are not supported, except if tp_new is NULL . The bases argument can be used to specify base classe ...
https://man.mtool.work/python/3.14/c-api/type.html
abc --- 抽象基底クラス — Python 3.14.8 ドキュメント 10349
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » abc --- 抽象基底クラス テーマ 自動 ライト ダーク | abc --- 抽象基底クラス ¶ ソースコード: Lib/abc.py こ ... : pass Note that the type of ABC is still ABCMeta , therefore inheriting from ABC requires the usual precautions regarding metaclass usage, as multiple inheritance may lead to metaclass conflicts. One may also define an abstract base class by passing the ... metaclass keyword and using ABCMeta directly, for example: from abc import ABCMeta class MyABC ( metaclass = ABCMeta ): pass Added in version 3.4. class abc. ABCMeta ¶ 抽象基底クラス(ABC)を定義するためのメタクラ ... 、この ABC のメソッド実装が( super() を通してだけでなく)呼び出し可能になるわけでもありません。 [ 1 ] Classes created with a metaclass of ABCMeta have the following method: register ( subclass ) ¶ subclass を "仮想的サブクラス" としてこの ABC に登録します。 ...
https://man.mtool.work/python/3.14/library/abc.html
abc --- 抽象基底クラス — Python 3.14.8 ドキュメント 10349
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » abc --- 抽象基底クラス テーマ 自動 ライト ダーク | abc --- 抽象基底クラス ¶ ソースコード: Lib/abc.py こ ... : pass Note that the type of ABC is still ABCMeta , therefore inheriting from ABC requires the usual precautions regarding metaclass usage, as multiple inheritance may lead to metaclass conflicts. One may also define an abstract base class by passing the ... metaclass keyword and using ABCMeta directly, for example: from abc import ABCMeta class MyABC ( metaclass = ABCMeta ): pass Added in version 3.4. class abc. ABCMeta ¶ 抽象基底クラス(ABC)を定義するためのメタクラ ... 、この ABC のメソッド実装が( super() を通してだけでなく)呼び出し可能になるわけでもありません。 [ 1 ] Classes created with a metaclass of ABCMeta have the following method: register ( subclass ) ¶ subclass を "仮想的サブクラス" としてこの ABC に登録します。 ...
https://man.mtool.work/python/3.14/library/abc.html
types --- 動的な型生成と組み込み型の名前 — Python 3.14.8 ドキュメント 8688
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » types --- 動的な型生成と組み込み型の名前 テーマ 自動 ライト ダーク | types --- 動的な型生成と組み込み型の名前 ¶ ソースコ ... ブジェクトを生成します。 最初の3つの引数はクラス定義ヘッダーを構成する—クラス名、基底クラス (順番に)、キーワード引数 (例えば metaclass )—です。 exec_body 引数は、新規に生成されたクラスの名前空間を構築するために使用されるコールバックです。それは唯一の引数とし ... クラスの名前空間を生成します。 引数はクラス定義ヘッダーを構成する要素—クラス名、基底クラス (順番に)、キーワード引数 (例えば metaclass )—です。 返り値は metaclass, namespace, kwds の3要素のタプルです metaclass は適切なメタクラスです。 namespace は用意された ... クラスの名前空間です。また kwds は、 'metaclass' エントリが削除された、渡された kwds 引数の更新されたコピーです。 kwds 引数が渡されなければ、これは空の dict になります。 ...
https://man.mtool.work/python/3.14/library/types.html
3. データモデル — Python 3.14.8 ドキュメント 8688
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 3. データモデル テーマ 自動 ライト ダーク | 3. データモデル ¶ 3.1. オブジェクト、値、および型 ¶ Objects are Python's abstraction for da ... ass object may return annotations for the wrong class, specifically in certain cases where the class, its base class, or a metaclass is defined under from __future__ import annotations . See 749 for details. This attribute does not exist on certain builti ... bove, all Python classes also have the following two methods available: type. mro ( ) ¶ This method can be overridden by a metaclass to customize the method resolution order for its instances. It is called at class instantiation, and its result is stored ... _ のデフォルト実装は何も行いませんが、何らかの引数とともに呼び出された場合は、エラーを送出します。 注釈 メタクラスのヒント metaclass は残りの型機構によって消費され、 __init_subclass__ 実装に渡されることはありません。 実際のメタクラス (明示的なヒントではな ...
https://man.mtool.work/python/3.14/reference/datamodel.html
3. データモデル — Python 3.14.8 ドキュメント 8559
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 3. データモデル テーマ 自動 ライト ダーク | 3. データモデル ¶ 3.1. オブジェクト、値、および型 ¶ Objects are Python's abstraction for da ... ass object may return annotations for the wrong class, specifically in certain cases where the class, its base class, or a metaclass is defined under from __future__ import annotations . See 749 for details. This attribute does not exist on certain builti ... bove, all Python classes also have the following two methods available: type. mro ( ) ¶ This method can be overridden by a metaclass to customize the method resolution order for its instances. It is called at class instantiation, and its result is stored ... _ のデフォルト実装は何も行いませんが、何らかの引数とともに呼び出された場合は、エラーを送出します。 注釈 メタクラスのヒント metaclass は残りの型機構によって消費され、 __init_subclass__ 実装に渡されることはありません。 実際のメタクラス (明示的なヒントではな ...
https://man.mtool.work/python/3.14/reference/datamodel.html
annotationlib --- Functionality for introspecting annotations — Python 3.14.8 ... 8445
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » annotationlib --- Functionality for introspecting annotations テーマ 自動 ライト ダーク | annotationlib ... espace does not contain an annotate function. This is primarily useful before the class has been fully created (e.g., in a metaclass); after the class exists, the annotate function can be retrieved with cls.__annotate__ . See below for an example using th ... is function in a metaclass. Added in version 3.14. annotationlib. get_annotations ( obj , * , globals = None , locals = None , eval_str = False , for ... asses, modules, and other types of callables may not.) Ignores inherited annotations on classes, as well as annotations on metaclasses. If a class doesn't have its own annotations dict, returns an empty dict. All accesses to object members and dict values ...
https://man.mtool.work/python/3.14/library/annotationlib.html
annotationlib --- Functionality for introspecting annotations — Python 3.14.8 ... 8445
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » annotationlib --- Functionality for introspecting annotations テーマ 自動 ライト ダーク | annotationlib ... espace does not contain an annotate function. This is primarily useful before the class has been fully created (e.g., in a metaclass); after the class exists, the annotate function can be retrieved with cls.__annotate__ . See below for an example using th ... is function in a metaclass. Added in version 3.14. annotationlib. get_annotations ( obj , * , globals = None , locals = None , eval_str = False , for ... asses, modules, and other types of callables may not.) Ignores inherited annotations on classes, as well as annotations on metaclasses. If a class doesn't have its own annotations dict, returns an empty dict. All accesses to object members and dict values ...
https://man.mtool.work/python/3.14/library/annotationlib.html
What's New In Python 3.12 — Python 3.14.8 ドキュメント 8330
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.12 テーマ 自動 ライト ダーク | What's New In Python 3.12 ¶ 編集者 : Adam Turner この記事では Python 3.11 と比較した ... of a subclass-specific struct. (Contributed by Petr Viktorin in gh-103509 .) Add the new limited C API function PyType_FromMetaclass() , which generalizes the existing PyType_FromModuleAndSpec() using an additional metaclass argument. (Contributed by Wenz ... to be using it then you'll need to start using _Py_GetGlobalRefTotal() . The following functions now select an appropriate metaclass for the newly created type: PyType_FromSpec() PyType_FromSpecWithBases() PyType_FromModuleAndSpec() Creating classes whose ... metaclass overrides tp_new is deprecated, and in Python 3.14+ it will be disallowed. Note that these functions ignore tp_new of the ...
https://man.mtool.work/python/3.14/whatsnew/3.12.html
PREV 1 2 3 4 5 6 7 NEXT