Results of 1 - 10 of about 204 for Custom (0.057 sec.)
- 2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 15374
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s
...ときは、新しい型オブジェクトを作成すればよいわけです。 この手のことは例を見たほうが早いでしょうから、以下に C 拡張モジュール custom にある Custom という名前の新しい型を定義する、最小限ながら完全なモジュールをあげておきます: 注釈 ここで紹介している例は、...いません。 #define PY_SSIZE_T_CLEAN #include <Python.h> typedef struct { PyObject_HEAD /* Type-specific fields go here. */ } CustomObject ; static PyTypeObject CustomType = { . ob_base = PyVarObject_HEAD_INIT ( NULL , 0 ) . tp_name = "custom.Custom" , ....tp_doc = PyDoc_STR ( "Custom objects" ), . tp_basicsize = sizeof ( CustomObject ), . tp_itemsize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT , . tp_new = PyT... - https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
- 2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 15374
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s
...ときは、新しい型オブジェクトを作成すればよいわけです。 この手のことは例を見たほうが早いでしょうから、以下に C 拡張モジュール custom にある Custom という名前の新しい型を定義する、最小限ながら完全なモジュールをあげておきます: 注釈 ここで紹介している例は、...いません。 #define PY_SSIZE_T_CLEAN #include <Python.h> typedef struct { PyObject_HEAD /* Type-specific fields go here. */ } CustomObject ; static PyTypeObject CustomType = { . ob_base = PyVarObject_HEAD_INIT ( NULL , 0 ) . tp_name = "custom.Custom" , ....tp_doc = PyDoc_STR ( "Custom objects" ), . tp_basicsize = sizeof ( CustomObject ), . tp_itemsize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT , . tp_new = PyT... - https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
- 変更履歴 — Python 3.14.8 ドキュメント 7276
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...that IDLE imports, such as random.py or tkinter.py . gh-93016 : Fix parsing of command line arguments in the IDLE "Run... Customized" dialog on Windows: backslashes are no longer treated as escape characters. Fix also display of the previous arguments...-124111 : Update macOS installer to use Tcl/Tk 9.0.4. IDLE ¶ gh-82183 : When the shell is busy running code, using "Run... Customized" with "Restart shell" unchecked now reports that the shell is executing instead of restarting it anyway. gh-83653 : Bl...element tree is mutated concurrently during the search. gh-148740 : Fix usage for uuid command-line interface to support a custom namespace be provided for uuid3 and uuid5. gh-148651 : Fix reference leak in compression.zstd.ZstdDecompressor when an inv... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- configparser --- 設定ファイルのパーサー — Python 3.14.8 ドキュメント 6570
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルフォーマット » configparser --- 設定ファイルのパーサー テーマ 自動 ライト ダーク | configparser --- 設定ファイルのパーサー
...cret . get ( 'CompressionLevel' , '3' ) '9' One more thing to be aware of is that the parser-level get() method provides a custom, more complex interface, maintained for backwards compatibility. When using this method, a fallback value can be provided...rmful because they prevent users # from using the delimiting characters as parts of values. # That being said, this can be customized. [Sections Can Be Indented] can_values_be_as_well = True does_that_mean_anything_special = False purpose = formatting...型プロトコルアクセス ¶ Added in version 3.2. Mapping protocol access is a generic name for functionality that enables using custom objects as if they were dictionaries. In case of configparser , the mapping interface implementation is using the parser['... - https://man.mtool.work/python/3.14/library/configparser.html
- configparser --- 設定ファイルのパーサー — Python 3.14.8 ドキュメント 6570
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルフォーマット » configparser --- 設定ファイルのパーサー テーマ 自動 ライト ダーク | configparser --- 設定ファイルのパーサー
...cret . get ( 'CompressionLevel' , '3' ) '9' One more thing to be aware of is that the parser-level get() method provides a custom, more complex interface, maintained for backwards compatibility. When using this method, a fallback value can be provided...rmful because they prevent users # from using the delimiting characters as parts of values. # That being said, this can be customized. [Sections Can Be Indented] can_values_be_as_well = True does_that_mean_anything_special = False purpose = formatting...型プロトコルアクセス ¶ Added in version 3.2. Mapping protocol access is a generic name for functionality that enables using custom objects as if they were dictionaries. In case of configparser , the mapping interface implementation is using the parser['... - https://man.mtool.work/python/3.14/library/configparser.html
- json --- JSON エンコーダーとデコーダー — Python 3.14.8 ドキュメント 6570
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » json --- JSON エンコーダーとデコーダー テーマ 自動 ライト ダーク | json --- JSON エンコーダーとデコ
...True , indent = 4 )) { "4": 5, "6": 7 } JSON オブジェクトのエンコーディング方法をカスタマイズする: >>> import json >>> def custom_json ( obj ): ... if isinstance ( obj , complex ): ... return { '__complex__' : True , 'real' : obj . real , 'imag' : obj...imag } ... raise TypeError ( f 'Cannot serialize object of { type ( obj ) } ' ) ... >>> json . dumps ( 1 + 2 j , default = custom_json ) '{"__complex__": true, "real": 1.0, "imag": 2.0}' JSON のデコーディング: >>> import json >>> json . loads ( '["foo"...default), their JavaScript equivalents ( NaN , Infinity , -Infinity ) are used. cls (a JSONEncoder subclass) -- If set, a custom JSON encoder with the default() method overridden, for serializing into custom datatypes. If None (the default), JSONEncod... - https://man.mtool.work/python/3.14/library/json.html
- json --- JSON エンコーダーとデコーダー — Python 3.14.8 ドキュメント 6410
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » json --- JSON エンコーダーとデコーダー テーマ 自動 ライト ダーク | json --- JSON エンコーダーとデコ
...True , indent = 4 )) { "4": 5, "6": 7 } JSON オブジェクトのエンコーディング方法をカスタマイズする: >>> import json >>> def custom_json ( obj ): ... if isinstance ( obj , complex ): ... return { '__complex__' : True , 'real' : obj . real , 'imag' : obj...imag } ... raise TypeError ( f 'Cannot serialize object of { type ( obj ) } ' ) ... >>> json . dumps ( 1 + 2 j , default = custom_json ) '{"__complex__": true, "real": 1.0, "imag": 2.0}' JSON のデコーディング: >>> import json >>> json . loads ( '["foo"...default), their JavaScript equivalents ( NaN , Infinity , -Infinity ) are used. cls (a JSONEncoder subclass) -- If set, a custom JSON encoder with the default() method overridden, for serializing into custom datatypes. If None (the default), JSONEncod... - https://man.mtool.work/python/3.14/library/json.html
- email.policy: Policy Objects — Python 3.14.8 ドキュメント 6250
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.policy : Policy Objects テーマ 自動 ライ
...objects, including compat32 . This includes certain hook methods that are called internally by the email package, which a custom policy could override to obtain different behavior. The second part describes the concrete classes EmailPolicy and Compat3...delimited, such that it would be parsed as multiple headers or joined with adjacent data. Such headers can be generated by custom header classes or bugs in the email module. As it's a security feature, this defaults to True even in the Compat32 policy....3.13. The following Policy method is intended to be called by code using the email library to create policy instances with custom settings: clone ( ** kw ) ¶ Return a new Policy instance whose attributes have the same values as the current instance, ex... - https://man.mtool.work/python/3.14/library/email.policy.html
- email.policy: Policy Objects — Python 3.14.8 ドキュメント 6250
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.policy : Policy Objects テーマ 自動 ライ
...objects, including compat32 . This includes certain hook methods that are called internally by the email package, which a custom policy could override to obtain different behavior. The second part describes the concrete classes EmailPolicy and Compat3...delimited, such that it would be parsed as multiple headers or joined with adjacent data. Such headers can be generated by custom header classes or bugs in the email module. As it's a security feature, this defaults to True even in the Compat32 policy....3.13. The following Policy method is intended to be called by code using the email library to create policy instances with custom settings: clone ( ** kw ) ¶ Return a new Policy instance whose attributes have the same values as the current instance, ex... - https://man.mtool.work/python/3.14/library/email.policy.html
- 2. Unix プラットフォームで Python を使う — Python 3.14.8 ドキュメント 6250
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python のセットアップと利用 » 2. Unix プラットフォームで Python を使う テーマ 自動 ライト ダーク | 2. Unix プラットフォームで Python を使う ¶ 2.1. 最新バージョン
...ssl.org/source/openssl-VERSION.tar.gz $ tar xzf openssl-VERSION $ pushd openssl-VERSION $ ./config \ --prefix = /usr/local/custom-openssl \ --libdir = lib \ --openssldir = /etc/ssl $ make -j1 depend $ make -j8 $ make install_sw $ popd Build Python with...custom OpenSSL (see the configure --with-openssl and --with-openssl-rpath options) $ pushd python-3.x.x $ ./configure -C \ --with...-openssl = /usr/local/custom-openssl \ --with-openssl-rpath = auto \ --prefix = /usr/local/python-3.x.x $ make -j8 $ make altinstall 注釈 Patch release... - https://man.mtool.work/python/3.14/using/unix.html