per page, with , order by , clip by
Results of 1 - 10 of about 60 for NotImplemented (0.008 sec.)
組み込み定数 — Python 3.14.8 ドキュメント 13916
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み定数 テーマ 自動 ライト ダーク | 組み込み定数 ¶ 組み込み名前空間にはいくつかの定数があります。定数の一覧: False ¶ bool 型の偽 ... d to a function. Assignments to None are illegal and raise a SyntaxError . None is the sole instance of the NoneType type. NotImplemented ¶ A special value which should be returned by the binary special methods (e.g. __eq__() , __lt__() , __add__() , __rsub__( ... ) , etc.) to indicate that the operation is not implemented with respect to the other type; may be returned by the in-place binary special methods (e.g. __imul__() , __iand__() , et ... c.) for the same purpose. It should not be evaluated in a boolean context. NotImplemented is the sole instance of the types.NotImplementedType type. 注釈 二項演算の (あるいはインプレースの) メソッドが NotImplemen ...
https://man.mtool.work/python/3.14/builtins/constants.html
組み込み定数 — Python 3.14.8 ドキュメント 13916
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み定数 テーマ 自動 ライト ダーク | 組み込み定数 ¶ 組み込み名前空間にはいくつかの定数があります。定数の一覧: False ¶ bool 型の偽 ... d to a function. Assignments to None are illegal and raise a SyntaxError . None is the sole instance of the NoneType type. NotImplemented ¶ A special value which should be returned by the binary special methods (e.g. __eq__() , __lt__() , __add__() , __rsub__( ... ) , etc.) to indicate that the operation is not implemented with respect to the other type; may be returned by the in-place binary special methods (e.g. __imul__() , __iand__() , et ... c.) for the same purpose. It should not be evaluated in a boolean context. NotImplemented is the sole instance of the types.NotImplementedType type. 注釈 二項演算の (あるいはインプレースの) メソッドが NotImplemen ...
https://man.mtool.work/python/3.14/builtins/constants.html
numbers --- 数の抽象基底クラス — Python 3.14.8 ドキュメント 10063
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » numbers --- 数の抽象基底クラス テーマ 自動 ライト ダーク | numbers --- 数の抽象基底クラス ¶ ソースコード: Li ... , other ) elif isinstance ( other , OtherTypeIKnowAbout ): return do_my_other_adding_stuff ( self , other ) else : return NotImplemented def __radd__ ( self , other ): if isinstance ( other , MyIntegral ): return do_my_adding_stuff ( other , self ) elif isins ... ( other ) + float ( self ) elif isinstance ( other , Complex ): return complex ( other ) + complex ( self ) else : return NotImplemented ここには5つの異なる Complex のサブクラス間の混在型の演算があります。上のコードの中で MyIntegral と OtherTypeIKnowAbout に触 ... from __add__() , we'd miss the possibility that B defines a more intelligent __radd__() , so the boilerplate should return NotImplemented from __add__() . (Or A may not implement __add__() at all.) Then B 's __radd__() gets a chance. If it accepts a , all is w ...
https://man.mtool.work/python/3.14/library/numbers.html
numbers --- 数の抽象基底クラス — Python 3.14.8 ドキュメント 9466
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » numbers --- 数の抽象基底クラス テーマ 自動 ライト ダーク | numbers --- 数の抽象基底クラス ¶ ソースコード: Li ... , other ) elif isinstance ( other , OtherTypeIKnowAbout ): return do_my_other_adding_stuff ( self , other ) else : return NotImplemented def __radd__ ( self , other ): if isinstance ( other , MyIntegral ): return do_my_adding_stuff ( other , self ) elif isins ... ( other ) + float ( self ) elif isinstance ( other , Complex ): return complex ( other ) + complex ( self ) else : return NotImplemented ここには5つの異なる Complex のサブクラス間の混在型の演算があります。上のコードの中で MyIntegral と OtherTypeIKnowAbout に触 ... from __add__() , we'd miss the possibility that B defines a more intelligent __radd__() , so the boilerplate should return NotImplemented from __add__() . (Or A may not implement __add__() at all.) Then B 's __radd__() gets a chance. If it accepts a , all is w ...
https://man.mtool.work/python/3.14/library/numbers.html
3. データモデル — Python 3.14.8 ドキュメント 8856
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 3. データモデル テーマ 自動 ライト ダーク | 3. データモデル ¶ 3.1. オブジェクト、値、および型 ¶ Objects are Python's abstraction for da ... ことをしめします。例えば、明示的に値を返さない関数は None を返します。 None の真値 (truth value) は偽 (false) です。 3.2.2. NotImplemented ¶ This type has a single value. There is a single object with this value. This object is accessed through the built-in nam ... e NotImplemented . Numeric methods and rich comparison methods should return this value if they do not implement the operation for the oper ... should not be evaluated in a boolean context. 詳細は 算術演算の実装 を参照してください。 バージョン 3.9 で変更: Evaluating NotImplemented in a boolean context was deprecated. バージョン 3.14 で変更: Evaluating NotImplemented in a boolean context now raises a T ...
https://man.mtool.work/python/3.14/reference/datamodel.html
オブジェクトプロトコル (object protocol) — Python 3.14.8 ドキュメント 8623
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » オブジェクトプロトコル (object protocol) テーマ 自動 ライト ダーク | オブジェク ... ne Py_CONSTANT_FALSE ¶ 1 False Py_CONSTANT_TRUE ¶ 2 True Py_CONSTANT_ELLIPSIS ¶ 3 Ellipsis Py_CONSTANT_NOT_IMPLEMENTED ¶ 4 NotImplemented Py_CONSTANT_ZERO ¶ 5 0 Py_CONSTANT_ONE ¶ 6 1 Py_CONSTANT_EMPTY_STR ¶ 7 '' Py_CONSTANT_EMPTY_BYTES ¶ 8 b'' Py_CONSTANT_EMPT ... ce is borrowed from the interpreter, and is valid until the interpreter finalization. Added in version 3.13. PyObject * Py_NotImplemented ¶ 与えられたオブジェクトとメソッドの引数の型の組み合わせの処理が未実装である印として使われる、 未実装 (NotImplemented) シン ... グルトン。 Py_RETURN_NOTIMPLEMENTED ¶ Properly handle returning Py_NotImplemented from within a C function (that is, create a new strong reference to NotImple ...
https://man.mtool.work/python/3.14/c-api/object.html
3. データモデル — Python 3.14.8 ドキュメント 8623
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 3. データモデル テーマ 自動 ライト ダーク | 3. データモデル ¶ 3.1. オブジェクト、値、および型 ¶ Objects are Python's abstraction for da ... ことをしめします。例えば、明示的に値を返さない関数は None を返します。 None の真値 (truth value) は偽 (false) です。 3.2.2. NotImplemented ¶ This type has a single value. There is a single object with this value. This object is accessed through the built-in nam ... e NotImplemented . Numeric methods and rich comparison methods should return this value if they do not implement the operation for the oper ... should not be evaluated in a boolean context. 詳細は 算術演算の実装 を参照してください。 バージョン 3.9 で変更: Evaluating NotImplemented in a boolean context was deprecated. バージョン 3.14 で変更: Evaluating NotImplemented in a boolean context now raises a T ...
https://man.mtool.work/python/3.14/reference/datamodel.html
オブジェクトプロトコル (object protocol) — Python 3.14.8 ドキュメント 8376
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » オブジェクトプロトコル (object protocol) テーマ 自動 ライト ダーク | オブジェク ... ne Py_CONSTANT_FALSE ¶ 1 False Py_CONSTANT_TRUE ¶ 2 True Py_CONSTANT_ELLIPSIS ¶ 3 Ellipsis Py_CONSTANT_NOT_IMPLEMENTED ¶ 4 NotImplemented Py_CONSTANT_ZERO ¶ 5 0 Py_CONSTANT_ONE ¶ 6 1 Py_CONSTANT_EMPTY_STR ¶ 7 '' Py_CONSTANT_EMPTY_BYTES ¶ 8 b'' Py_CONSTANT_EMPT ... ce is borrowed from the interpreter, and is valid until the interpreter finalization. Added in version 3.13. PyObject * Py_NotImplemented ¶ 与えられたオブジェクトとメソッドの引数の型の組み合わせの処理が未実装である印として使われる、 未実装 (NotImplemented) シン ... グルトン。 Py_RETURN_NOTIMPLEMENTED ¶ Properly handle returning Py_NotImplemented from within a C function (that is, create a new strong reference to NotImple ...
https://man.mtool.work/python/3.14/c-api/object.html
abc --- 抽象基底クラス — Python 3.14.8 ドキュメント 7896
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » abc --- 抽象基底クラス テーマ 自動 ライト ダーク | abc --- 抽象基底クラス ¶ ソースコード: Lib/abc.py こ ... C. (This class method is called from the __subclasscheck__() method of the ABC.) This method should return True , False or NotImplemented . If it returns True , the subclass is considered a subclass of this ABC. If it returns False , the subclass is not consid ... ered a subclass of this ABC, even if it would normally be one. If it returns NotImplemented , the subclass check is continued with the usual mechanism. この概念のデモとして、次の ABC 定義の例を見てください: class F ... shook__ ( cls , C ): if cls is MyIterable : if any ( "__iter__" in B . __dict__ for B in C . __mro__ ): return True return NotImplemented MyIterable . register ( Foo ) The ABC MyIterable defines the standard iterable method, __iter__() , as an abstract method. ...
https://man.mtool.work/python/3.14/library/abc.html
abc --- 抽象基底クラス — Python 3.14.8 ドキュメント 7896
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » abc --- 抽象基底クラス テーマ 自動 ライト ダーク | abc --- 抽象基底クラス ¶ ソースコード: Lib/abc.py こ ... C. (This class method is called from the __subclasscheck__() method of the ABC.) This method should return True , False or NotImplemented . If it returns True , the subclass is considered a subclass of this ABC. If it returns False , the subclass is not consid ... ered a subclass of this ABC, even if it would normally be one. If it returns NotImplemented , the subclass check is continued with the usual mechanism. この概念のデモとして、次の ABC 定義の例を見てください: class F ... shook__ ( cls , C ): if cls is MyIterable : if any ( "__iter__" in B . __dict__ for B in C . __mro__ ): return True return NotImplemented MyIterable . register ( Foo ) The ABC MyIterable defines the standard iterable method, __iter__() , as an abstract method. ...
https://man.mtool.work/python/3.14/library/abc.html
PREV 1 2 3 4 5 6 NEXT