bpo-42848: remove recursion from TracebackException#24158
Conversation
d954d86 to
6ddce07
Compare
gvanrossum
left a comment
There was a problem hiding this comment.
Awesome! Here are some suggestions.
There was a problem hiding this comment.
This doesn't need to have a _ prefix, it's just a local variable.
There was a problem hiding this comment.
Yes. Before I realized I can use _seen this was another private arg, so had the _. I'll change to is_recursive_call so it's clear what it's for.
There was a problem hiding this comment.
It's a bit confusing that we have a local variable stack now but also an attribute exc.stack (completely unrelated).
There was a problem hiding this comment.
A faster way might be to use for msg, exc in reversed(stack): (this may also give you inspiration for what to name the variable. :-)
gvanrossum
left a comment
There was a problem hiding this comment.
LGTM. Now it just needs a news entry. And why is the Ubuntu test failing?
|
The test failure doesn't look related, it's a tkinter widget test: |
|
Blurbit bot is not working today. Who fixes that? |
But did you know you can just run the blurb tool locally? https://pypi.org/project/blurb/ |
But possibly a merge from latest master might help (IIRC Serhiy has been working on tkinter recently). |
|
Thanks for raising the issue with blurb-it to my attention. This should be fixed now, please try it again. |
… rather than a tree
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
be85edc to
f1591cb
Compare
Yes, all the bots are happy now. Thanks @gvanrossum and @Mariatta. |
|
Thanks Irit! |
https://bugs.python.org/issue42848