Results of 1 - 10 of about 54 for extension (0.006 sec.)
- mimetypes --- ファイル名を MIME タイプへマップする 14818
- mimetypes --- ファイル名を MIME タイプへマップする ソースコード: Lib/mimetypes.py mimetypes モジュールは、ファイル名または URL と、ファイル拡張子に対応する MIME 型との間の変換を行います。 ファイル名から MIME 型への変換と、MIME 型からファイル
...けます。 パスには文字列、bytes オブジェクト、 path-like object を指定できます。 Added in version 3.13. mimetypes. guess_all_extensions ( type , strict = True ) type で指定された MIME 型に基づき、ファイルの拡張子を推定します。 戻り値は、先頭のドット ( '.' )...MIME 型 type に対応付けられます。 省略可能な strict 引数は guess_type() 関数のものと同じ意味を持ちます。 mimetypes. guess_extension ( type , strict = True ) type で指定された MIME 型に基づき、ファイルの拡張子を推定します。 戻り値は、先頭のドット ( '.' )...を扱います。 あらかじめ定められた値と、 filenames 引数で指定されたファイルから読み込んだ MIME 型情報で初期化されます。 guess_extension ( type , strict = True ) guess_extension() 関数と同様ですが、オブジェクトに保存されたテーブルを使用します。 guess_type ( u... - https://man.mtool.work/python/3.14/library/mimetypes.html
- 拡張モジュールの定義 11303
- 拡張モジュールの定義 A C extension for CPython is a shared library (for example, a .so file on Linux, .pyd DLL on Windows), which is loadable into the Python process (for example, it is compiled with compatible compiler settings), and which
...exports an initialization function . デフォルトで (つまり、 importlib.machinery.ExtensionFileLoader によって) インポート可能であるためには、共有ライブラリは sys.path 上で利用可能である必要があり、モジュール名と i...mportlib.machinery.EXTENSION_SUFFIXES . に含まれる拡張子で命名する必要があります。 注釈 拡張モジュールのビルド、パッケージ化および配布には、サードパーテ...can determine which capabilities the module supports, and it can adjust the environment or refuse loading an incompatible extension. By default, Python itself creates the module object -- that is, it does the equivalent of object.__new__() for classes. I... - https://man.mtool.work/python/3.14/c-api/extension-modules.html
- 1. Extending Python with C or C++ 9953
- 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
...t types, and they can call C library functions and system calls. To support extensions, the Python API (Application Programmers Interface) defines a set of functions, macros and variables that provide access...-time system. The Python API is incorporated in a C source file by including the header "Python.h" . The compilation of an extension module depends on its intended use as well as on your system setup; details are given in later chapters. 注釈 The C extens...ion interface is specific to CPython, and extension modules do not work on other Python implementations. In many cases, it is possible to avoid writing C extensions and prese... - https://man.mtool.work/python/3.14/extending/extending.html
- sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース 9953
- sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース ソースコード: Lib/sqlite3/ SQLite は、軽量なディスク上のデータベースを提供する C ライブラリです。別のサーバプロセスを用意する必要なく、 SQL クエリー言語の非標準的な一種を使用し
...L sqlite3. SQLITE_DBCONFIG_ENABLE_FKEY sqlite3. SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER sqlite3. SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION sqlite3. SQLITE_DBCONFIG_ENABLE_QPSG sqlite3. SQLITE_DBCONFIG_ENABLE_TRIGGER sqlite3. SQLITE_DBCONFIG_ENABLE_VIEW sqlite3....trace_callback as a keyword argument is deprecated. The parameter will become positional-only in Python 3.15. enable_load_extension ( enabled , / ) enabled が True の場合、 SQLite エンジンが共有ライブラリから SQLite 拡張機能をロードできるようにします。 T...ルされた SQLite ライブラリがあるためです。 ロード可能な拡張機能のサポートを得るには、 configure に --enable-loadable-sqlite-extensions オプションを渡す必要があります。 引数 connection , enabled を指定して 監査イベント sqlite3.enable_load_extension を送出し... - https://man.mtool.work/python/3.14/library/sqlite3.html
- Python インタプリタの拡張と埋め込み 9627
- Python インタプリタの拡張と埋め込み This document describes how to write modules in C or C++ to extend the Python interpreter with new modules. Those modules can not only define new functions but also new object types and their methods. The
...document also describes how to embed the Python interpreter in another application, for use as an extension language. Finally, it shows how to compile and link extension modules so that they can be loaded dynamically (at run time)...ファレンスマニュアル を参照してください。 おすすめのサードパーティツール This guide only covers the basic tools for creating extensions provided as part of this version of CPython. Some third party tools offer both simpler and more sophisticated approaches...to creating C and C++ extensions for Python. Creating extensions without third party tools ガイドのこの節ではサードパーティツールの補助無しに C および C++... - https://man.mtool.work/python/3.14/extending/
- email: 使用例 9449
- email : 使用例 ここでは email パッケージを使って電子メールメッセージを読む・書く・送信するいくつかの例を紹介します。より複雑な MIME メッセージについても扱います。 まず、単純なテキストメッセージを作成して送信する方法を見てみましょう (テキスト
...ンではファイル名を安全なものにする必要があります filename = part . get_filename () if not filename : ext = mimetypes . guess_extension ( part . get_content_type ()) if not ext : # 汎用のバイナリデータ用拡張子を使います ext = '.bin' filename = f 'part- { cou...t . get_body ( preferencelist = ( 'html' )) for part in richest . iter_attachments (): fn = part . get_filename () if fn : extension = os . path . splitext ( part . get_filename ())[ 1 ] else : extension = mimetypes . guess_extension ( part . get_content_...type ()) with tempfile . NamedTemporaryFile ( suffix = extension , delete = False ) as f : f . write ( part . get_content ()) # ここでも <> を除いて、メール形式の cid を HTML 形式にします... - https://man.mtool.work/python/3.14/library/email.examples.html
- C API Stability 9285
- C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修
...の対応に追加の労力をかけることが期待されます。 Stable Application Binary Interface For simplicity, this document talks about extensions , but the Limited API and Stable ABI work the same way for all uses of the API – for example, embedding Python. Limited C...API Python 3.2 introduced the Limited API , a subset of Python's C API. Extensions that only use the Limited API can be compiled once and be loaded on multiple versions of Python. Contents of the Limited...Limited API version. Define Py_LIMITED_API to the value of PY_VERSION_HEX corresponding to the lowest Python version your extension supports. The extension will be ABI-compatible with all Python 3 releases from the specified one onward, and can use Limit... - https://man.mtool.work/python/3.14/c-api/stable.html
- cgi --- Common Gateway Interface のサポート 8277
- cgi --- Common Gateway Interface のサポート バージョン 3.11 で非推奨、バージョン 3.13 で削除. このモジュールは今や Python 標準ライブラリの一部ではありません。このモジュールは Python 3.11 で非推奨となったあと、 Python 3.13 で削除 されました。
...ージョンは Python 3.12 です。 他のマニュアルの関連ページ PHP ctype.requirements PHP taint.requirements DuckDB Legacy Parser Extension PHP mongodb-bson-decimal128interface.tostring PHP yaf-view-interface.getscriptpath PHP yaf-route-interface.assemble... - https://man.mtool.work/python/3.14/library/cgi.html
- モジュールオブジェクト (module object) 8113
- モジュールオブジェクト (module object) PyTypeObject PyModule_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python のモジュール型を表します。 Python プログラムには types.ModuleType として公開されています。 int PyModule_C
...tatically allocated, constant “description" of how a module should be created. The definition is usually used to define an extension's “main” module object (see 拡張モジュールの定義 for details). It is also used to create extension modules dynamically . U...guaranteed to be valid while any modules created from it exist). Usually, there is only one variable of this type for each extension module. PyModuleDef_Base m_base Always initialize this member to PyModuleDef_HEAD_INIT . const char * m_name Name for the...す。 Added in version 3.13. 拡張モジュールの動的な作成 The following functions may be used to create a module outside of an extension's initialization function . They are also used in single-phase initialization . PyObject * PyModule_Create ( PyModuleDef *... - https://man.mtool.work/python/3.14/c-api/module.html
- configparser --- 設定ファイルのパーサー 8113
- configparser --- 設定ファイルのパーサー ソースコード: Lib/configparser.py このモジュールは、 Microsoft Windows の INI ファイルに似た構造を持ったベーシックな設定用言語を実装した ConfigParser クラスを提供します。このクラスを使ってユーザーが簡
...] ... hash = # ... ... [hashes] ... shebang = ... $ {hash} !/usr/bin/env python ... $ {hash} -*- coding: utf-8 -*- ... ... extensions = ... enabled_extension ... another_extension ... #disabled_by_comment ... yet_another_extension ... ... interpolation no...print ( parser [ 'hashes' ][ 'shebang' ]) #!/usr/bin/env python # -*- coding: utf-8 -*- >>> print ( parser [ 'hashes' ][ 'extensions' ]) enabled_extension another_extension yet_another_extension >>> print ( parser [ 'hashes' ][ 'interpolation not necessa... - https://man.mtool.work/python/3.14/library/configparser.html