per page, with , order by , clip by
Results of 1 - 10 of about 34 for program (0.006 sec.)
インタープリタの初期化と終了処理 15594
インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP ... t_ExtendInittab() PyInitFrozenExtensions() PyMem_SetAllocator() PyMem_SetupDebugHooks() PyObject_SetArenaAllocator() Py_SetProgramName() Py_SetPythonHome() Python 初期化設定 で説明する設定関数 情報取得の関数: Py_IsInitialized() PyMem_GetAllocator() PyOb ... た値を、後から正しく変更できるかどうかが設定によって異なるためです。 int Py_FrozenMain ( int argc , char * * argv ) The main program for a "frozen" Python program (an executable that embeds the interpreter together with the bytecode of the program's modul ... this function; it is a fatal error if __main__ is not among them. argc and argv are byte strings like the arguments of a C program's main function, and are passed to the interpreter with PyConfig_SetBytesArgv() . Unlike Py_Main() , the arguments are not ...
https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html
pathlib --- オブジェクト指向のファイルシステムパス 11647
pathlib --- オブジェクト指向のファイルシステムパス Added in version 3.4. ソースコード: Lib/pathlib/ このモジュールはファイルシステムのパスを表すクラスを提供していて、様々なオペレーティングシステムについての適切な意味論をそれらのクラスに持た ... の場合、ルート相対パス (例えば r'\foo' ) があってもドライブ名はそのまま変わりません: >>> PureWindowsPath ( 'c:/Windows' , '/Program Files' ) PureWindowsPath('c:/Program Files') 単一スラッシュと等価な複数スラッシュやシングルドットは簡略化されますが、ダブル ... osixPath('/usr/bin') >>> p / '/an_absolute_path' PurePosixPath('/an_absolute_path') >>> PureWindowsPath ( 'c:/Windows' , '/Program Files' ) PureWindowsPath('c:/Program Files') os.PathLike を実装したオブジェクトが受理できる箇所ならどこでも、パスオブジェク ... ルパスを取るあらゆる関数に渡すことができます: >>> p = PurePath ( '/etc' ) >>> str ( p ) '/etc' >>> p = PureWindowsPath ( 'c:/Program Files' ) >>> str ( p ) 'c:\\Program Files' 同様に、パスオブジェクトを bytes で呼び出すと、Raw ファイルシステムパスを os.fs ...
https://man.mtool.work/python/3.14/library/pathlib.html
Python 初期化設定 10065
Python 初期化設定 PyInitConfig C API Added in version 3.14. Python は Py_InitializeFromInitConfig() で初期化できます。 Py_RunMain() 関数は、カスタマイズされた Python プログラムを書くために使用できます。 Initialization, Finalization, and Thr ... 読み出し専用 "perf_profiling" perf_profiling bool 読み出し専用 "platlibdir" platlibdir str 公開 "prefix" prefix str 公開 "program_name" program_name str 読み出し専用 "pycache_prefix" pycache_prefix str 公開 "quiet" quiet bool 公開 "run_command" run_com ... に対応します。 デフォルト: NULL 。 Python のパス設定 の出力の一部です。 PyConfig.base_prefix も参照してください。 wchar_t * program_name executable の初期化と、Python の初期化の初期段階でのエラーメッセージに使うプログラム名。 macOS では、設定されていれば ... nfig ); /* プログラム名を設定する。 Python を暗黙に事前初期化する。 */ status = PyConfig_SetString ( & config , & config . program_name , L "/path/to/my_program" ); if ( PyStatus_Exception ( status )) { goto exception ; } status = Py_InitializeFromConfi ...
https://man.mtool.work/python/3.14/c-api/init_config.html
1. 他のアプリケーションへの Python の埋め込み 8963
1. 他のアプリケーションへの Python の埋め込み 前章では、 Python を拡張する方法、すなわち C 関数のライブラリを Python に結びつけて機能を拡張する方法について述べました。同じようなことを別の方法でも実行できます: それは、自分の C/C++ アプリケー ... ; PyConfig_InitPythonConfig ( & config ); /* 省略可能だが推奨 */ status = PyConfig_SetBytesString ( & config , & config . program_name , argv [ 0 ]); if ( PyStatus_Exception ( status )) { goto exception ; } status = Py_InitializeFromConfig ( & config ) ... は不要となりましたが、後方互換性のために維持されています。このマクロの説明は 文字列とバッファ にあります。 Setting PyConfig.program_name should be called before Py_InitializeFromConfig() to inform the interpreter about paths to Python run-time libraries. ... that prints the date and time. Afterwards, the Py_FinalizeEx() call shuts the interpreter down, followed by the end of the program. In a real program, you may want to get the Python script from another source, perhaps a text-editor routine, a file, or a ...
https://man.mtool.work/python/3.14/extending/embedding.html
A Conceptual Overview of asyncio 8324
A Conceptual Overview of asyncio この HOWTO では、 asyncio の基本的な仕組みをしっかり理解できるように説明します。 推奨される書き方がどのように動き、なぜ推奨されるのかを理解する助けになるでしょう。 asyncio の主要な概念について、疑問を持ってい ... tters if the task object you created is garbage collected before it's called by the event loop. For example, consider this program: 1 async def hello (): 2 print ( "hello!" ) 3 4 async def main (): 5 asyncio . create_task ( hello ()) 6 # しばらく実行した ... The behavior of await coroutine is effectively the same as invoking a regular, synchronous Python function. Consider this program: import asyncio async def coro_a (): print ( "I am coro_a(). Hi!" ) async def coro_b (): print ( "I am coro_b(). I sure ho ... waited, control needs to be passed all the way up the call stack to the event loop. That might sound minor, but in a large program with many await statements and a deep call stack, that overhead can add up to a meaningful performance drag. 概念の説明、第 ...
https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
errno --- 標準の errno システムシンボル 8020
errno --- 標準の errno システムシンボル このモジュールから標準の errno システムシンボルを取得することができます。個々のシンボルの値は errno に対応する整数値です。これらのシンボルの名前は、 linux/include/errno.h から借用されており、網羅的なは ... ます (Too many processes)。 Added in version 3.2. errno. EPROCUNAVAIL プログラムに対する手続きが不正です (Bad procedure for program)。 Added in version 3.2. errno. EPROGMISMATCH プログラムのバージョンが違います (Program version wrong)。 Added in version ...
https://man.mtool.work/python/3.14/library/errno.html
sys.monitoring --- 実行イベントモニタリング 8020
sys.monitoring --- 実行イベントモニタリング Added in version 3.12. 注釈 sys.monitoring は sys モジュール内の名前空間で、独立したモジュールではありません。 import sys.monitoring は ModuleNotFoundError で失敗します。 代わりに import sys を実行 ... ントを設定すると、すべてのイベントを無効にします。 ローカルイベント Local events are associated with normal execution of the program and happen at clearly defined locations. All local events can be disabled. The local events are: PY_START PY_RESUME PY_RET ... する CALL を監視している場合だけです。 その他のイベント Other events are not necessarily tied to a specific location in the program and cannot be individually disabled via DISABLE . 監視できるその他のイベントは次のとおりです: PY_THROW PY_UNWIND RAISE EXC ...
https://man.mtool.work/python/3.14/library/sys.monitoring.html
urllib.request --- URL を開くための拡張可能なライブラリ 8020
urllib.request --- URL を開くための拡張可能なライブラリ ソースコード: Lib/urllib/request.py urllib.request モジュールは、Basic 認証や Digest 認証、リダイレクト、Cookie などが絡む複雑な状況で URL (主に HTTP) を開くための関数とクラスを定義して ... を真に設定してください。 次は Windows でこの関数を使う例です。 >>> from urllib.request import pathname2url >>> path = 'C: \\ Program Files' >>> pathname2url ( path , add_scheme = True ) 'file:///C:/Program%20Files' バージョン 3.14 で変更: Windows のドライ ... ror を送出します。 次は Windows でこの関数を使う例です。 >>> from urllib.request import url2pathname >>> url = 'file:///C:/Program %20F iles' >>> url2pathname ( url , require_scheme = True ) 'C:\\Program Files' バージョン 3.14 で変更: Windows のドライブ ...
https://man.mtool.work/python/3.14/library/urllib.request.html
Python 3.15 で削除予定 7860
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 ... ec_prefix ) instead. Use PyConfig_Get("exec_prefix") ( sys.exec_prefix ) if virtual environments need to be handled. Py_GetProgramFullPath() : Use PyConfig_Get("executable") ( sys.executable ) instead. Py_GetProgramName() : Use PyConfig_Get("executable" ... etArgvEx() :代わりに PyConfig.argv を設定してください。 PySys_SetArgv() :代わりに PyConfig.argv を設定してください。 Py_SetProgramName() :代わりに PyConfig.program_name を設定してください。 Py_SetPythonHome() :代わりに PyConfig.home を設定してください。 ...
https://man.mtool.work/python/3.14/deprecations/c-api-pending-removal-in-3.15.ht...
The Python Profilers 7860
The Python Profilers Source code: Lib/profile.py and Lib/pstats.py Introduction to the profilers cProfile and profile provide deterministic profiling of Python programs. A profile is a set of statistics that describes how often and for how ... long various parts of the program executed. These statistics can be formatted into reports via the pstats module. The Python standard library provides two d ... recommended for most users; it's a C extension with reasonable overhead that makes it suitable for profiling long-running programs. Based on lsprof , contributed by Brett Rosen and Ted Czotter. profile , a pure Python module whose interface is imitated ... by cProfile , but which adds significant overhead to profiled programs. If you're trying to extend the profiler in some way, the task might be easier with this module. Originally designed and ...
https://man.mtool.work/python/3.14/library/profile.html
PREV 1 2 3 4 NEXT