-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
bpo-43950: ensure source_line is present when specializing the traceback #27313
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
Merged
pablogsal
merged 3 commits into
python:main
from
colnotab:ensure-source-line-is-displayed
Jul 24, 2021
Merged
bpo-43950: ensure source_line is present when specializing the traceback #27313
pablogsal
merged 3 commits into
python:main
from
colnotab:ensure-source-line-is-displayed
Jul 24, 2021
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
|
Would it be better to fix |
Member
Author
|
I am not sure how would the fix look beside introducing a new return code
for cases that did not result with printing the line but also without an
error which seems more complicated.
…On Fri, Jul 23, 2021, 10:45 PM Dennis Sweeney ***@***.***> wrote:
Would it be better to fix _Py_DisplaySourceLine() instead?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#27313 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJKHQPWWFKTA45LSTO5FS3TZHBGFANCNFSM5A4RI23Q>
.
|
sweeneyde
approved these changes
Jul 23, 2021
Member
|
Can we add a regression test for this? (Like the one on the BPO issue?) |
|
🤖 New build scheduled with the buildbot fleet by @isidentical for commit 8db4e0c 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Member
Author
|
It seems like refleaks bots also fail on the main too, so that can be ignored. |
pablogsal
approved these changes
Jul 24, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There seems to be different cases where the
_PyDisplay_Line()function returns0without displaying the actual line but also without having any errors raised.cpython/Python/traceback.c
Lines 414 to 420 in 4512848
cpython/Python/traceback.c
Lines 436 to 446 in 4512848
This patch ensures that the line is retrieved and displayed.
https://bugs.python.org/issue43950