Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 91 for dict (0.043 sec.)
12.3. shelve --- Python オブジェクトの永続化 — Python 3.6.5 ドキュメント 8206
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... について知識が必要となります。 class shelve. Shelf ( dict , protocol=None , writeback=False , keyencoding='u ... ¶ collections.abc.MutableMapping のサブクラスで、 dict オブジェクト内にpickle化された値を保持します。 デフ ... トリはメモリ上にキャッシュされ、ファイルを閉じる際に dict に書き戻されます; この機能により、可変のエントリに ... ます。 keyencoding パラメータは、shelf の背後にある dict に対して使われる前にキーをエンコードするのに使用さ ...
https://man.plustar.jp/python/library/shelve.html - [similar]
What's New In Python 3.0 — Python 3.6.5 ドキュメント 8206
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... かの良く使われている API はもはやリストを返しません: dictdict.keys() , dict.items() そして dict.values() ... ださい (これは Python 2.5 でも動作し、効率的です)。 dict.iterkeys() 、 dict.iteritems() 、 dict.itervalues( ... に 4 を、そして rest に [1, 2, 3] をセットします。 Dictionary comprehensions: {k: v for k, v in stuff} mea ... ns the same thing as dict(stuff) but is more flexible. (This is PEP 274 vind ...
https://man.plustar.jp/python/whatsnew/3.0.html - [similar]
8.9. types --- 動的な型生成と組み込み型に対する名前 — Python 3.6.5 ドキュメント 8099
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... たコピーです。 kwds 引数が渡されなければ、これは空の dict になります。 バージョン 3.3 で追加. バージョン 3.6 ... pace : def __init__ ( self , ** kwargs ): self . __dict__ . update ( kwargs ) def __repr__ ( self ): keys ... = sorted ( self . __dict__ ) items = ( " {} = {!r} " . format ( k , self . ... __dict__ [ k ]) for k in keys ) return " {} ( {} )" . for ...
https://man.plustar.jp/python/library/types.html - [similar]
What's New In Python 3.6 — Python 3.6.5 ドキュメント 7980
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... に Secrets モジュールを追加 . CPython の実装の改善: dict 型は、 Raymond Hettinger の提案に基づき、 PyPy dic ... # Note: no initial value! class Starship : stats : Dict [ str , int ] = {} 関数アノテーションと同様に、Pyt ... _ ( self , instance , owner ): return instance . __dict__ [ self . name ] def __set__ ( self , instance , ... ecting integer in { self . name } ' ) instance . __dict__ [ self . name ] = value # this is the new initia ...
https://man.plustar.jp/python/whatsnew/3.6.html - [similar]
辞書オブジェクト (dictionary object) — Python 3.6.5 ドキュメント 7873
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... ェクト (concrete object) レイヤ » 辞書オブジェクト (dictionary object) ¶ PyDictObject ¶ この PyObject のサブ ... on の辞書オブジェクトを表現します。 PyTypeObject PyDict_Type ¶ この PyTypeObject のインスタンスは Python の ... 現します。このオブジェクトは、Python レイヤにおける dict と同じオブジェクトです。 int PyDict_Check ( PyObje ... サブタイプのインスタンスの場合に真を返します。 int PyDict_CheckExact ( PyObject *p ) ¶ p が辞書オブジェクトで ...
https://man.plustar.jp/python/c-api/dict.html - [similar]
26.1. typing --- 型ヒントのサポート — Python 3.6.5 ドキュメント 7767
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... を単純化するのに有用です。例えば: from typing import Dict , Tuple , List ConnectionOptions = Dict [ str , st ... tr , servers : List [ Tuple [ Tuple [ str , int ], Dict [ str , str ]]]) -> None : ... 型ヒントとしての No ... port TypeVar , Mapping T = TypeVar ( 'T' ) class MyDict ( Mapping [ str , T ]): ... この場合では MyDict... リック版です。 バージョン 3.6 で追加. class typing. Dict ( dict, MutableMapping[KT, VT] ) ¶ dict のジェネリ ...
https://man.plustar.jp/python/library/typing.html - [similar]
19.2. json --- JSON エンコーダおよびデコーダ — Python 3.6.5 ドキュメント 7661
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... で、任意のオブジェクトリテラルがデコードされた結果 ( dict ) に対し呼び出されます。 object_hook の返り値は di ... 果に対して呼ばれます。 object_pairs_hook の返り値は dict の代わりに使われます。この機能はキーと値のデコード ... 依存する独自のデコーダ (たとえば collections.OrderedDict() は挿入の順序を記憶します) を実装するのに使えます ... ィングの際、以下の変換を行います: JSON Python object dict array list string str number (int) int number (rea ...
https://man.plustar.jp/python/library/json.html - [similar]
12.1. pickle --- Python オブジェクトの直列化 — Python 3.6.5 ドキュメント 7661
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... e 化をカスタマイズするために dispatch_table 属性に dict-like オブジェクトを設定することができます。あるいは ... 数 モジュールのトップレベルで定義されているクラス __dict__ 属性を持つクラス、あるいは __getstate__() メソッ ... f save ( obj ): return ( obj . __class__ , obj . __dict__ ) def load ( cls , attributes ): obj = cls . __n ... ew__ ( cls ) obj . __dict__ . update ( attributes ) return obj クラスは、いく ...
https://man.plustar.jp/python/library/pickle.html - [similar]
型オブジェクト — Python 3.6.5 ドキュメント 7554
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... set ; struct _typeobject * tp_base ; PyObject * tp_dict ; descrgetfunc tp_descr_get ; descrsetfunc tp_desc ... r_set ; Py_ssize_t tp_dictoffset ; initproc tp_init ; allocfunc tp_alloc ; ne ... UBCLASS ¶ Py_TPFLAGS_UNICODE_SUBCLASS ¶ Py_TPFLAGS_DICT_SUBCLASS ¶ Py_TPFLAGS_BASE_EXC_SUBCLASS ¶ Py_TPFLA ... rgs ); Py_VISIT ( self -> kw ); Py_VISIT ( self -> dict ); return 0 ; } Py_VISIT() が循環参照になる恐れのあ ...
https://man.plustar.jp/python/c-api/typeobj.html - [similar]
What's New in Python 2.7 — Python 3.6.5 ドキュメント 7328
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... ルが追加され、 collections モジュールに便利な OrderedDict と Counter が追加され、他にもたくさんの改良が行われ ... づき、 2.7 は collections モジュールに新しい OrderedDict クラスを追加しました。 OrderedDict API は通常の辞書 ... 証されています。 >>> from collections import OrderedDict >>> d = OrderedDict ([( 'first' , 1 ), ... ( 'seco ... 偽の場合、最も古い key が選ばれます: >>> od = OrderedDict ([( x , 0 ) for x in range ( 20 )]) >>> od . popit ...
https://man.plustar.jp/python/whatsnew/2.7.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT