Results of 1 - 10 of about 56 for Reference (0.006 sec.)
- 弱参照オブジェクト 14719
- 弱参照オブジェクト Python は 弱参照 を第一級オブジェクト (first-class object) としてサポートします。弱参照を直接実装する二種類の固有のオブジェクト型があります。第一は単純な参照オブジェクトで、第二はオリジナルのオブジェクトに対して可能な限り
...* PyWeakref_NewProxy ( PyObject * ob , PyObject * callback ) 戻り値: 新しい参照。 次に属します: Stable ABI . Return a weak reference proxy object for the object ob . This will always return a new reference, but is not guaranteed to create a new object; an...bject that receives notification when ob is garbage collected; it should accept a single parameter, which will be the weak reference object itself. callback may also be None or NULL . If ob weakly referenceable object, this will raise TypeError and return...on 3.13. PyObject * PyWeakref_GetObject ( PyObject * ref ) 戻り値: 借用参照。 次に属します: Stable ABI . Return a borrowed reference to the referenced object from a weak reference, ref . If the referent is no longer live, returns Py_None . 注釈 This funct... - https://man.mtool.work/python/3.14/c-api/weakref.html
- はじめに 12848
- はじめに Python のアプリケーションプログラマー向けインターフェース (API) は、C と C++ のプログラマーに、Python インタープリタへのさまざまなレベルのアクセスを提供します。 C++ からも同様に使えますが、簡潔に Python/C API と呼びます。 Python/C
...常は静的な PyTypeObject オブジェクトです。 全ての Python オブジェクトには (Python 整数型ですら) 型 ( type ) と参照カウント ( reference count ) があります。あるオブジェクトの型は、そのオブジェクトがどの種類のオブジェクトか (例えば整数、リスト、ユーザ定義関数...st_Check(a) は、 a で示されたオブジェクトが Python リスト型のとき (かつそのときに限り) 真値を返します。 参照カウント法 The reference count is important because today's computers have a finite (and often severely limited) memory size; it counts how many di...fferent places there are that have a strong reference to an object. Such a place could be another object, or a global (or static) C variable, or a local variable in some C func... - https://man.mtool.work/python/3.14/c-api/intro.html
- Expat C API 10593
- Expat C API The xml.parsers.expat module exposes selected Expat functions through its expat_CAPI capsule. This allows extension modules to use the same Expat library as Python. The interface is declared in pyexpat.h , which must be included
...s exported by xml.parsers.expat . The capsule owns this structure: treat it as read-only and do not free it. Keep a strong reference to the capsule while using the table. Check the compatibility fields as described under PyExpat_CAPI_MAGIC before using th...w. Member names omit the XML_ prefix; for example, SetHashSalt exposes Expat's XML_SetHashSalt function. See the Expat API reference for their behavior and the minimum Expat version they appear in. const XML_LChar * ( * ErrorString ) ( enum XML_Error code...ificationFactor ) XML_Bool ( * SetHashSalt16Bytes ) ( XML_Parser parser , const uint8_t entropy [ 16 ] ) See the Expat API reference . 他のマニュアルの関連ページ PHP parle-parser.advance PHP xml.installation PHP parle-parser.trace DuckDB PEG Parser PHP xm... - https://man.mtool.work/python/3.14/c-api/pyexpat.html
- Function オブジェクト 8899
- Function オブジェクト Functionオブジェクト固有の関数はわずかです。 type PyFunctionObject 関数に使われるCの構造体。 In the free-threaded build, direct access to mutable fields requires synchronization if another thread may modify the functio
...オブジェクトに設定できます。 In the free-threaded build, if the attribute may be modified concurrently, convert the borrowed reference to a strong reference with Py_XNewRef() immediately, before calling any other Python API. The same applies to PyFunction_G...いが生じる可能性はありますが、実行される Python コードの意味は変わりません。 If event is PyFunction_EVENT_DESTROY , Taking a reference in the callback to the about-to-be-destroyed function will resurrect it, preventing it from being freed at this time. When... - https://man.mtool.work/python/3.14/c-api/function.html
- 1. Extending Python with C or C++ 8899
- 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
...tionary of keywords. Use PyArg_ParseTupleAndKeywords() to parse the arguments to such a function. The method table must be referenced in the module definition structure: static struct PyModuleDef spam_module = { ... . m_methods = spam_methods , ... }; Thi...へのポインタを返します: これは Python 関数からの戻り値になります。 PyObject_CallObject() は、引数に対して "参照カウント中立 (reference-count- neutral)" です。上の例ではタプルを生成して引数リストとして提供しており、このタプルは PyObject_CallObject() の呼び出...たらめなビットをメモリに上書きしてしまいます。慎重に! 呼び出し側に提供されるオブジェクトへの参照はすべて 借用 参照 (borrowed reference) になります; これらのオブジェクトの参照カウントをデクリメントしてはなりません! 以下にいくつかの呼び出し例を示します: #defi... - https://man.mtool.work/python/3.14/extending/extending.html
- このドキュメントについて 8148
- このドキュメントについて Python のドキュメントは、 Sphinx を使って reStructuredText のソースから生成されています。 Sphinx はもともと Python のために作られたドキュメント生成ツールで、現在は独立したプロジェクトとして保守されています。 ドキュメ
...た。 Docutils プロジェクトは、 reStructuredText と Docutils ツールセットを作成しました。 Fredrik Lundh の Alternative Python Reference プロジェクトから Sphinx は多くのアイデアを得ました。 Pythonドキュメントへの貢献者 Many people have contributed to the Pyth... - https://man.mtool.work/python/3.14/about.html
- デスクリプタオブジェクト (descriptor object) 8148
- デスクリプタオブジェクト (descriptor object) "デスクリプタ (descriptor)" は、あるオブジェクトのいくつかの属性について記述したオブジェクトです。デスクリプタオブジェクトは型オブジェクトの辞書内にあります。 PyTypeObject PyProperty_Type 次に属し
...パーオブジェクトへの 強参照 を返します。 失敗すると例外を設定して NULL を返します。 PyDescr_TYPE ( descr ) Return a borrowed reference to the type that the descriptor descr belongs to. This is accessible as __objclass__ in Python. descr must be a descriptor...ne of these types, the behavior is undefined. PyDescr_NAME ( descr ) Return the name of the descriptor descr as a borrowed reference to a str object. This is available as __name__ in Python. descr must be a descriptor object created by one of the PyDescr_... - https://man.mtool.work/python/3.14/c-api/descriptor.html
- 型オブジェクトの構造体 8148
- 型オブジェクトの構造体 新しい型を定義する PyTypeObject 構造体は、Python のオブジェクトシステムで特に重要な構造体の 1 つです。 型オブジェクトは PyObject_* 関数や PyType_* 関数で扱えますが、ほとんどの Python アプリケーションにとって関心のある
...初期化するため、そのインスタンス (型オブジェクト) には ob_size フィールドが 必要です 。 PyObject.ob_refcnt The type object's reference count is initialized to 1 by the PyObject_HEAD_INIT macro. Note that for statically allocated type objects , the type's in...stances (objects whose ob_type points back to the type) do not count as references. But for dynamically allocated type objects , the instances do count as references. 継承: サブタイプはこのフィールドを継承...循環参照ガベージコレクションをサポートする にあります。 The tp_traverse pointer is used by the garbage collector to detect reference cycles. A typical implementation of a tp_traverse function simply calls Py_VISIT() on each of the instance's members that... - https://man.mtool.work/python/3.14/c-api/typeobj.html
- 11. 標準ライブラリをひとめぐり --- その II 8148
- 11. 標準ライブラリをひとめぐり --- その II ツアーの第2部では、プロフェッショナルプログラミングを支えるもっと高度なモジュールをカバーします。ここで挙げるモジュールは、小さなスクリプトの開発ではほとんど使いません。 11.1. 出力のフォーマット re
...lue ): ... self . value = value ... def __repr__ ( self ): ... return str ( self . value ) ... >>> a = A ( 10 ) # create a reference >>> d = weakref . WeakValueDictionary () >>> d [ 'primary' ] = a # does not create a reference >>> d [ 'primary' ] # fetch...the object if it is still alive 10 >>> del a # remove the one reference >>> gc . collect () # run garbage collection right away 0 >>> d [ 'primary' ] # entry was automatically removed Traceback... - https://man.mtool.work/python/3.14/tutorial/stdlib2.html
- 変更履歴 8148
- 変更履歴 次の 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
...h-159739 : Fix a race in list.__sizeof__() when a list is concurrently resized on a free-threaded build. gh-159739 : Fix a reference leak when the value of a type alias is evaluated recursively or concurrently. gh-159739 : Fix a crash in free-threaded bui...lds when codecs.unregister() is called concurrently. gh-159739 : Fix reference leaks when free-threaded garbage collection aborts early because of an allocation error. gh-159739 : Prevent free-threaded...builds from interning and immortalizing complex subclasses in code object constants. gh-159739 : Fix a reference leak in binary, ternary, and comparison operations on weak reference proxies when another operand is a dead proxy. gh-1597... - https://man.mtool.work/python/3.14/whatsnew/changelog.html