Results of 1 - 10 of about 51 for passed (0.006 sec.)
- 1. Extending Python with C or C++ 13443
- 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
...traightforward translation from the argument list in Python (for example, the single expression "ls -l" ) to the arguments passed to the C function. The C function always has two arguments, conventionally named self and args . The self argument points...ue (nonzero) if all arguments have the right type and its components have been stored in the variables whose addresses are passed. It returns false (zero) if an invalid argument list was passed. In the latter case it also raises an appropriate exceptio...xception type, exception instance, and a traceback object. It is important to know about them to understand how errors are passed around. Python API では、様々な型の例外をセットするための関数をいくつか定義しています。 もっともよく用いられるのは PyErr_S... - https://man.mtool.work/python/3.14/extending/extending.html
- fcntl --- fcntl および ioctl システムコール 12349
- fcntl --- fcntl および ioctl システムコール このモジュールはファイル記述子に対するファイル制御と I/O 制御を行います。 Unix の fcntl() と ioctl() ルーチンへのインターフェイスです。 詳細は Unix のマニュアルページ fcntl(2) と ioctl(2) を参照し
...k() . A string value is encoded to binary using the UTF-8 encoding. The binary data is copied to a buffer whose address is passed to the C fcntl() call. The return value after a successful call is the contents of the buffer, converted to a bytes object...he type or the size of arg does not match the type or size of the argument of the operation (for example, if an integer is passed when a pointer is expected, or the information returned in the buffer by the operating system is larger than 1024 bytes),...注釈 If the type or size of arg does not match the type or size of the operation's argument (for example, if an integer is passed when a pointer is expected, or the information returned in the buffer by the operating system is larger than 1024 bytes, o... - https://man.mtool.work/python/3.14/library/fcntl.html
- email.utils: 各種ユーティリティ 10685
- 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
...such as "Mon, 20 Nov 1995 19:12:08 -0500" . If it succeeds in parsing the date, parsedate() returns a 9-tuple that can be passed directly to time.mktime() ; otherwise None will be returned. Note that indexes 6, 7, and 8 of the result tuple are not usa...e containing the character set, language, and value. collapse_rfc2231_value() turns this into a string. Optional errors is passed to the errors argument of str 's encode() method; it defaults to 'replace' . Optional fallback_charset specifies the chara... - https://man.mtool.work/python/3.14/library/email.utils.html
- 同期プリミティブ 9576
- 同期プリミティブ ソースコード: Lib/asyncio/locks.py asyncio の同期プリミティブは threading モジュールのそれと類似するようにデザインされていますが、2つの重要な注意事項があります: asyncio の同期プリミティブはスレッドセーフではありません。従っ
...o . sleep ( 0 ) print ( b ) # 3 回目の .wait() の呼び出しでバリアを通過する await b . wait () print ( b ) print ( "barrier passed" ) await asyncio . sleep ( 0 ) print ( b ) asyncio . run ( example_barrier ()) この例の実行結果は次のとおりです。 < asynci...... [ filling , waiters : 2 / 3 ] > < asyncio . locks . Barrier object at 0 x ... [ draining , waiters : 0 / 3 ] > barrier passed < asyncio . locks . Barrier object at 0 x ... [ filling , waiters : 0 / 3 ] > Added in version 3.11. async wait ( ) バリア... - https://man.mtool.work/python/3.14/library/asyncio-sync.html
- 呼び出しグラフのイントロスペクション 9022
- 呼び出しグラフのイントロスペクション ソースコード: Lib/asyncio/graph.py asyncio は、実行中の コルーチン や タスク 、または中断中の Future の呼び出しグラフ全体を実行時にたどる、強力なイントロスペクション機能を備えています。 これらの機能とその
...または指定した Task や Future の非同期呼び出しグラフを取得します。 The function receives an optional future argument. If not passed, the current running task will be used. If there's no current task, the function returns None . 現在のタスク に対して呼び出... - https://man.mtool.work/python/3.14/library/asyncio-graph.html
- doctest --- 対話型の Python の例をテストする 9022
- doctest --- 対話型の Python の例をテストする ソースコード: Lib/doctest.py doctest モジュールは Python の対話セッションに見えるテキストを探し、そのセッションを実行して記載どおりに動作するか検証します。 主な使い方は次のとおりです。 モジュール
...、最後には: Trying: factorial(1e100) Expecting: Traceback (most recent call last): ... OverflowError: n too large ok 2 items passed all tests: 1 test in __main__ 6 tests in __main__.factorial 7 tests in 2 items. 7 passed. Test passed. $ doctest を役立てる...マイズすることもできます。 The test runner's display output can be controlled in two ways. First, an output function can be passed to run() ; this function will be called with strings that should be displayed. It defaults to sys.stdout.write . If captur... - https://man.mtool.work/python/3.14/library/doctest.html
- pty --- 擬似端末ユーティリティ 9022
- pty --- 擬似端末ユーティリティ ソースコード: Lib/pty.py pty モジュールは、別のプロセスを起動してその制御端末をプログラムから読み書きする、擬似端末の操作を定義します。 利用可能な環境 : Unix. 擬似端末の扱いはプラットフォームに大きく依存します
...現在のプロセスの STDIN が閉じられても、そのことは子プロセスに通知されません。 The functions master_read and stdin_read are passed a file descriptor which they should read from, and they should always return a byte string. In order to force spawn to ret... - https://man.mtool.work/python/3.14/library/pty.html
- デスクリプタオブジェクト (descriptor object) 8467
- デスクリプタオブジェクト (descriptor object) "デスクリプタ (descriptor)" は、あるオブジェクトのいくつかの属性について記述したオブジェクトです。デスクリプタオブジェクトは型オブジェクトの辞書内にあります。 PyTypeObject PyProperty_Type 次に属し
...PyMethodDescr_Type , PyClassMethodDescr_Type , PyMemberDescr_Type , PyGetSetDescr_Type , or PyWrapperDescr_Type ). If the passed descriptor is not an instance of one of these types, the behavior is undefined. PyDescr_NAME ( descr ) Return the name of... - https://man.mtool.work/python/3.14/c-api/descriptor.html
- ctypes --- Python 用の外部関数ライブラリ 8467
- ctypes --- Python 用の外部関数ライブラリ ソースコード: Lib/ctypes ctypes は Python 用の外部関数ライブラリです。 C と互換性のあるデータ型を提供し、DLL や共有ライブラリの関数を呼び出せます。 これらのライブラリを純粋な Python でラップするために
...\n " , b "X" , 2 , 3 ) X 2 3.000000 13 >>> Setting argtypes also causes ctypes to raise TypeError if too few arguments are passed: >>> printf ( b " %s %d %f \n " , b "X" , 2 ) Traceback (most recent call last): File "<stdin>" , line 1 , in <module> Typ...ng convention accept additional, unspecified arguments as well. When a foreign function is called, each actual argument is passed to the from_param() class method of the items in the argtypes tuple, this method allows adapting the actual argument to an...object that the foreign function accepts. For example, a c_char_p item in the argtypes tuple will convert a string passed as argument into a bytes object using ctypes conversion rules. 新機能: argtypes に ctypes の型以外の要素も指定できるように... - https://man.mtool.work/python/3.14/library/ctypes.html
- threading --- スレッドベースの並列処理 8467
- threading --- スレッドベースの並列処理 ソースコード: Lib/threading.py このモジュールでは、高水準のスレッドインターフェースをより低水準 な _thread モジュールの上に構築しています。 利用可能な環境 : not WASI. このモジュールは WebAssembly では動
...モジュールから開始するすべてのスレッドと、現在実行中のすべての Python スレッドにトレース関数を設定します。 The func will be passed to sys.settrace() for each thread, before its run() method is called. Added in version 3.12. threading. gettrace ( ) settr...ュールから開始するすべてのスレッドと、現在実行中のすべての Python スレッドにプロファイル関数を設定します。 The func will be passed to sys.setprofile() for each thread, before its run() method is called. Added in version 3.12. threading. getprofile ( ) s...択するために使用することができます。例えば: i = barrier . wait () if i == 0 : # 1 つのスレッドだけが表示すればよい print ( "passed the barrier" ) action がコンストラクタに渡されていれば、スレッドのうちの1つが解放される前にそれを呼び出します。万一この呼び... - https://man.mtool.work/python/3.14/library/threading.html