Python 3.6.5 ドキュメント 検索
Results of 31 - 40 of about 91 for dict (0.090 sec.)
- モジュールオブジェクト (module object) — Python 3.6.5 ドキュメント 6450
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ
...
nstead of a Unicode object. PyObject * PyModule_GetDict ( PyObject *module ) ¶ Return value: Borrowed refe...
ます; このオブジェクトは、モジュールオブジェクトの __dict__ 属性と同じものです。 module がモジュールオブジェ...
が返されます。 拡張モジュールでは、モジュールの __dict__ を直接操作するよりも、 PyModule_*() および PyObj...
を使って取得できる) 全ての状態や、(モジュールの __dict__ や PyType_FromSpec() で生成された個々のクラスのよ...
- https://man.plustar.jp/python/c-api/module.html - [similar]
- プログラミング FAQ — Python 3.6.5 ドキュメント 6450
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問
...
e[i] += ['item'] は例外を送出するのですか? 辞書型 (dictionary) 一貫した順序でキーを保存し、表示する辞書はあ...
付きます。この関数を考えてみてください: def foo ( mydict = {}): # Danger: shared reference to one dict for...
all calls ... compute something ... mydict [ key ] = value return mydict 初めてこの関数を呼び...
出した時、 mydict には一つの要素があります。二回目には、 foo() が実行...
- https://man.plustar.jp/python/faq/programming.html - [similar]
- 10.2. functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.6.5 ド... 6450
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
ction fun_num at 0x1035a2840> >>> fun . dispatch ( dict ) # note: default implementation <function fun at...
try 属性を使用します: >>> fun . registry . keys () dict_keys([<class 'NoneType'>, <class 'int'>, <class 'o...
代入する) と WRAPPER_UPDATES (これはラッパー関数の __dict__ すなわちインスタンス辞書をアップデートする) です...
- https://man.plustar.jp/python/library/functools.html - [similar]
- 29.12. inspect --- 活動中のオブジェクトの情報を取得する — Python 3.6.5 ドキュメ... 6450
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
¶ An ordered, mutable mapping ( collections.OrderedDict ) of parameters' names to arguments' values. Conta...
ord arguments ( **kwargs ) the default is an empty dict. >>> def foo ( a , b = 'ham' , * args ): pass >>>...
> ba . apply_defaults () >>> ba . arguments OrderedDict([('a', 'spam'), ('b', 'ham'), ('args', ())]) バージ...
keyword-only parameter names. kwonlydefaults is a dictionary mapping parameter names from kwonlyargs to t...
- https://man.plustar.jp/python/library/inspect.html - [similar]
- 29.3. builtins --- 組み込みオブジェクト — Python 3.6.5 ドキュメント 6344
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
このモジュールそのものか、あるいはこのモジュールの __dict__ 属性です。これは実装の詳細部分なので、異なる Pyt...
- https://man.plustar.jp/python/library/builtins.html - [similar]
- 6. 式 (expression) — Python 3.6.5 ドキュメント 6344
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ
...
losure enclosure ::= parenth_form | list_display | dict_display | set_display | generator_expression | yie...
なる系列です。系列は空の系列であってもかまいません: dict_display ::= "{" [ key_datum_list | dict_comprehens...
datum ::= expression ":" expression | "**" or_expr dict_comprehension ::= expression ":" expression comp_f...
書きされます。 バージョン 3.5 で追加: Unpacking into dictionary displays, originally proposed by PEP 448 . 辞...
- https://man.plustar.jp/python/reference/expressions.html - [similar]
- What's New in Python 2.0 — Python 3.6.5 ドキュメント 6344
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
): # args is a tuple of positional args, # kw is a dictionary of keyword args ... print 文がUnix シェルのリ...
key の値として追加もします。ですから以下コード: if dict . has_key ( key ): return dict [ key ] else : dict...
[ key ] = [] return dict [ key ] は、単一の return dict.setdefault(key, [])...
- https://man.plustar.jp/python/whatsnew/2.0.html - [similar]
- What's New in Python 2.6 — Python 3.6.5 ドキュメント 6344
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
om multiprocessing import Pool def factorial ( N , dictionary ): "Compute a factorial." ... p = Pool ( 5 )...
をプロキシオブジェクトを使って行えます。続く例では、 dict() メソッドを呼ぶことにより共有辞書を作ります; ワー...
ocessing import Pool , Manager def factorial ( N , dictionary ): "Compute a factorial." # Calculate the re...
e ( 1 , N + 1 ): fact = fact * i # Store result in dictionary dictionary [ N ] = fact if __name__ == '__ma...
- https://man.plustar.jp/python/whatsnew/2.6.html - [similar]
- What's New In Python 3.2 — Python 3.6.5 ドキュメント 6344
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
軟な設定をサポートするために、新たに logging.config.dictConfig() が追加されました。これはロギングの設定を通...
onf = json . load ( f ) ... >>> logging . config . dictConfig ( conf ) >>> logging . info ( "Transaction c...
字列書式化を使うことを可能にします。たとえば defaultdict , Shelf , ConfigParser , あるいは dbm などで使える...
ということです。カスタムな dict のサブクラスと一緒に使うのも便利で、例えばルックア...
- https://man.plustar.jp/python/whatsnew/3.2.html - [similar]
- 29.7. abc --- 抽象基底クラス — Python 3.6.5 ドキュメント 6237
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
f cls is MyIterable : if any ( "__iter__" in B . __dict__ for B in C . __mro__ ): return True return NotIm...
または __mro__ でアクセスされる基底クラスの一つの) __dict__ にある場合にもそのクラスが MyIterable だと見なさ...
- https://man.plustar.jp/python/library/abc.html - [similar]