per page, with , order by , clip by
Results of 1 - 10 of about 74 for local (0.004 sec.)
sysconfig --- Python の構成情報へのアクセスを提供する 12442
sysconfig --- Python の構成情報へのアクセスを提供する Added in version 3.2. ソースコード: Lib/sysconfig sysconfig モジュールは、インストールパスの一覧や現在のプラットフォームに関する構成変数など、Python の構成情報へのアクセスを提供します。 ... import sysconfig >>> sysconfig . get_config_var ( 'Py_ENABLE_SHARED' ) 0 >>> sysconfig . get_config_var ( 'LIBDIR' ) '/usr/local/lib' >>> sysconfig . get_config_vars ( 'AR' , 'CXX' ) ['ar', 'g++'] インストールパス Python では、プラットフォームとインス ... xの「ホーム」ディレクトリの概念からとりました。というのも、 Unixのユーザにとって、自分のホームディレクトリを /usr/ や /usr/local/ のようにレイアウトするのはよくあることだからです。とはいえ、このスキームはどのオペレーティングシステムのユーザでも使えます ... でも、プレフィックススキームが役立つ場面は少なくとも 2 つあります。 まず、多くの Linux ディストリビューションは、従来の /usr/local ではなく /usr に Python を配置します。 この場合の Python はローカルに追加したものではなく「システム」の一部なので、これはま ...
https://man.mtool.work/python/3.14/library/sysconfig.html
code --- インタープリター基底クラス 11327
code --- インタープリター基底クラス ソースコード: Lib/code.py code モジュールはread-eval-print (読み込み-評価-表示)ループをPythonで実装するための機能を提供します。対話的なインタプリタプロンプトを提供するアプリケーションを作るために使える二つ ... のクラスと便利な関数が含まれています。 class code. InteractiveInterpreter ( locals = None ) このクラスは構文解析とインタープリター状態(ユーザの名前空間)を取り扱います。入力バッファリングやプロンプト出力、 ... または入力ファイル指定を扱いません(ファイル名は常に明示的に渡されます)。オプションの locals 引数はその中でコードが実行される名前空間として使用されるマッピングを指定します。その初期値は、キー '__name__' が '__conso ... ' が None に設定された新しく作られた辞書です。 InteractiveInterpreter インスタンスで作成した関数やクラスのオブジェクトは、 locals で指定した名前空間に属します。 これらを pickle 化できるのは、 locals が既存のモジュールの名前空間である場合だけです。 cla ...
https://man.mtool.work/python/3.14/library/code.html
site --- サイト固有の設定フック 11174
site --- サイト固有の設定フック ソースコード: Lib/site.py このモジュールは初期化中に自動的にインポートされます。 自動インポートはインタプリタの -S オプションで禁止できます。 Importing this module normally appends site-specific paths to the ... to discourage putting anything more complex here. バージョン 3.13 で変更: .pth ファイルは、最初に UTF-8 で、失敗した場合は locale encoding でデコードされるようになります。 For example, suppose sys.prefix and sys.exec_prefix are set to /usr/local . The ... Python X.Y library is then installed in /usr/local/lib/python X.Y . Suppose this has a subdirectory /usr/local/lib/python X.Y /site-packages with three subsubdirectories, fo ... ジの設定 bar が記載されているとします。そのとき、次のバージョンごとのディレクトリが sys.path へこの順番で追加されます: /usr/local/lib/pythonX.Y/site-packages/bar /usr/local/lib/pythonX.Y/site-packages/foo bletch は存在しないため省略されるということに注 ...
https://man.mtool.work/python/3.14/library/site.html
smtplib --- SMTP プロトコルクライアント 9906
smtplib --- SMTP プロトコルクライアント ソースコード: Lib/smtplib.py smtplib モジュールは、SMTP または ESMTP の待ち受けデーモンが動作するインターネット上のマシンへメールを送るための、SMTP クライアントセッションオブジェクトを定義します。 SMT ... 作しないか、利用不可です。詳しくは、 WebAssembly プラットフォーム を見てください。 class smtplib. SMTP ( host='' , port=0 , local_hostname=None , [ timeout , ] source_address=None ) An SMTP instance encapsulates an SMTP connection. It has methods that ... port parameters are given, the SMTP connect() method is called with those parameters during initialization. If specified, local_hostname is used as the FQDN of the local host in the HELO/EHLO command. Otherwise, the local hostname is found using sock ... ている場合、非ブロッキングソケットの作成を防ぐために ValueError を送出します。 class smtplib. SMTP_SSL ( host='' , port=0 , local_hostname=None , * , [ timeout , ] context=None , source_address=None ) An SMTP_SSL instance behaves exactly the same as in ...
https://man.mtool.work/python/3.14/library/smtplib.html
5. macOS で Python を使う 9753
5. macOS で Python を使う このドキュメントでは、Mac コンピュータで Python を使い始める際に知っておくべき、macOS 固有の挙動を概説します。 macOS を実行する Mac 上の Python は、ほかの Unix 派生プラットフォーム上の Python と非常によく似ています ... r shell path. To uninstall Python, you can remove these three things. Symlinks to the Python executable are placed in /usr/local/bin/ . 注釈 最近の macOS には、 /usr/bin/python3 に python3 コマンドが含まれています。 これは、Apple の開発ツールである Xc ... eleases. 既知の注意点と制限: The UNIX command-line tools package, which is selected by default, will install links in /usr/local/bin for python3.14t , the free-threaded interpreter, and python3.14t-config , a configuration utility which may be useful ... for package builders. Since /usr/local/bin is typically included in your shell PATH , in most cases no changes to your PATH environment variables should be neede ...
https://man.mtool.work/python/3.14/using/mac.html
email.utils: 各種ユーティリティ 9585
email.utils : 各種ユーティリティ ソースコード: Lib/email/utils.py email.utils モジュールには、いくつかの便利なユーティリティがあります: email.utils. localtime ( dt = None ) Return local time as an aware datetime object. If called without ar ... guments, return the current time. Otherwise the dt argument should be a datetime instance, and it is converted to the local time zone according to the system time zone database. If dt is naive (that is, dt.tzinfo is None ), it is assumed to be in ... local time. Added in version 3.3. バージョン 3.12 で非推奨、バージョン 3.14 で削除: isdst パラメータ。 email.utils. make_msgid ( ... queness of the message id. Optional domain , if given, provides the portion of the msgid after the '@'. The default is the local hostname. It is normally not necessary to override this default, but may be useful in certain cases, such as constructing ...
https://man.mtool.work/python/3.14/library/email.utils.html
イベントループ 9432
イベントループ ソースコード: Lib/asyncio/events.py , Lib/asyncio/base_events.py まえがき イベントループは全ての asyncio アプリケーションの中核をなす存在です。イベントループは非同期タスクやコールバックを実行し、ネットワーク I/O を処理し、サブ ... ction ( protocol_factory , host = None , port = None , * , ssl = None , family = 0 , proto = 0 , flags = 0 , sock = None , local_addr = None , server_hostname = None , ssl_handshake_timeout = None , ssl_shutdown_timeout = None , happy_eyeballs_delay = ... トを指定します。 sock を指定する場合、 host 、 port 、 family 、 proto 、 flags 、 happy_eyeballs_delay 、 interleave および local_addr のいずれも指定してはいけません。 注釈 sock 引数を渡すと、ソケットの所有権は作成されたトランスポートに移ります。 ソケッ ... トを閉じるには、トランスポートの close() メソッドを呼び出してください。 local_addr を与える場合、ソケットをローカルにバインドするために使用する (local_host, local_port) タプルを指定します。 local_host ...
https://man.mtool.work/python/3.14/library/asyncio-eventloop.html
threading --- スレッドベースの並列処理 8958
threading --- スレッドベースの並列処理 ソースコード: Lib/threading.py このモジュールでは、高水準のスレッドインターフェースをより低水準 な _thread モジュールの上に構築しています。 利用可能な環境 : not WASI. このモジュールは WebAssembly では動 ... ーカルデータ スレッドローカルデータは、スレッドごとに固有の値を持つデータです。 スレッド内だけで使いたいデータがある場合は、 local オブジェクトを作成し、その属性を使ってください。 >>> mydata = local () >>> mydata . number = 42 >>> mydata . number 42 loc ... また、別のスレッドで変更しても、このスレッドから見えるデータには影響しません。 >>> mydata . number 42 __dict__ 属性を含め、 local オブジェクトから取得した値は、その属性を読み出したときのスレッドのものです。 値は取得元のスレッドだけに属するため、一般には ... スレッドをまたいで保存しない方がよいでしょう。 local クラスを継承して、独自の local オブジェクトを作成できます。 >>> class MyLocal ( local ): ... number = 2 ... def __init__ ( ...
https://man.mtool.work/python/3.14/library/threading.html
インタープリタの初期化と終了処理 8805
インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP ... uildInfo() Py_GetCompiler() Py_GetCopyright() Py_GetPlatform() Py_GetVersion() Py_IsInitialized() ユーティリティ: Py_DecodeLocale() Python 初期化設定 で説明する状態の報告とユーティリティの関数 メモリアロケータ: PyMem_RawMalloc() PyMem_RawRealloc() PyM ... em_RawCalloc() PyMem_RawFree() 同期: PyMutex_Lock() PyMutex_Unlock() 注釈 上に挙げた関数の一部と似ていても、 Py_EncodeLocale() 、 PyEval_InitThreads() 、 Py_RunMain() は、インタープリタの初期化前に 呼び出してはなりません 。 グローバルな設定変数 P ... されています。 argc と argv 引数は、C プログラムの main() 関数に渡すものに似ていますが、 argv の各要素をあらかじめ Py_DecodeLocale() で wchar_t に変換する点が異なります。 引数リストの各要素が、渡された文字列とは別の文字列を指すように変更される可能性があ ...
https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html
sys.monitoring --- 実行イベントモニタリング 8805
sys.monitoring --- 実行イベントモニタリング Added in version 3.12. 注釈 sys.monitoring は sys モジュール内の名前空間で、独立したモジュールではありません。 import sys.monitoring は ModuleNotFoundError で失敗します。 代わりに import sys を実行 ... get_events ( DEBUGGER_ID ) == NO_EVENTS : ... このイベントを設定すると、すべてのイベントを無効にします。 ローカルイベント Local events are associated with normal execution of the program and happen at clearly defined locations. All local events can b ... e disabled. The local events are: PY_START PY_RESUME PY_RETURN PY_YIELD CALL LINE INSTRUCTION JUMP BRANCH_LEFT BRANCH_RIGHT STOP_ITERATION 非推奨 ... eal exceptions without slowing down generators and coroutines, the STOP_ITERATION event is provided. STOP_ITERATION can be locally disabled, unlike RAISE . STOP_ITERATION イベントと、 StopIteration 例外に対する RAISE イベントは同等で、イベントの生成時 ...
https://man.mtool.work/python/3.14/library/sys.monitoring.html
PREV 1 2 3 4 5 6 7 8 NEXT