From 62b03c20a08cdc06d5b255a5fe50bc45198a8cb5 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Wed, 20 Jan 2021 15:20:35 +0000 Subject: [PATCH] PEP 651: Clarify that examples in abstract refer to the PEP being accepted, not now. (#1771) --- pep-0651.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pep-0651.rst b/pep-0651.rst index 17265c898..f4131cd1e 100644 --- a/pep-0651.rst +++ b/pep-0651.rst @@ -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)