mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-79932: raise exception if frame.clear() is called on a suspended frame (#111792)
This commit is contained in:
parent
d2ddfccfb4
commit
13405ecffd
5 changed files with 27 additions and 7 deletions
|
@ -1214,10 +1214,15 @@ Frame objects support one method:
|
|||
objects (for example when catching an exception and storing its
|
||||
traceback for later use).
|
||||
|
||||
:exc:`RuntimeError` is raised if the frame is currently executing.
|
||||
:exc:`RuntimeError` is raised if the frame is currently executing
|
||||
or suspended.
|
||||
|
||||
.. versionadded:: 3.4
|
||||
|
||||
.. versionchanged:: 3.13
|
||||
Attempting to clear a suspended frame raises :exc:`RuntimeError`
|
||||
(as has always been the case for executing frames).
|
||||
|
||||
|
||||
.. _traceback-objects:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue