per page, with , order by , clip by
Results of 1 - 10 of about 86 for exec (0.005 sec.)
sys.path モジュール検索パスの初期化 12707
sys.path モジュール検索パスの初期化 モジュール検索パスは Python の開始時に初期化されます。このモジュール検索パスは、 sys.path でアクセス可能です。 実行するスクリプトがある場合、モジュール検索パスの最初の項目は、そのスクリプトがあるディレクト ... ァイルです。 プラットフォームに依存しない Python モジュールのあるディレクトリを prefix 、拡張モジュールのあるディレクトリを exec_prefix と呼びます。 PYTHONHOME 環境変数で prefix と exec_prefix の場所を設定できます。 設定されていなければ、Python 実行フ ... ix の Python は lib/python majorversion . minorversion /os.py ( lib/python3.11/os.py ) を探します。 Windows では prefix と exec_prefix は同じですが、ほかのプラットフォームでは lib/python majorversion . minorversion /lib-dynload ( lib/python3.11/lib-d ... ynload ) を探し、 exec_prefix を特定する基準にします。 プラットフォームによっては lib が lib64 や別の値になる場合があります。 sys.platlibdir と P ...
https://man.mtool.work/python/3.14/library/sys_path_init.html
importlib --- import の実装 10726
importlib --- import の実装 Added in version 3.1. ソースコード: Lib/importlib/__init__.py はじめに importlib パッケージには 3 つの目的があります。 1 つ目は import 文 (ひいては __import__() 関数) の実装を Python のソースコードで提供することで ... 底クラス階層: object +-- MetaPathFinder +-- PathEntryFinder +-- Loader +-- ResourceLoader --------+ +-- InspectLoader | +-- ExecutionLoader --+ +-- FileLoader +-- SourceLoader class importlib.abc. MetaPathFinder meta path finder を表す抽象基底クラスで ... の場合はデフォルトのモジュール作成のセマンティクスが適用されることを示します。 Added in version 3.4. バージョン 3.6 で変更: exec_module() が定義されている場合は、このメソッドはオプションではなくなりました。 exec_module ( module ) モジュールがインポート ... またはリロードされる際に、そのモジュールをモジュール自身の名前空間の中で実行する抽象的なメソッド。 exec_module() が呼ばれる時点で、モジュールはすでに初期設定されている必要があります。 このメソッドが存在するときは、 create_modu ...
https://man.mtool.work/python/3.14/library/importlib.html
2. 拡張の型の定義: チュートリアル 9891
2. 拡張の型の定義: チュートリアル Python では、組み込みの str 型や list 型のような Python コードから操作できる新しい型を C 拡張モジュールの作者が定義できます。 全ての拡張の型のコードはあるパターンに従うのですが、書き始める前に理解しておくべ ... Object ), . tp_itemsize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT , . tp_new = PyType_GenericNew , }; static int custom_module_exec ( PyObject * m ) { if ( PyType_Ready ( & CustomType ) < 0 ) { return -1 ; } if ( PyModule_AddObjectRef ( m , "Custom" , ( ... PyObject * ) & CustomType ) < 0 ) { return -1 ; } return 0 ; } static PyModuleDef_Slot custom_module_slots [] = { { Py_mod_exec , custom_module_exec }, // 静的な型を使う間はこの設定を使う { Py_mod_multiple_interpreters , Py_MOD_MULTIPLE_INTERPRETERS_ ... 義する PyInit_custom 関数と、それに関連する custom_module 構造体、および新しいモジュールオブジェクトを設定する custom_module_exec 関数がこれに当たります。 まず最初はこれです: typedef struct { PyObject_HEAD } CustomObject ; これが Custom オブジェクトの内 ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
Python 3.15 で削除予定 9581
Python 3.15 で削除予定 The PyImport_ImportModuleNoBlock() : Use PyImport_ImportModule() instead. PyWeakref_GetObject() and PyWeakref_GET_OBJECT() : Use PyWeakref_GetRef() instead. The pythoncapi-compat project can be used to get PyWeakref_G ... ) ( sys.base_prefix ) instead. Use PyConfig_Get("prefix") ( sys.prefix ) if virtual environments need to be handled. Py_GetExecPrefix() : Use PyConfig_Get("base_exec_prefix") ( sys.base_exec_prefix ) instead. Use PyConfig_Get("exec_prefix") ( sys.exe ... c_prefix ) if virtual environments need to be handled. Py_GetProgramFullPath() : Use PyConfig_Get("executable") ( sys.executable ) instead. Py_GetProgramName() : Use PyConfig_Get("executable") ( sys.executable ) instead. Py_Ge ... ig() API を使ってください。 実行時に値を取得するには PyConfig_Get() を使えます。 他のマニュアルの関連ページ PHP hash() PHP exec() Linux JM hash(3) Linux JM exec(3) Linux JM stdio(3) PHP phpdbg_get_executable() ...
https://man.mtool.work/python/3.14/deprecations/c-api-pending-removal-in-3.15.ht...
サブプロセス 9365
サブプロセス ソースコード: Lib/asyncio/subprocess.py , Lib/asyncio/base_subprocess.py このセクションはサブプロセスの生成と管理を行う高水準の async/await asyncio API について説明します。 以下は、 asyncio モジュールがどのようにシェルコマンドを ... cho "hello"' )) asyncio . run ( main ()) 使用例 節も参照してください。 サブプロセスの生成 async asyncio. create_subprocess_exec ( program , * args , stdin = None , stdout = None , stderr = None , limit = 65536 , ** kwds ) サブプロセスを作成します。 l ... stderr 引数に subprocess.PIPE を渡した場合)。 Process のインスタンスを返します。 他のパラメータについては loop.subprocess_exec() を参照してください。 If the process object is garbage collected while the process is still running, the child process wi ... を参照してください。 参考 asyncio は以下に挙げるサブプロセスと協調するための 低水準の API も持っています: loop.subprocess_exec() , loop.subprocess_shell() , loop.connect_read_pipe() , loop.connect_write_pipe() および Subprocess Transports と Subproc ...
https://man.mtool.work/python/3.14/library/asyncio-subprocess.html
監査イベント表 9163
監査イベント表 この表は、 CPython ランタイムと標準ライブラリ全体で sys.audit() または PySys_Audit() の呼び出しによって送出されるすべてのイベントを含んでいます。これらの呼び出しは、 3.8 以降に追加されました ( PEP 578 を参照) 。 これらのイベン ... pes.set_last_error error [1] ctypes.string_at ptr , size [1] ctypes.wstring_at ptr , size [1] ensurepip.bootstrap root [1] exec code_object [1] [2] fcntl.fcntl fd , cmd , arg [1] fcntl.flock fd , operation [1] fcntl.ioctl fd , request , arg [1] fcntl ... s.chflags path , flags [1] [2] os.chmod path , mode , dir_fd [1] [2] [3] os.chown path , uid , gid , dir_fd [1] [2] [3] os.exec path , args , env [1] os.fork [1] os.forkpty [1] os.fwalk top , topdown , onerror , follow_symlinks , dir_fd [1] os.getxat ... e [1] sqlite3.enable_load_extension connection , enabled [1] sqlite3.load_extension connection , path [1] subprocess.Popen executable , args , cwd , env [1] sys._current_exceptions [1] sys._current_frames [1] sys._getframe frame [1] sys._getframemodu ...
https://man.mtool.work/python/3.14/library/audit_events.html
Python 初期化設定 8840
Python 初期化設定 PyInitConfig C API Added in version 3.14. Python は Py_InitializeFromInitConfig() で初期化できます。 Py_RunMain() 関数は、カスタマイズされた Python プログラムを書くために使用できます。 Initialization, Finalization, and Thr ... オプション PyConfig/PyPreConfig のメンバー 型 可視性 "allocator" allocator int 読み出し専用 "argv" argv list[str] 公開 "base_exec_prefix" base_exec_prefix str 公開 "base_executable" base_executable str 公開 "base_prefix" base_prefix str 公開 "buffered_ ... mode" dev_mode bool 読み出し専用 "dump_refs" dump_refs bool 読み出し専用 "dump_refs_file" dump_refs_file str 読み出し専用 "exec_prefix" exec_prefix str 公開 "executable" executable str 公開 "faulthandler" faulthandler bool 読み出し専用 "filesystem_en ... 環境変数によって 1 に設定されます。 デフォルト: Python 設定では 0 、隔離設定では 1 。 Added in version 3.11. wchar_t * base_exec_prefix sys.base_exec_prefix . デフォルト: NULL 。 Python のパス設定 の出力の一部です。 PyConfig.exec_prefix も参照してくだ ...
https://man.mtool.work/python/3.14/c-api/init_config.html
Python 3.15 で削除予定 8745
Python 3.15 で削除予定 インポートシステム: Setting __cached__ on a module while failing to set __spec__.cached is deprecated. In Python 3.15, __cached__ will cease to be set or take into consideration by the import system or standard librar ... のコマンドラインインターフェースの --cgi フラグは Python 3.13 から非推奨です。 importlib : load_module() メソッド:代わりに exec_module() を使ってください。 pathlib : PurePath.is_reserved() has been deprecated since Python 3.13. Use os.path.isreserved ... write classes have been deprecated since Python 3.13. zipimport : load_module() has been deprecated since Python 3.10. Use exec_module() instead. (Contributed by Jiahao Li in gh-125746 .) 他のマニュアルの関連ページ PHP exec() Linux JM exec(3) PHP swo ...
https://man.mtool.work/python/3.14/deprecations/pending-removal-in-3.15.html
sys --- システム固有のパラメーターと関数 8638
sys --- システム固有のパラメーターと関数 このモジュールは、インタープリタが使用または管理する変数と、インタープリタに密接に関わる関数を提供します。 常に利用できます。 特に明記されていない限り、すべての変数は読み出し専用です。 sys. abiflags ... とを推奨します。 CPython が発生させるイベントの一覧は 監査イベントの表 を参照してください。 Added in version 3.8. sys. base_exec_prefix exec_prefix と同等ですが、基になる Python のインストール先を参照します。 仮想環境 で実行すると、 exec_prefix は仮想 ... 環境のプレフィックスに上書きされます。 一方、 base_exec_prefix は変わらず、常に基になる Python のインストール先を指します。 詳しくは 仮想環境 を参照してください。 Added in versio ... 得られるようになりました。 そのため、処理中に例外を変更すると、その後の exc_info() の呼び出し結果に変更が反映されます。 sys. exec_prefix Python のプラットフォーム依存なファイルがインストールされているディレクトリ名を示す文字列です。この値はサイト固有で ...
https://man.mtool.work/python/3.14/library/sys.html
site --- サイト固有の設定フック 8530
site --- サイト固有の設定フック ソースコード: Lib/site.py このモジュールは初期化中に自動的にインポートされます。 自動インポートはインタプリタの -S オプションで禁止できます。 Importing this module normally appends site-specific paths to the ... されていました。 まず、先頭部分と末尾部分を組み合わせて、最大四つのディレクトリを構成します。 先頭部分には sys.prefix と sys.exec_prefix を使い、空のものは省きます。 末尾部分には、空文字列と、Windows では lib/site-packages 、Unix と macOS では lib/pyth ... 13t/ のように、バージョン別ディレクトリ名の接尾辞 "t" で識別します。 バージョン 3.14 で変更: 仮想環境 で sys.prefix と sys.exec_prefix を更新する処理は、 site の役割ではなくなりました。 現在は パスの初期化 中に行います。 その結果、 仮想環境 の sys.pr ... efix と sys.exec_prefix は site の初期化に依存しなくなり、 -S の影響を受けなくなりました。 When running under a virtual environment , the p ...
https://man.mtool.work/python/3.14/library/site.html
PREV 1 2 3 4 5 6 7 8 9 NEXT