per page, with , order by , clip by
Results of 1 - 10 of about 28 for util (0.008 sec.)
importlib --- import の実装 14616
importlib --- import の実装 Added in version 3.1. ソースコード: Lib/importlib/__init__.py はじめに importlib パッケージには 3 つの目的があります。 1 つ目は import 文 (ひいては __import__() 関数) の実装を Python のソースコードで提供することで ... ェクトであり、ファインダーが返すスペックをより的確に判断するために使えます。 具体的な MetaPathFinders の実装には、 importlib.util.spec_from_loader() が役立つ場合があります。 Added in version 3.4. invalidate_caches ( ) このファインダーで使われている内部 ... ァインダーがどのようなスペックを返せばよいか推測するために使用します。具体的な PathEntryFinders を実装するためには importlib.util.spec_from_loader() が便利かもしれません。 Added in version 3.4. invalidate_caches ( ) このファインダーで使われている内部キ ... 能な環境 : iOS. name ローダーがサポートするモジュールの名前です。 path 拡張モジュールの .fwork ファイルへのパス。 importlib.util -- インポーター向けのユーティリティ ソースコード: Lib/importlib/util.py このモジュールには、 インポーター の構築を助ける様 ...
https://man.mtool.work/python/3.14/library/importlib.html
wsgiref --- WSGI ユーティリティとリファレンス実装 11880
wsgiref --- WSGI ユーティリティとリファレンス実装 ソースコード: Lib/wsgiref 警告 wsgiref はリファレンス実装であり、本番環境での使用は推奨されません。 このモジュールは基本的なセキュリティ検査だけを実装しています。 Web Server Gateway Interfac ... します。 wsgi.readthedocs.io に、WSGIに関するさらなる情報と、チュートリアルやその他のリソースへのリンクがあります。 wsgiref.util -- WSGI 環境のユーティリティ このモジュールは WSGI 環境で使う様々なユーティリティ関数を提供します。 WSGI 環境は PEP 3333 で ... かい仕様については PEP 3333 を、型アノテーションに使える型エイリアスについては WSGIEnvironment を参照してください。 wsgiref.util. guess_scheme ( environ ) environ 辞書の HTTPS 環境変数を調べることで wsgi.url_scheme が "http" か "https" のどちらであるべ ... つでしょう。そのため、この関数はそのような値が見つかった場合には "https" を返し、そうでなければ "http" を返します。 wsgiref.util. request_uri ( environ , include_query = True ) リクエスト URI 全体 (オプションでクエリ文字列を含む) を、 PEP 3333 の "URL ...
https://man.mtool.work/python/3.14/library/wsgiref.html
importlib.metadata -- パッケージメタデータへのアクセス 11011
importlib.metadata -- パッケージメタデータへのアクセス Added in version 3.8. バージョン 3.10 で変更: importlib.metadata は暫定的なものではなくなりました。 ソースコード: Lib/importlib/metadata/__init__.py importlib.metadata は、インストール済 ... oup' または 'name') によって選択できる、エントリポイントのコレクションも取得できます。 グループには console_scripts や distutils.commands などがあり、各グループは EntryPoint オブジェクトのコレクションを含みます。 ディストリビューションのメタデータ を ... す。 このオブジェクトには、便利な names 属性と groups 属性があります。 >>> sorted ( eps . groups ) ['console_scripts', 'distutils.commands', 'distutils.setup_keywords', 'egg_info.writers', 'setuptools.installation'] EntryPoints には、特定の属性に合うエ ... returns all of the files installed by this distribution. Each file is reported as a PackagePath instance. For example: >>> util = [ p for p in files ( 'wheel' ) if 'util.py' in str ( p )][ 0 ] >>> util PackagePath('wheel/util.py') >>> util . size 859 ...
https://man.mtool.work/python/3.14/library/importlib.metadata.html
What's New In Python 3.12 8881
What's New In Python 3.12 編集者 : Adam Turner この記事では Python 3.11 と比較した Python 3.12 の新機能を解説します。Python 3.12 は2023年10月2日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP 693 -- Python 3.12 リリ ... ラリの両方に変更が加えられています。 ライブラリの変更は、非推奨 API の整理、使いやすさ、正確性を重視しています。 特に、 distutils パッケージが標準ライブラリから削除されました。 os と pathlib のファイルシステムへの対応がさまざまな点で改善され、いくつか ... PI の Unicode オブジェクトから wstr を削除し、全ての str オブジェクトのサイズを少なくとも 8 バイト減らします PEP 632 : distutils パッケージを削除しました。 提供されていた API の置き換えについては 移行ガイド を参照してください。 Python 3.12 以降でも d ... istutils が必要な場合は、引き続きこれを提供するサードパーティパッケージ Setuptools を利用できます。 gh-95299 : venv で作成する仮想 ...
https://man.mtool.work/python/3.14/whatsnew/3.12.html
ctypes --- Python 用の外部関数ライブラリ 8389
ctypes --- Python 用の外部関数ライブラリ ソースコード: Lib/ctypes ctypes は Python 用の外部関数ライブラリです。 C と互換性のあるデータ型を提供し、DLL や共有ライブラリの関数を呼び出せます。 これらのライブラリを純粋な Python でラップするために ... loaded), while the ctypes library loaders act like when a program is run, and call the runtime loader directly. The ctypes.util module provides a function which can help to determine the library to load. ctypes.util. find_library ( name ) Try to find ... 、他の方法でライブラリが見つけられない場合は、 LD_LIBRARY_PATH 環境変数の値が使われます ここに例があります: >>> from ctypes.util import find_library >>> find_library ( "m" ) 'libm.so.6' >>> find_library ( "c" ) 'libc.so.6' >>> find_library ( "bz2" ) ' ... stem's standard naming schemes and paths to locate the library, and returns a full pathname if successful: >>> from ctypes.util import find_library >>> find_library ( "c" ) '/usr/lib/libc.dylib' >>> find_library ( "m" ) '/usr/lib/libm.dylib' >>> find ...
https://man.mtool.work/python/3.14/library/ctypes.html
What's New In Python 3.4 8389
What's New In Python 3.4 著者 : R. David Murray < rdmurray @ bitdance . com > (編集者) この記事では 3.3 と比較した Python 3.4 の新機能を解説します。 Python 3.4 は2014年3月16日にリリースされました。全詳細については 変更履歴 をご覧ください。 ... て、 imp にあった reload が importlib reload() 関数に移動しました。 (Contributed by Berker Peksag in bpo-18193 .) importlib.util にバイトコードのバージョン番号を取得する MAGIC_NUMBER 属性が追加されました。 これは非推奨の imp モジュールの get_magic() 関 ... 。 (Contributed by Brett Cannon in bpo-18192 .) 撤廃されるモジュール imp での同名関数を置き換える新規関数として、 importlib.util 関数の cache_from_source() と source_from_cache() が追加されました。 (Contributed by Brett Cannon in bpo-18194 .) importli ... annon in bpo-18058 .) (訳注: 3.3 以降の名前空間パッケージについては What's New In Python 3.3 ( PEP 420 ) 参照。) importlib.util に decode_source() 関数が追加されました。 universal newlines 処理を使って bytes からソースをデコードします。 InspectLoader ...
https://man.mtool.work/python/3.14/whatsnew/3.4.html
モジュールのインポート 8144
モジュールのインポート この章で解説されるモジュールは他のPythonモジュールをインポートする新しい方法と、インポート処理をカスタマイズするためのフックを提供します。 この章で解説されるモジュールの完全な一覧は: zipimport --- Zip アーカイブからモ ... ジュールをインポートする zipimporter オブジェクト 使用例 pkgutil --- パッケージ拡張ユーティリティ modulefinder --- スクリプト中で使用されているモジュールの検索 ModuleFinder の使用例 runpy ... はじめに 関数 importlib.abc -- インポートに関連する抽象基底クラス importlib.machinery -- インポーターとパスフック importlib.util -- インポーター向けのユーティリティ 使用例 プログラムからのインポート モジュールがインポートできるか確認する ソースファイル ...
https://man.mtool.work/python/3.14/library/modules.html
Pythonモジュール索引 8144
Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i ... sses. concurrent.interpreters Multiple interpreters in the same process configparser Configuration file parser. contextlib Utilities for with-statement contexts. contextvars Context Variables copy Shallow and deep copy operations. copyreg Register pi ... hmetic Specification. difflib Helpers for computing differences between objects. dis Disassembler for Python bytecode. distutils 非推奨: Removed in 3.12. doctest Test pieces of code within docstrings. e email Package supporting the parsing, manipulat ... mail messages to produce a message object structure. email.policy Controlling the parsing and generating of messages email.utils Miscellaneous email package utilities. encodings Encodings package encodings.idna Internationalized Domain Names implemen ...
https://man.mtool.work/python/3.14/py-modindex.html
What's New In Python 3.6 8144
What's New In Python 3.6 エディタ : Elvis Pranskevichus < elvis @ magic . io >, Yury Selivanov < yury @ magic . io > この記事では 3.5 と比較した Python 3.6 の新機能を解説します。 Python 3.6 は2016年12月23日にリリースされました。 全詳細につい ... す。 >>> Decimal ( '-3.14' ) . as_integer_ratio () (-157, 50) (Stefan Krah と Mark Dickinson による貢献、 bpo-25928 。) distutils distutils.command.sdist.sdist の default_format 属性が削除され、 formats 属性のデフォルトは ['gztar'] になりました。 その ... 在 try-except で ImportError を検査しているコードは引き続き動作します。 (Contributed by Eric Snow in bpo-15767 .) importlib.util.LazyLoader は、ラップしたローダーの create_module() を呼び出すようになりました。 これにより、 importlib.machinery.BuiltinI ... mporter と importlib.machinery.ExtensionFileLoader を importlib.util.LazyLoader で使えないという制限がなくなりました。 importlib.util.cache_from_source() 、 importlib.util.source_from_cache() ...
https://man.mtool.work/python/3.14/whatsnew/3.6.html
Python 3.14 で削除予定 7898
Python 3.14 で削除予定 argparse : argparse.BooleanOptionalAction の type 、 choices 、 metavar パラメータは非推奨となり、3.14 で削除されます。 (Nikita Sobolev が gh-92248 で貢献しました。) ast :以下の機能は Python 3.8 からドキュメントで非推 ... ecationWarning を出すようになりました。 (Serhiy Storchaka と Guido van Rossum が gh-100160 で貢献しました。) email : email.utils.localtime() の isdst パラメータは非推奨になりました。 (Alan Williams が gh-72346 で貢献しました。) importlib.abc の非推奨 ... テキストと開始方式 を参照してください。 pathlib : is_relative_to() と relative_to() に追加の引数を渡すことは非推奨です。 pkgutil : pkgutil.find_loader() と pkgutil.get_loader() は DeprecationWarning を出すようになりました。 代わりに importlib.util.fin ...
https://man.mtool.work/python/3.14/deprecations/pending-removal-in-3.14.html
PREV 1 2 3 NEXT