Results of 1 - 10 of about 389 for while (0.049 sec.)
- 変更履歴 — Python 3.14.8 ドキュメント 10955
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...Mgr credentials to the URL scheme, preventing credentials stored for an HTTPS URL from being used for a matching HTTP URL, while URIs without a scheme continue to match any scheme. Core and Builtins ¶ gh-158364 : Fix crash when sys._current_frames() o...r sys._current_exceptions() is called while another interpreter is running. gh-158254 : Reverse iterators over a dict and its views now raise RuntimeError if the dict...d build resetting the thread-local allocation counter that schedules automatic garbage collection. A thread that called it while allocating could prevent cyclic garbage from ever being collected. gh-156091 : Fix a crash when compiling deeply nested in... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- 変更履歴 — Python 3.14.8 ドキュメント 9769
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...Mgr credentials to the URL scheme, preventing credentials stored for an HTTPS URL from being used for a matching HTTP URL, while URIs without a scheme continue to match any scheme. Core and Builtins ¶ gh-158364 : Fix crash when sys._current_frames() o...r sys._current_exceptions() is called while another interpreter is running. gh-158254 : Reverse iterators over a dict and its views now raise RuntimeError if the dict...d build resetting the thread-local allocation counter that schedules automatic garbage collection. A thread that called it while allocating could prevent cyclic garbage from ever being collected. gh-156091 : Fix a crash when compiling deeply nested in... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- C API Extension Support for Free Threading — Python 3.14.8 ドキュメント 8045
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » C API Extension Support for Free Threading テーマ 自動 ライト ダーク | C API Extension Support for Free Threading ¶ Starting with the 3.13 release
...is PyDict_Next() , which does not lock the dictionary. You should use Py_BEGIN_CRITICAL_SECTION to protect the dictionary while iterating over it if the dictionary may be concurrently modified: Py_BEGIN_CRITICAL_SECTION ( dict ); PyObject * key , * v...alue ; Py_ssize_t pos = 0 ; while ( PyDict_Next ( dict , & pos , & key , & value )) { ... } Py_END_CRITICAL_SECTION (); Borrowed References ¶ Some C API fun...ild, CPython provides a mechanism called "critical sections" to protect data that would otherwise be protected by the GIL. While extension authors may not interact with the internal critical section implementation directly, understanding their behavio... - https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
- C API Extension Support for Free Threading — Python 3.14.8 ドキュメント 8045
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » C API Extension Support for Free Threading テーマ 自動 ライト ダーク | C API Extension Support for Free Threading ¶ Starting with the 3.13 release
...is PyDict_Next() , which does not lock the dictionary. You should use Py_BEGIN_CRITICAL_SECTION to protect the dictionary while iterating over it if the dictionary may be concurrently modified: Py_BEGIN_CRITICAL_SECTION ( dict ); PyObject * key , * v...alue ; Py_ssize_t pos = 0 ; while ( PyDict_Next ( dict , & pos , & key , & value )) { ... } Py_END_CRITICAL_SECTION (); Borrowed References ¶ Some C API fun...ild, CPython provides a mechanism called "critical sections" to protect data that would otherwise be protected by the GIL. While extension authors may not interact with the internal critical section implementation directly, understanding their behavio... - https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 7916
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...*step, ... count(10) → 10 11 12 13 14 ... cycle() p p0, p1, ... plast, p0, p1, ... cycle('ABCD') → A B C D A B C D ... dropwhile() predicate, seq seq[n], seq[n+1], starting when predicate fails dropwhile(lambda x: x<5, [1,4,6,3,8]) → 6 3 8 filterfalse..., 3) → 10 10 10 starmap() func, seq func(*seq[0]), func(*seq[1]), ... starmap(pow, [(2,5), (3,2), (10,3)]) → 32 9 1000 takewhile() predicate, seq seq[0], seq[1], until predicate fails takewhile(lambda x: x<5, [1,4,6,3,8]) → 1 4 tee() it, n it1, it2 ,...# batched('ABCDEFG', 3) → ABC DEF G if n < 1 : raise ValueError ( 'n must be at least one' ) iterator = iter ( iterable ) while batch := tuple ( islice ( iterator , n )): if strict and len ( batch ) != n : raise ValueError ( 'batched(): incomplete ba... - https://man.mtool.work/python/3.14/library/itertools.html
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 7916
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...*step, ... count(10) → 10 11 12 13 14 ... cycle() p p0, p1, ... plast, p0, p1, ... cycle('ABCD') → A B C D A B C D ... dropwhile() predicate, seq seq[n], seq[n+1], starting when predicate fails dropwhile(lambda x: x<5, [1,4,6,3,8]) → 6 3 8 filterfalse..., 3) → 10 10 10 starmap() func, seq func(*seq[0]), func(*seq[1]), ... starmap(pow, [(2,5), (3,2), (10,3)]) → 32 9 1000 takewhile() predicate, seq seq[0], seq[1], until predicate fails takewhile(lambda x: x<5, [1,4,6,3,8]) → 1 4 tee() it, n it1, it2 ,...# batched('ABCDEFG', 3) → ABC DEF G if n < 1 : raise ValueError ( 'n must be at least one' ) iterator = iter ( iterable ) while batch := tuple ( islice ( iterator , n )): if strict and len ( batch ) != n : raise ValueError ( 'batched(): incomplete ba... - https://man.mtool.work/python/3.14/library/itertools.html
- bytearray オブジェクト — Python 3.14.8 ドキュメント 7647
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » bytearray オブジェクト テーマ 自動 ライト ダーク | bytearray オブジェクト ¶ type PyBy
...return NULL with an exception set. 注釈 If the object implements the buffer protocol, then the buffer must not be mutated while the bytearray object is being created. PyObject * PyByteArray_FromStringAndSize ( const char * string , Py_ssize_t len ) ¶...return NULL with an exception set. 注釈 If the object implements the buffer protocol, then the buffer must not be mutated while the bytearray object is being created. Py_ssize_t PyByteArray_Size ( PyObject * bytearray ) ¶ 次に属します: Stable ABI . T...します。 返される配列には、常に余分な null バイトが追加されます。 注釈 It is not thread-safe to mutate the bytearray object while using the returned char array. int PyByteArray_Resize ( PyObject * bytearray , Py_ssize_t len ) ¶ 次に属します: Stable ABI... - https://man.mtool.work/python/3.14/c-api/bytearray.html
- bytearray オブジェクト — Python 3.14.8 ドキュメント 7647
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » bytearray オブジェクト テーマ 自動 ライト ダーク | bytearray オブジェクト ¶ type PyBy
...return NULL with an exception set. 注釈 If the object implements the buffer protocol, then the buffer must not be mutated while the bytearray object is being created. PyObject * PyByteArray_FromStringAndSize ( const char * string , Py_ssize_t len ) ¶...return NULL with an exception set. 注釈 If the object implements the buffer protocol, then the buffer must not be mutated while the bytearray object is being created. Py_ssize_t PyByteArray_Size ( PyObject * bytearray ) ¶ 次に属します: Stable ABI . T...します。 返される配列には、常に余分な null バイトが追加されます。 注釈 It is not thread-safe to mutate the bytearray object while using the returned char array. int PyByteArray_Resize ( PyObject * bytearray , Py_ssize_t len ) ¶ 次に属します: Stable ABI... - https://man.mtool.work/python/3.14/c-api/bytearray.html
- Dictionary Objects — Python 3.14.8 ドキュメント 6720
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » Dictionary Objects テーマ 自動 ライト ダーク | Dictionary Objects ¶ type PyDictObject
...ary p which has a key key . Return NULL if the key key is missing without setting an exception. 注釈 Exceptions that occur while this calls __hash__() and __eq__() methods are silently ignored. Prefer the PyDict_GetItemWithError() function instead. 注..., but key is specified as a const char * UTF-8 encoded bytes string, rather than a PyObject * . 注釈 Exceptions that occur while this calls __hash__() and __eq__() methods or while creating the temporary str object are silently ignored. Prefer using t...おり、構造体はスパースなので、オフセットの値に一貫性がないためです。 例えば: PyObject * key , * value ; Py_ssize_t pos = 0 ; while ( PyDict_Next ( self -> dict , & pos , & key , & value )) { /* do something interesting with the values... */ ... } 反復処... - https://man.mtool.work/python/3.14/c-api/dict.html
- Dictionary Objects — Python 3.14.8 ドキュメント 6720
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » Dictionary Objects テーマ 自動 ライト ダーク | Dictionary Objects ¶ type PyDictObject
...ary p which has a key key . Return NULL if the key key is missing without setting an exception. 注釈 Exceptions that occur while this calls __hash__() and __eq__() methods are silently ignored. Prefer the PyDict_GetItemWithError() function instead. 注..., but key is specified as a const char * UTF-8 encoded bytes string, rather than a PyObject * . 注釈 Exceptions that occur while this calls __hash__() and __eq__() methods or while creating the temporary str object are silently ignored. Prefer using t...おり、構造体はスパースなので、オフセットの値に一貫性がないためです。 例えば: PyObject * key , * value ; Py_ssize_t pos = 0 ; while ( PyDict_Next ( self -> dict , & pos , & key , & value )) { /* do something interesting with the values... */ ... } 反復処... - https://man.mtool.work/python/3.14/c-api/dict.html