Results of 1 - 10 of about 106 for reset (0.086 sec.)
- contextvars --- コンテキスト変数 — Python 3.14.8 ドキュメント 12612
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » contextvars --- コンテキスト変数 テーマ 自動 ライト ダーク | contextvars --- コンテキスト変数 ¶ このモジュールは、コンテ
...value は必須の引数で、コンテキスト変数の新しい値を指定します。 Token オブジェクトを返します。このオブジェクトを ContextVar.reset() メソッドに渡すことで、以前の値に戻すことができます。 For convenience, the token object can be used as a context manager...to avoid calling ContextVar.reset() manually: var = ContextVar ( 'var' , default = 'default value' ) with var . set ( 'new value' ): assert var . get () ==...' , default = 'default value' ) token = var . set ( 'new value' ) try : assert var . get () == 'new value' finally : var . reset ( token ) assert var . get () == 'default value' Added in version 3.14: Added support for using tokens as context managers... - https://man.mtool.work/python/3.14/library/contextvars.html
- contextvars --- コンテキスト変数 — Python 3.14.8 ドキュメント 12612
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » contextvars --- コンテキスト変数 テーマ 自動 ライト ダーク | contextvars --- コンテキスト変数 ¶ このモジュールは、コンテ
...value は必須の引数で、コンテキスト変数の新しい値を指定します。 Token オブジェクトを返します。このオブジェクトを ContextVar.reset() メソッドに渡すことで、以前の値に戻すことができます。 For convenience, the token object can be used as a context manager...to avoid calling ContextVar.reset() manually: var = ContextVar ( 'var' , default = 'default value' ) with var . set ( 'new value' ): assert var . get () ==...' , default = 'default value' ) token = var . set ( 'new value' ) try : assert var . get () == 'new value' finally : var . reset ( token ) assert var . get () == 'default value' Added in version 3.14: Added support for using tokens as context managers... - https://man.mtool.work/python/3.14/library/contextvars.html
- zoneinfo --- IANA タイムゾーンのサポート — Python 3.14.8 ドキュメント 9549
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » zoneinfo --- IANA タイムゾーンのサポート テーマ 自動 ライト ダーク | zoneinfo --- IANA タイムゾーンのサポート ¶ Added in
...time . TZPATH can be configured using an environment variable . At runtime , the search path can be manipulated using the reset_tzpath() function. Compile-time configuration ¶ The default TZPATH includes several common deployment locations for the ti...ey in sysconfig.get_config_var() . Environment configuration ¶ When initializing TZPATH (either at import time or whenever reset_tzpath() is called with no arguments), the zoneinfo module will use the environment variable PYTHONTZPATH , if it exists,...kage instead, set PYTHONTZPATH="" . Runtime configuration ¶ The TZ search path can also be configured at runtime using the reset_tzpath() function. This is generally not an advisable operation, though it is reasonable to use it in test functions that... - https://man.mtool.work/python/3.14/library/zoneinfo.html
- zoneinfo --- IANA タイムゾーンのサポート — Python 3.14.8 ドキュメント 9549
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » zoneinfo --- IANA タイムゾーンのサポート テーマ 自動 ライト ダーク | zoneinfo --- IANA タイムゾーンのサポート ¶ Added in
...time . TZPATH can be configured using an environment variable . At runtime , the search path can be manipulated using the reset_tzpath() function. Compile-time configuration ¶ The default TZPATH includes several common deployment locations for the ti...ey in sysconfig.get_config_var() . Environment configuration ¶ When initializing TZPATH (either at import time or whenever reset_tzpath() is called with no arguments), the zoneinfo module will use the environment variable PYTHONTZPATH , if it exists,...kage instead, set PYTHONTZPATH="" . Runtime configuration ¶ The TZ search path can also be configured at runtime using the reset_tzpath() function. This is generally not an advisable operation, though it is reasonable to use it in test functions that... - https://man.mtool.work/python/3.14/library/zoneinfo.html
- cmd --- 行指向のコマンドインタープリターのサポート — Python 3.14.8 ドキュメント 8536
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » cmd --- 行指向のコマンドインタープリターのサポート テーマ 自動 ライト ダーク | cmd --- 行
...COLOR BLUE' color ( arg . lower ()) def do_undo ( self , arg ): 'Undo (repeatedly) the last turtle action(s): UNDO' def do_reset ( self , arg ): 'Clear the screen and return turtle to center: RESET' reset () def do_bye ( self , arg ): 'Stop recording,...): ======================================== bye color goto home playback record right circle forward heading left position reset undo (turtle) help forward Move the turtle forward by the specified distance: FORWARD 10 (turtle) record spiral.cmd (turtl...e) position Current position is 0 0 (turtle) heading Current heading is 0 (turtle) reset (turtle) circle 20 (turtle) right 30 (turtle) circle 40 (turtle) right 30 (turtle) circle 60 (turtle) right 30 (turtle) ci... - https://man.mtool.work/python/3.14/library/cmd.html
- cmd --- 行指向のコマンドインタープリターのサポート — Python 3.14.8 ドキュメント 8536
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » cmd --- 行指向のコマンドインタープリターのサポート テーマ 自動 ライト ダーク | cmd --- 行
...COLOR BLUE' color ( arg . lower ()) def do_undo ( self , arg ): 'Undo (repeatedly) the last turtle action(s): UNDO' def do_reset ( self , arg ): 'Clear the screen and return turtle to center: RESET' reset () def do_bye ( self , arg ): 'Stop recording,...): ======================================== bye color goto home playback record right circle forward heading left position reset undo (turtle) help forward Move the turtle forward by the specified distance: FORWARD 10 (turtle) record spiral.cmd (turtl...e) position Current position is 0 0 (turtle) heading Current heading is 0 (turtle) reset (turtle) circle 20 (turtle) right 30 (turtle) circle 40 (turtle) right 30 (turtle) circle 60 (turtle) right 30 (turtle) ci... - https://man.mtool.work/python/3.14/library/cmd.html
- Thread states and the global interpreter lock — Python 3.14.8 ドキュメント 8357
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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
...is for os.fork() by acquiring the locks it uses internally before the fork, and releasing them afterwards. In addition, it resets any Lock objects in the child. When extending or embedding Python, there is no way to inform Python of additional (non-Py...thon) locks that need to be acquired before or reset after a fork. OS facilities such as pthread_atfork() would need to be used to accomplish the same thing. Additionally, whe...k by one of Python's internal locks being held by a thread that is defunct after the fork. PyOS_AfterFork_Child() tries to reset the necessary locks, but is not always able to. The fact that all other threads go away also means that CPython's runtime... - https://man.mtool.work/python/3.14/c-api/threads.html
- Thread states and the global interpreter lock — Python 3.14.8 ドキュメント 8357
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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
...is for os.fork() by acquiring the locks it uses internally before the fork, and releasing them afterwards. In addition, it resets any Lock objects in the child. When extending or embedding Python, there is no way to inform Python of additional (non-Py...thon) locks that need to be acquired before or reset after a fork. OS facilities such as pthread_atfork() would need to be used to accomplish the same thing. Additionally, whe...k by one of Python's internal locks being held by a thread that is defunct after the fork. PyOS_AfterFork_Child() tries to reset the necessary locks, but is not always able to. The fact that all other threads go away also means that CPython's runtime... - https://man.mtool.work/python/3.14/c-api/threads.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 8190
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
...y, by creating a list of those numbers. This list consumes a lot of memory temporarily. We can use get_traced_memory() and reset_peak() to observe the small memory usage after the sum is computed as well as the peak memory usage during the computation...ist large_sum = sum ( list ( range ( 100000 ))) first_size , first_peak = tracemalloc . get_traced_memory () tracemalloc . reset_peak () # Example code: compute a sum with a small temporary list small_sum = sum ( list ( range ( 1000 ))) second_size ,...size =} , { second_peak =} " ) 出力: first_size = 664 , first_peak = 3592984 second_size = 804 , second_peak = 29704 Using reset_peak() ensured we could accurately record the peak during the computation of small_sum , even though it is much smaller th... - https://man.mtool.work/python/3.14/library/tracemalloc.html
- 変更履歴 — Python 3.14.8 ドキュメント 8190
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...in turtle.circle() , turtle.dot() or turtle.write() . Fix turtle.stamp() , turtle.clearstamp() , turtle.clear() and turtle.reset() when the undo buffer is disabled. gh-153364 : Make frame, coroutine and task-waiter walks iterative and bounded, avoidin...rough an incompatible function type. Patched by Shamil Abdulaev. gh-157377 : Fix gc.get_count() on the free-threaded build resetting the thread-local allocation counter that schedules automatic garbage collection. A thread that called it while allocat...rogate characters raised UnicodeEncodeError . gh-127057 : Fix asyncio.ProactorEventLoop UDP transports so that a ConnectionResetError raised by WSARecvFrom no longer stops the read loop. gh-156658 : xml.dom and xml.etree.ElementTree no longer treat ch... - https://man.mtool.work/python/3.14/whatsnew/changelog.html