PEP 651: Clarify that examples in abstract refer to the PEP being accepted, not now. (#1771)
This commit is contained in:
parent
9d778c6b28
commit
62b03c20a0
|
@ -15,7 +15,7 @@ This PEP proposes that machine stack overflow is treated differently from runawa
|
|||
This would allow programs to set the maximum recursion depth to fit their needs
|
||||
and provide additional safety guarantees.
|
||||
|
||||
The following program will run safely to completion::
|
||||
If this PEP is accepted, then the following program will run safely to completion::
|
||||
|
||||
sys.setrecursionlimit(1_000_000)
|
||||
|
||||
|
@ -25,7 +25,7 @@ The following program will run safely to completion::
|
|||
|
||||
f(500_000)
|
||||
|
||||
The following program will raise a ``StackOverflow``, without causing a VM crash::
|
||||
and the following program will raise a ``StackOverflow``, without causing a VM crash::
|
||||
|
||||
sys.setrecursionlimit(1_000_000)
|
||||
|
||||
|
|
Loading…
Reference in New Issue