Skip to content

Commit f3dfc90

Browse files
authored
sys.tracebacklimit can be set to None (#13173)
1 parent a980fc5 commit f3dfc90

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

stdlib/@tests/stubtest_allowlists/common.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ wave.Wave_write.initfp
159159

160160
# sys attributes that are not always defined
161161
sys.gettotalrefcount # Available on python debug builds
162-
sys.last_traceback
163-
sys.last_type
164-
sys.last_value
165-
sys.ps1
166-
sys.ps2
167-
sys.tracebacklimit
162+
sys.last_traceback # Available after an unhandled error has occured
163+
sys.last_type # Available after an unhandled error has occured
164+
sys.last_value # Available after an unhandled error has occured
165+
sys.ps1 # Available in interactive mode
166+
sys.ps2 # Available in interactive mode
167+
sys.tracebacklimit # Must be set first
168168

169169

170170
# ==========

stdlib/sys/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ if sys.version_info >= (3, 10):
7373
__stdin__: Final[TextIOWrapper | None] # Contains the original value of stdin
7474
__stdout__: Final[TextIOWrapper | None] # Contains the original value of stdout
7575
__stderr__: Final[TextIOWrapper | None] # Contains the original value of stderr
76-
tracebacklimit: int
76+
tracebacklimit: int | None
7777
version: str
7878
api_version: int
7979
warnoptions: Any

0 commit comments

Comments
 (0)