Results of 1 - 10 of about 87 for released (0.004 sec.)
- bisect --- 配列二分法アルゴリズム — Python 3.14.8 ドキュメント 13319
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » bisect --- 配列二分法アルゴリズム テーマ 自動 ライト ダーク | bisect --- 配列二分法アルゴリズム ¶ ソースコード: Lib/bise
...getter >>> from bisect import bisect , insort >>> from pprint import pprint >>> Movie = namedtuple ( 'Movie' , ( 'name' , 'released' , 'director' )) >>> movies = [ ... Movie ( 'Jaws' , 1975 , 'Spielberg' ), ... Movie ( 'Titanic' , 1997 , 'Cameron' ), ......Movie ( 'The Birds' , 1963 , 'Hitchcock' ), ... Movie ( 'Aliens' , 1986 , 'Cameron' ) ... ] >>> # Find the first movie released after 1960 >>> by_year = attrgetter ( 'released' ) >>> movies . sort ( key = by_year ) >>> movies [ bisect ( movies , 1960..., key = by_year )] Movie(name='The Birds', released=1963, director='Hitchcock') >>> # Insert a movie while maintaining sort order >>> romance = Movie ( 'Love Story' , 1970 ,... - https://man.mtool.work/python/3.14/library/bisect.html
- bisect --- 配列二分法アルゴリズム — Python 3.14.8 ドキュメント 13319
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » bisect --- 配列二分法アルゴリズム テーマ 自動 ライト ダーク | bisect --- 配列二分法アルゴリズム ¶ ソースコード: Lib/bise
...getter >>> from bisect import bisect , insort >>> from pprint import pprint >>> Movie = namedtuple ( 'Movie' , ( 'name' , 'released' , 'director' )) >>> movies = [ ... Movie ( 'Jaws' , 1975 , 'Spielberg' ), ... Movie ( 'Titanic' , 1997 , 'Cameron' ), ......Movie ( 'The Birds' , 1963 , 'Hitchcock' ), ... Movie ( 'Aliens' , 1986 , 'Cameron' ) ... ] >>> # Find the first movie released after 1960 >>> by_year = attrgetter ( 'released' ) >>> movies . sort ( key = by_year ) >>> movies [ bisect ( movies , 1960..., key = by_year )] Movie(name='The Birds', released=1963, director='Hitchcock') >>> # Insert a movie while maintaining sort order >>> romance = Movie ( 'Love Story' , 1970 ,... - https://man.mtool.work/python/3.14/library/bisect.html
- Pickle buffer objects — Python 3.14.8 ドキュメント 10389
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » Pickle buffer objects テーマ 自動 ライト ダーク | Pickle buffer objects ¶ Added in ve
...lying Py_buffer that the pickle buffer wraps. The returned pointer is valid as long as picklebuf is alive and has not been released. The caller must not modify or free the returned Py_buffer . If the pickle buffer has been released, raise ValueError . On...uffer instance success failure exception picklebuf pointer wraps PyTypeObject Return Analogous calling underlying returned released Release Pickle objects Added providing 前のトピックへ memoryview オブジェクト 次のトピックへ 弱参照オブジェクト This page... - https://man.mtool.work/python/3.14/c-api/picklebuffer.html
- C API Extension Support for Free Threading — Python 3.14.8 ドキュメント 10214
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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
...l section (e.g., by acquiring another lock or performing I/O), the critical section is temporarily suspended—all locks are released—and then resumed when the blocking operation completes. This behavior is similar to what happens with the GIL when a threa...g on any PyMutex causes the critical sections to be suspended, only the mutexes that are part of the critical sections are released. If PyMutex is used without a critical section, it will not be released and therefore does not get the same deadlock avoid...l about making assumptions about the state of the data after operations that might block. Because locks can be temporarily released (suspended), entering a critical section does not guarantee exclusive access to the protected resource throughout the sect... - https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
- C API Extension Support for Free Threading — Python 3.14.8 ドキュメント 10214
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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
...l section (e.g., by acquiring another lock or performing I/O), the critical section is temporarily suspended—all locks are released—and then resumed when the blocking operation completes. This behavior is similar to what happens with the GIL when a threa...g on any PyMutex causes the critical sections to be suspended, only the mutexes that are part of the critical sections are released. If PyMutex is used without a critical section, it will not be released and therefore does not get the same deadlock avoid...l about making assumptions about the state of the data after operations that might block. Because locks can be temporarily released (suspended), entering a critical section does not guarantee exclusive access to the protected resource throughout the sect... - https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
- Pickle buffer objects — Python 3.14.8 ドキュメント 8843
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » Pickle buffer objects テーマ 自動 ライト ダーク | Pickle buffer objects ¶ Added in ve
...lying Py_buffer that the pickle buffer wraps. The returned pointer is valid as long as picklebuf is alive and has not been released. The caller must not modify or free the returned Py_buffer . If the pickle buffer has been released, raise ValueError . On... - https://man.mtool.work/python/3.14/c-api/picklebuffer.html
- Thread Safety Guarantees — Python 3.14.8 ドキュメント 7808
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » Thread Safety Guarantees テーマ 自動 ライト ダーク | Thread Safety Guarantees ¶ This page documents thread-safety guarantees for bui
...y another thread. For built-in types like str , int , and float , that implement __eq__() in C, the underlying lock is not released during comparisons and this is not a concern. The following operations return new objects and hold the per-object lock for...ct and subclasses All comparison operations also compare values using __eq__() , so for non-built-in types the lock may be released during comparison. fromkeys() locks both the new dictionary and the iterable when the iterable is exactly a dict , set , o...that are immutable for the lifetime of the memoryview, so concurrent reads are safe as long as the memoryview has not been released. However, the actual data accessed through the memoryview is owned by the underlying object. Concurrent access to this dat... - https://man.mtool.work/python/3.14/builtins/threadsafety.html
- Thread Safety Guarantees — Python 3.14.8 ドキュメント 7808
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » Thread Safety Guarantees テーマ 自動 ライト ダーク | Thread Safety Guarantees ¶ This page documents thread-safety guarantees for bui
...y another thread. For built-in types like str , int , and float , that implement __eq__() in C, the underlying lock is not released during comparisons and this is not a concern. The following operations return new objects and hold the per-object lock for...ct and subclasses All comparison operations also compare values using __eq__() , so for non-built-in types the lock may be released during comparison. fromkeys() locks both the new dictionary and the iterable when the iterable is exactly a dict , set , o...that are immutable for the lifetime of the memoryview, so concurrent reads are safe as long as the memoryview has not been released. However, the actual data accessed through the memoryview is owned by the underlying object. Concurrent access to this dat... - https://man.mtool.work/python/3.14/builtins/threadsafety.html
- リストオブジェクト — Python 3.14.8 ドキュメント 7298
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » リストオブジェクト テーマ 自動 ライト ダーク | リストオブジェクト ¶ type PyListObject
...d , element comparison via __lt__() can execute arbitrary Python code, during which the per-object lock may be temporarily released. For built-in types ( str , int , float ), the lock is not released during comparison. int PyList_Reverse ( PyObject * lis... - https://man.mtool.work/python/3.14/c-api/list.html
- Thread states and the global interpreter lock — Python 3.14.8 ドキュメント 7298
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » Thread states and the global interpreter lock テーマ 自動 ライト ダーク | Thread states and the global interpreter lock ¶ Unless
.... This is why locks are also necessary for thread-safety in pure-Python code. Additionally, the global interpreter lock is released around blocking I/O operations, such as reading or writing to a file. From the C API, this is done by detaching the thread...it, PyEval_SaveThread() is called and the result is stored in a local variable. By detaching the thread state, the GIL is released, which allows other threads to attach to the interpreter and execute while the current thread performs blocking I/O. When...in CPython's runtime. The fact that only the "current" thread remains means any locks held by other threads will never be released. Python solves this for os.fork() by acquiring the locks it uses internally before the fork, and releasing them afterwards... - https://man.mtool.work/python/3.14/c-api/threads.html