-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-82378: fix sys.tracebacklimit in pyrepl #122452
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
Conversation
make sure that pyrepl uses the same logic for sys.tracebacklimit as both the basic repl and the standard sys.excepthook
@serhiy-storchaka would you maybe have time to look at this one as well? it's vaguely related to the |
I first want to merge #122528. It performs refactoring, so it will conflict with this PR, but at the end it can make it simpler. I wonder how it affects this issue. |
Thanks for the heads up, makes sense! I'm happy to rebase this pr once you're done. |
Please rebase. |
@serhiy-storchaka I'm traveling for a bit, sorry, will do it end next week. |
@serhiy-storchaka I've merged main into the PR. you could look again. I've also opened a variant of this PR, #123062 , with a more radical change. please pick whichever is more appropriate, I'm fine with either outcome. |
#123062 looks better in long run. I propose to modify it (it can be considered a third variant). |
I'm closing this PR, #123062 looks much better now. |
make sure that pyrepl uses the same logic for
sys.tracebacklimit
as both the basic repl and the standardsys.excepthook
. as discussed on #82378,sys.tracebacklimit
has two different meanings, and this pr makes sure that it's consistent in the two repls.