Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 33 for hash (0.071 sec.)
15.1. hashlib --- セキュアハッシュおよびメッセージダイジェスト — Python 3.6.5 ... 15433
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... リ » 15. 暗号関連のサービス » 15.1. hashlib --- セキュアハッシュおよびメッセージダイジェスト ... ¶ ソースコード: Lib/hashlib.py このモジュールは、セキュアハッシュやメッセー ... ンを見てください。 15.1.1. ハッシュアルゴリズム ¶ 各 hash の名前が付いたコンストラクタがあります。いずれも同 ... イジェストを取得するには次のようにします: >>> import hashlib >>> m = hashlib . sha256 () >>> m . update ( b ...
https://man.plustar.jp/python/library/hashlib.html - [similar]
4. 組み込み型 — Python 3.6.5 ドキュメント 11551
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... して、型が異なっていたとしても、 x == y であれば必ず hash(x) == hash(y) であることが要請されます (詳細は __h ... して P を法とする還元で与えられます。 値 P は、 sys.hash_info の modulus 属性として Python で利用できます。 ... 剰余の (剰余演算の意味での) 逆数を与えるものとして、 hash(x) を m * invmod(n, P) % P と定義します。 x = m / ... の逆数を持たず、上の規則は適用できません。この場合、 hash(x) を定数 sys.hash_info.inf と定義します。 x = m / ...
https://man.plustar.jp/python/library/stdtypes.html - [similar]
3. データモデル — Python 3.6.5 ドキュメント 10027
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... よって作成されます。 frozenset は不変でハッシュ可能( hashable )なので、別の集合型の要素になったり、辞書のキー ... していて、辞書のキーに使うことができるハッシュ可能( hashable ) オブジェクトを作るときの重要な注意点について ... 、 __hash__() のドキュメント内に書かれているので参照してくだ ... ます。 仮想サブクラス化は考慮されません。 object. __hash__ ( self ) ¶ 組み込みの hash() 関数や、 set , froz ...
https://man.plustar.jp/python/reference/datamodel.html - [similar]
9.1. numbers --- 数の抽象基底クラス — Python 3.6.5 ドキュメント 8823
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... なるかもしれません。たとえば、 fractions.Fraction は hash() を以下のように実装しています: def __hash__ ( sel ... . denominator == 1 : # Get integers right. return hash ( self . numerator ) # Expensive check, but defini ... tely correct. if self == float ( self ): return hash ( float ( self )) else : # Use tuple's hash to avo ... high collision rate on # simple fractions. return hash (( self . numerator , self . denominator )) 9.1.2. ...
https://man.plustar.jp/python/library/numbers.html - [similar]
8.4. collections.abc --- コレクションの抽象基底クラス — Python 3.6.5 ドキュメン... 8631
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 抽象メソッド mixin メソッド Container __contains__ Hashable __hash__ Iterable __iter__ Iterator Iterable _ ... ollections.abc. Container ¶ class collections.abc. Hashable ¶ class collections.abc. Sized ¶ class collect ... bc. Callable ¶ それぞれメソッド __contains__() , __hash__() , __len__() , __call__() を提供するクラスの AB ... ver speed and not requiring the set elements to be hashable. ''' def __init__ ( self , iterable ): self . ...
https://man.plustar.jp/python/library/collections.abc.html - [similar]
型オブジェクト — Python 3.6.5 ドキュメント 8374
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... unc, setattrfunc, setattrofunc, cmpfunc, reprfunc, hashfunc PyTypeObject の構造体定義は Include/object.h で ... dard operations (here for binary compatibility) */ hashfunc tp_hash ; ternaryfunc tp_call ; reprfunc tp_st ... んが、これに含まれるフィールドが個別に継承されます。 hashfunc PyTypeObject.tp_hash ¶ オプションのポインタで、 ... 組み込み関数 hash() を実装している関数を指します。 シグネチャは PyOb ...
https://man.plustar.jp/python/c-api/typeobj.html - [similar]
3. Defining Extension Types: Assorted Topics — Python 3.6.5 ドキュメント 8374
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... dard operations (here for binary compatibility) */ hashfunc tp_hash ; ternaryfunc tp_call ; reprfunc tp_st ... ースにある Objects でみつけることができるでしょう。 hashfunc tp_hash ; この関数は、もし使うことにしたならば ... 号を返すようにします。次のは単純な例です: static Py_hash_t newdatatype_hash ( newdatatypeobject * obj ) { P ... y_hash_t result ; result = obj -> some_size + 32767 * obj ...
https://man.plustar.jp/python/extending/newtypes.html - [similar]
35.5. crypt --- Unix パスワードをチェックするための関数 — Python 3.6.5 ドキュメ... 8310
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... getpass from hmac import compare_digest as compare_hash def login (): username = input ( 'Python login: ' ... ) cleartext = getpass . getpass () return compare_hash ( crypt . crypt ( cleartext , cryptedpasswd ), cry ... t crypt from hmac import compare_digest as compare_hash hashed = crypt . crypt ( plaintext ) if not compar ... e_hash ( hashed , crypt . crypt ( plaintext , hashed )): ...
https://man.plustar.jp/python/library/crypt.html - [similar]
オブジェクトプロトコル (object protocol) — Python 3.6.5 ドキュメント 8182
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... たオブジェクトを返し失敗すると NULL を返します。 Py_hash_t PyObject_Hash ( PyObject *o ) ¶ オブジェクト o の ... して返します。失敗すると -1 を返します。 Python の式 hash(o) と同じです。 バージョン 3.2 で変更: 返り値の型が ... Py_hash_t になりました。この型は、 Py_ssize_t と同じサイズ ... をもつ符号付き整数です。 Py_hash_t PyObject_HashNotImplemented ( PyObject *o ) ¶ ty ...
https://man.plustar.jp/python/c-api/object.html - [similar]
デザインと歴史 FAQ — Python 3.6.5 ドキュメント 8182
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問 ... Python's dictionaries are implemented as resizable hash tables. Compared to B-trees, this gives better per ... ances, and the implementation is simpler. 辞書は、 hash() 組み込み関数で、辞書に保存されているそれぞれのキ ... 行ってください。ミュータブルな構造を、 __eq__() と __hash__() メソッドの両方を持つクラスインスタンスに含める ... : return self . the_list == other . the_list def __hash__ ( self ): l = self . the_list result = 98767 - l ...
https://man.plustar.jp/python/faq/design.html - [similar]
PREV 1 2 3 4 NEXT