You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Python 3.11 the printed value is deleted done, in Python 3.12 the printed value is done deleted. Which means the exception is kept around much longer than it need to be, this is caused by a reference cycle between the exception and the frame in contextmanager implementation.
Bug report
Bug description:
Consider the following code.
In Python 3.11 the printed value is
deleted done
, in Python 3.12 the printed value isdone deleted
. Which means the exception is kept around much longer than it need to be, this is caused by a reference cycle between the exception and the frame incontextmanager
implementation.CPython versions tested on:
3.11, 3.12
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: