-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-33211: Change line number of decor 8000 ated nodes back to def #6460
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
b60b6a6
Change line number of decorated nodes back to def
emmatyping ae578b0
Whitespace fixes
emmatyping 191bd38
Fix test_dis
emmatyping da42832
Change fistlineno of decorated nodes in the compiler
emmatyping 649506c
Remove unused var
emmatyping 29b0d60
Fix indentation bug
emmatyping 68b2228
Run patcheck
emmatyping 09d8ab2
Merge remote tracking branch into deflineno
emmatyping df9fbe2
Change tests back to original state
emmatyping 9840f84
Fix line number in compiler
emmatyping 0842c20
Use unreachable macro
emmatyping 7f4fcdf
Fix silly indentation mistake
emmatyping e4e7f1a
Test ast line numbers for decorated nodes
emmatyping a8e747d
Fix true order tests for decorators
emmatyping 3df5862
Fix bad indentation
emmatyping 44a3cd9
Respond to review
emmatyping afd3b7e
Fix regression with inner decorated nodes
emmatyping bdc9942
Remove redundant line number setting
emmatyping 914d0a0
Fix style in compile.c
emmatyping File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Whitespace fixes
- Loading branch information
commit ae578b04d247c7555dc8351b569d22e32656bcef
There are no files selected for viewing
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
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 was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually now you can remove all
else
s.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'd think so, sadly MSVC warns that not all code paths return if there isn't an else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even with
Py_UNREACHABLE()
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, with the
Py_UNREACHABLE()
it is happy. Do you want something like this?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to remove other
else
s too.