Results of 1 - 8 of about 8 for singleton (0.007 sec.)
- None オブジェクト 12995
- None オブジェクト None に対する PyTypeObject は、 Python/C API では直接公開されていないので注意してください。 None は単量子 (singleton) なので、オブジェクトの同一性テスト (C では == ) を使うだけで十分だからです。同じ理由から、 PyNone_Check(
... - https://man.mtool.work/python/3.14/c-api/none.html
- 5. データ構造 10356
- 5. データ構造 この章では、すでに学んだことについてより詳しく説明するとともに、いくつか新しいことを追加します。 5.1. リスト型についてもう少し list 型には、他にもいくつかメソッドがあります。リストオブジェクトのすべてのメソッドを以下に示します
...で囲むだけでは不十分です) ことで構築できます。美しくはないけれども、効果的です。例えば以下のようにします: >>> empty = () >>> singleton = 'hello' , # <-- 末尾にカンマがあることに注意 >>> len ( empty ) 0 >>> len ( singleton ) 1 >>> singleton ('hello',) 文 t =... - https://man.mtool.work/python/3.14/tutorial/datastructures.html
- 具象オブジェクト (concrete object) レイヤ 9904
- 具象オブジェクト (concrete object) レイヤ この章では、特定の Python オブジェクト型固有の関数について述べています。これらの関数に間違った型のオブジェクトを渡すのは良い考えではありません; Python プログラムから何らかのオブジェクトを受け取ったと
...ちに終了したりする可能性があります。 基本オブジェクト (fundamental object) この節では、Python の型オブジェクトとシングルトン(singleton)オブジェクト None について述べます。 型オブジェクト ヒープに割り当てられる型の作成 None オブジェクト 数値型オブジェクト (n... - https://man.mtool.work/python/3.14/c-api/concrete.html
- 共通のオブジェクト構造体 (common object structure) 8151
- 共通のオブジェクト構造体 (common object structure) Python のオブジェクト型の定義には、多数の構造体が使われます。 この節では、それらの構造体と使い方を説明します。 基本のオブジェクト型とマクロ すべての Python オブジェクトは、メモリ上の表現の先
...失敗すると例外を設定して -1 を返す必要があります。 他のマニュアルの関連ページ Django custom-model-fields PHP language.types.singleton PHP language.types.relative-class-types PHP lua.call PHP phar.fileformat.signature Linux JM dsp56k(4)... - https://man.mtool.work/python/3.14/c-api/structures.html
- 1. Extending Python with C or C++ 7699
- 1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec
...数になります。Python 関数を引数なしで呼び出すのなら、 NULL か空のタプルを渡します; 単一の引数で関数を呼び出すのなら、単要素 (singleton) のタプルを渡します。 Py_BuildValue() の書式文字列中に、ゼロ個または一個以上の書式化コードが入った丸括弧がある場合、この関... - https://man.mtool.work/python/3.14/extending/extending.html
- プログラミング FAQ 7699
- プログラミング FAQ 一般的な質問 ブレークポイントやステップ実行ができる、ソースコードレベルのデバッガはありますか? はい。 Python 用のデバッガについては次に解説してあり、組み込みの breakpoint() 関数でそれらのデバッガに処理を移せます。 pdb モジ
...入力値である場合に厄介なことになる場合があります。この状況では、他のオブジェクトと必ず区別できる唯一のマーカーオブジェクト( singleton sentinel object )を作ることで対策できます。例えば、 dict.pop() のように振る舞うメソッドを実装する方法を示します: _sentine... - https://man.mtool.work/python/3.14/faq/programming.html
- 3. データモデル 7699
- 3. データモデル 3.1. オブジェクト、値、および型 オブジェクト は、Python がデータを抽象化したものです。 Python プログラム内のすべてのデータは、オブジェクトまたはオブジェクト間の関係として表されます。 コードもオブジェクトで表されます。 すべて
...Python オブジェクトを使えます。 2 個以上の要素を持つタプルは、式をコンマで区切って並べることで作成します。 1 要素のタプル (singleton) は式の末尾にコンマを付けて作成できます (丸括弧は式のグループ化にも使う必要があるため、式だけではタプルになりません)。 空の... - https://man.mtool.work/python/3.14/reference/datamodel.html
- 変更履歴 7699
- 変更履歴 次の Python バージョン リリース日: XXXX-XX-XX セキュリティ gh-160499 : Fix unbounded memory growth in asyncio TLS connections when a peer stops reading but keeps sending records that make OpenSSL generate its own replies (such as T
...タが常に必須になっていました。 C API gh-156995 : On Free Threading, _PyBytes_Resize(&obj, 1) no longer returns a single byte singleton if the current thread is different than the thread which created the object. Patch by Stan Ulbrych. gh-156101 : PyLong_AsI... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
PREV
1
NEXT