ended3월 21일· 1 sources
Automatically Revert Temporary Value Changes in a with Block
with 블록 내 임시 값 변경을 자동으로 되돌리기
Why it matters
The triggon v2.0.0 library introduces a rollback() API that automatically reverts temporary changes to variables and attributes when exiting a Python with block, supporting local variables on CPython 3.13+. Users can optionally specify which variables or attributes to restore, and variables defined inside the block are not affected by the rollback.
1
Sources
+0
24h
—
Growth
180d
Active
triggonrollbackCPython 3.13with blockTriggon.rollback