per page, with , order by , clip by
Results of 1 - 10 of about 39 for setdefault (0.005 sec.)
dbm --- Unix "データベース" へのインターフェース — Python 3.14.8 ドキュメント 14738
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » dbm --- Unix "データベース" へのインターフェース テーマ 自動 ライト ダーク | dbm --- Unix "データベース" へのインタ ... ir corresponding values can be stored, retrieved, and deleted, and iteration, the in operator and methods keys() , get() , setdefault() and clear() are available. The keys() method returns a list instead of a view object. The setdefault() method requires t ... with 文での使用にも対応しています。with 文を使用した場合、終了時に自動的に閉じられます。 バージョン 3.2 で変更: get() and setdefault() methods are now available for all dbm backends. バージョン 3.4 で変更: Added native support for the context management p ... created. The returned database object behaves similar to a mutable mapping , but the keys() method returns a list, and the setdefault() method requires two arguments. It also supports a "closing" context manager via the with keyword. 次のメソッドを提供して ...
https://man.mtool.work/python/3.14/library/dbm.html
dbm --- Unix "データベース" へのインターフェース — Python 3.14.8 ドキュメント 13955
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » dbm --- Unix "データベース" へのインターフェース テーマ 自動 ライト ダーク | dbm --- Unix "データベース" へのインタ ... ir corresponding values can be stored, retrieved, and deleted, and iteration, the in operator and methods keys() , get() , setdefault() and clear() are available. The keys() method returns a list instead of a view object. The setdefault() method requires t ... with 文での使用にも対応しています。with 文を使用した場合、終了時に自動的に閉じられます。 バージョン 3.2 で変更: get() and setdefault() methods are now available for all dbm backends. バージョン 3.4 で変更: Added native support for the context management p ... created. The returned database object behaves similar to a mutable mapping , but the keys() method returns a list, and the setdefault() method requires two arguments. It also supports a "closing" context manager via the with keyword. 次のメソッドを提供して ...
https://man.mtool.work/python/3.14/library/dbm.html
http.cookies --- HTTP の状態管理 — Python 3.14.8 ドキュメント 8520
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » http.cookies --- HTTP の状態管理 テーマ 自動 ライト ダーク | http.cookies --- HTTP の状態管理 ... ¶ Morsel オブジェクトの浅いコピーを返します。 バージョン 3.5 で変更: 辞書ではなく Morsel オブジェクトを返します。 Morsel. setdefault ( key , value = None ) ¶ キーが有効な RFC 2109 属性でない場合エラーを送出します。そうでない場合は dict.setdefault() と同じ ...
https://man.mtool.work/python/3.14/library/http.cookies.html
http.cookies --- HTTP の状態管理 — Python 3.14.8 ドキュメント 8520
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » http.cookies --- HTTP の状態管理 テーマ 自動 ライト ダーク | http.cookies --- HTTP の状態管理 ... ¶ Morsel オブジェクトの浅いコピーを返します。 バージョン 3.5 で変更: 辞書ではなく Morsel オブジェクトを返します。 Morsel. setdefault ( key , value = None ) ¶ キーが有効な RFC 2109 属性でない場合エラーを送出します。そうでない場合は dict.setdefault() と同じ ...
https://man.mtool.work/python/3.14/library/http.cookies.html
Dictionary Objects — Python 3.14.8 ドキュメント 8128
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » Dictionary Objects テーマ 自動 ライト ダーク | Dictionary Objects ¶ type PyDictObject ... pecified as a const char * UTF-8 encoded bytes string, rather than a PyObject * . Added in version 3.13. PyObject * PyDict_SetDefault ( PyObject * p , PyObject * key , PyObject * defaultobj ) ¶ 戻り値: 借用参照。 Thread safety: Safe to call from multiple t ... hreads with external synchronization only . これは Python レベルの dict.setdefault() と同じです。 もしあれば、辞書 p から key に対応する値を返します。 キーが辞書になければ、値 defaultobj を挿入し defaultob ... , the returned borrowed reference may become invalid if another thread modifies the dictionary concurrently. Prefer PyDict_SetDefaultRef() , which returns a strong reference . int PyDict_SetDefaultRef ( PyObject * p , PyObject * key , PyObject * default_va ...
https://man.mtool.work/python/3.14/c-api/dict.html
Dictionary Objects — Python 3.14.8 ドキュメント 8128
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » Dictionary Objects テーマ 自動 ライト ダーク | Dictionary Objects ¶ type PyDictObject ... pecified as a const char * UTF-8 encoded bytes string, rather than a PyObject * . Added in version 3.13. PyObject * PyDict_SetDefault ( PyObject * p , PyObject * key , PyObject * defaultobj ) ¶ 戻り値: 借用参照。 Thread safety: Safe to call from multiple t ... hreads with external synchronization only . これは Python レベルの dict.setdefault() と同じです。 もしあれば、辞書 p から key に対応する値を返します。 キーが辞書になければ、値 defaultobj を挿入し defaultob ... , the returned borrowed reference may become invalid if another thread modifies the dictionary concurrently. Prefer PyDict_SetDefaultRef() , which returns a strong reference . int PyDict_SetDefaultRef ( PyObject * p , PyObject * key , PyObject * default_va ...
https://man.mtool.work/python/3.14/c-api/dict.html
What's New in Python 2.0 — Python 3.14.8 ドキュメント 7940
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.0 テーマ 自動 ライト ダーク | What's New in Python 2.0 ¶ 著者 : A.M. Kuchling and Moshe Zadka はじめに ¶ 新 Python ... フォルトのエンコーディングは普通 7 ビット ASCII ですが、Python インストレーションにおいて、 site.py のカスタマイズ版内で sys.setdefaultencoding(encoding) を呼び出すことで変更出来ます。 8 ビット文字列と Unicode 文字列を結合すると常に、デフォルトの ASCII エンコ ... 前付きタプルになっています。また、その属性名では level ではなく releaselevel です。---) Dictionaries have an odd new method, setdefault(key, default) , which behaves similarly to the existing get() method. However, if the key is missing, setdefault() both re ... f code: if dict . has_key ( key ): return dict [ key ] else : dict [ key ] = [] return dict [ key ] は、単一の return dict.setdefault(key, []) ステートメントだけで書けます。 再帰の暴走を C のスタックが埋め尽くされてコアダンプしたり GPF (訳注: General Prote ...
https://man.mtool.work/python/3.14/whatsnew/2.0.html
What's New in Python 2.0 — Python 3.14.8 ドキュメント 7940
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.0 テーマ 自動 ライト ダーク | What's New in Python 2.0 ¶ 著者 : A.M. Kuchling and Moshe Zadka はじめに ¶ 新 Python ... フォルトのエンコーディングは普通 7 ビット ASCII ですが、Python インストレーションにおいて、 site.py のカスタマイズ版内で sys.setdefaultencoding(encoding) を呼び出すことで変更出来ます。 8 ビット文字列と Unicode 文字列を結合すると常に、デフォルトの ASCII エンコ ... 前付きタプルになっています。また、その属性名では level ではなく releaselevel です。---) Dictionaries have an odd new method, setdefault(key, default) , which behaves similarly to the existing get() method. However, if the key is missing, setdefault() both re ... f code: if dict . has_key ( key ): return dict [ key ] else : dict [ key ] = [] return dict [ key ] は、単一の return dict.setdefault(key, []) ステートメントだけで書けます。 再帰の暴走を C のスタックが埋め尽くされてコアダンプしたり GPF (訳注: General Prote ...
https://man.mtool.work/python/3.14/whatsnew/2.0.html
Thread Safety Guarantees — Python 3.14.8 ドキュメント 7737
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » Thread Safety Guarantees テーマ 自動 ライト ダーク | Thread Safety Guarantees ¶ This page documents thread-safety guarantees for bui ... value # write del d [ key ] # delete d . pop ( key ) # remove and return d . popitem () # remove and return last item d . setdefault ( key , v ) # insert if missing These operations may compare keys using __eq__() , which can execute arbitrary Python code ...
https://man.mtool.work/python/3.14/builtins/threadsafety.html
C API Extension Support for Free Threading — Python 3.14.8 ドキュメント 7737
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » C API Extension Support for Free Threading テーマ 自動 ライト ダーク | C API Extension Support for Free Threading ¶ Starting with the 3.13 release ... PyDict_GetItemRef() PyDict_GetItemWithError() PyDict_GetItemRef() PyDict_GetItemString() PyDict_GetItemStringRef() PyDict_SetDefault() PyDict_SetDefaultRef() PyDict_Next() none (see PyDict_Next ) PyWeakref_GetObject() PyWeakref_GetRef() PyWeakref_GET_OBJE ...
https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
PREV 1 2 3 4 NEXT