Python 3.6.5 ドキュメント 検索
Results of 1 - 10 of about 20 for NotImplemented (0.004 sec.)
- 3. 組み込み定数 — Python 3.6.5 ドキュメント 14767
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...None への代入は不正で、 SyntaxError を送出します。 NotImplemented ¶ 特殊な二項演算のメソッド (e.g. __eq__() , __lt__...注釈 二項演算の (あるいはインプレースの) メソッドが NotImplemented を返した場合、インタープリタはもう一方の型で定義さ...っては他の代替手段も試みます)。試行された演算全てが NotImplemented を返した場合、インタープリタは適切な例外を送出しま...す。 NotImplemented を正しく返さないと、誤解を招きかねないエラーメッセ... - https://man.plustar.jp/python/library/constants.html - [similar]
- 9.1. numbers --- 数の抽象基底クラス — Python 3.6.5 ドキュメント 11045
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
..._other_adding_stuff ( self , other ) else : return NotImplemented def __radd__ ( self , other ): if isinstance ( oth...complex ( other ) + complex ( self ) else : return NotImplemented ここには5つの異なる Complex のサブクラス間の混在型...てしまいますので、ボイラープレートは __add__() から NotImplemented を返すのが良いでしょう。(若しくは、 A はまったく _...llback_operator ( complex ( a ), b ) else : return NotImplemented forward . __name__ = '__' + fallback_operator . __... - https://man.plustar.jp/python/library/numbers.html - [similar]
- オブジェクトプロトコル (object protocol) — Python 3.6.5 ドキュメント 9584
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ
...ジェクトプロトコル (object protocol) ¶ PyObject * Py_NotImplemented ¶ 与えられたオブジェクトとメソッドの引数の型の組み...合わせの処理が未実装である印として使われる、 未実装 (NotImplemented) シングルトン。 Py_RETURN_NOTIMPLEMENTED ¶ C 関数か...ら Py_NotImplemented を返す処理を適切に行います (すなわち、 NotImplemen...イズをもつ符号付き整数です。 Py_hash_t PyObject_HashNotImplemented ( PyObject *o ) ¶ type(o) がハッシュ不可能であるこ... - https://man.plustar.jp/python/c-api/object.html - [similar]
- 29.7. abc --- 抽象基底クラス — Python 3.6.5 ドキュメント 8938
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...呼び出されます。) このメソッドは True , False または NotImplemented を返さなければなりません。 True を返す場合は、 sub...であっても ABC のサブクラスではないと見なされます。 NotImplemented の場合、サブクラスチェックは通常のメカニズムに戻り..._dict__ for B in C . __mro__ ): return True return NotImplemented MyIterable . register ( Foo ) ABC MyIterable は標準... - https://man.plustar.jp/python/library/abc.html - [similar]
- 8.13. enum --- 列挙型のサポート — Python 3.6.5 ドキュメント 8615
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
..... return self . value >= other . value ... return NotImplemented ... def __gt__ ( self , other ): ... if self . __c...... return self . value > other . value ... return NotImplemented ... def __le__ ( self , other ): ... if self . __c..... return self . value <= other . value ... return NotImplemented ... def __lt__ ( self , other ): ... if self . __c...... return self . value < other . value ... return NotImplemented ... >>> class Grade ( OrderedEnum ): ... A = 5 ...... - https://man.plustar.jp/python/library/enum.html - [similar]
- 10.2. functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.6.5 ド... 8615
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...if not self . _is_valid_operand ( other ): return NotImplemented return (( self . lastname . lower (), self . first...if not self . _is_valid_operand ( other ): return NotImplemented return (( self . lastname . lower (), self . first...4 で変更: 認識できない型に対して下層の比較関数から NotImplemented を返すことがサポートされるようになりました。 funct... - https://man.plustar.jp/python/library/functools.html - [similar]
- 34.3. winreg --- Windows レジストリへのアクセス — Python 3.6.5 ドキュメント 8462
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...ます。 サポートされていない Windows バージョンでは、 NotImplementedError 例外を発生させます。 バージョン 3.2 で追加. バ...Y_* 定数 のうちの一つです。 32bit OS上では一般的に NotImplemented 例外を発生させます。 key がリフレクションリストに無...Y_* 定数 のうちの一つです。 32bit OS上では一般的に NotImplemented 例外を発生させます。 あるキーのリフレクションを再開...いる場合、 True を返します。 32bit OS上では一般的に NotImplemented 例外を発生させます。 34.3.2. 定数 ¶ _winreg の多く... - https://man.plustar.jp/python/library/winreg.html - [similar]
- 3. データモデル — Python 3.6.5 ドキュメント 8462
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ
...ます。 None の真値 (truth value) は偽 (false) です。 NotImplemented この型には単一の値しかありません。この値を持つオブ...だ一つしか存在しません。このオブジェクトは組み込み名 NotImplemented でアクセスされます。数値演算に関するメソッドや拡張...アに対する演算を実装していないときに、 シングルトン NotImplemented を返すかもしれません。 慣例として、正常に比較が行わ...結果の真偽を判断します。 デフォルトでは __ne__() は NotImplemented でない限り __eq__() に委譲して結果を反転させます。... - https://man.plustar.jp/python/reference/datamodel.html - [similar]
- 26.5. unittest.mock --- モックオブジェクトライブラリ — Python 3.6.5 ドキュメン... 8139
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...設定可能です。 メソッドとそのデフォルト値: __lt__ : NotImplemented __gt__ : NotImplemented __le__ : NotImplemented __...ge__ : NotImplemented __int__ : 1 __contains__ : False __len__ : 0 __ite... - https://man.plustar.jp/python/library/unittest.mock.html - [similar]
- What's New in Python 2.1 — Python 3.6.5 ドキュメント 8139
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...渡された場合は、それが失敗であることを表すために Py_NotImplemented シングルトン値への参照を返せます。この場合他の数値...が試されて、おそらく操作を実行出来ます。それでも Py_NotImplemented を返すなら TypeError が送出されます。Python で書か...れた数値メソッドも Py_NotImplemented を返せます。この場合インタプリタはメソッドが存在し... - https://man.plustar.jp/python/whatsnew/2.1.html - [similar]
