Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting sys.tracebacklimit to None is not documented #127555

Open
srittau opened this issue Dec 3, 2024 · 0 comments
Open

Setting sys.tracebacklimit to None is not documented #127555

srittau opened this issue Dec 3, 2024 · 0 comments
Labels
docs Documentation in the Doc dir

Comments

@srittau
Copy link
Contributor

srittau commented Dec 3, 2024

Documentation

From Misc/NEWS.d/3.6.4rc1:

Fixed several issues in printing tracebacks (PyTraceBack_Print()). Setting sys.tracebacklimit to 0 or less now suppresses printing tracebacks. Setting sys.tracebacklimit to None now causes using the default limit. Setting sys.tracebacklimit to an integer larger than LONG_MAX now means using the limit LONG_MAX rather than the default limit.

That it's possible to set sys.tracebacklimit to None is not documented at https://docs.python.org/3/library/sys.html#sys.tracebacklimit.

Noticed by @tungol in python/typeshed#13173.

Linked PRs

@srittau srittau added the docs Documentation in the Doc dir label Dec 3, 2024
srittau added a commit to srittau/cpython that referenced this issue Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
Status: Todo
Development

No branches or pull requests

1 participant