-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
get_hash_info
might potentially swallow errors in sysmodule.c
#115320
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Comments
sobolevn
added
type-bug
An unexpected behavior, bug, or error
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
labels
Feb 12, 2024
sobolevn
added a commit
that referenced
this issue
Mar 4, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 4, 2024
…llow errors (pythonGH-115321) (cherry picked from commit 207030f) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 4, 2024
…llow errors (pythonGH-115321) (cherry picked from commit 207030f) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
adorilson
pushed a commit
to adorilson/cpython
that referenced
this issue
Mar 25, 2024
…llow errors (python#115321)
diegorusso
pushed a commit
to diegorusso/cpython
that referenced
this issue
Apr 17, 2024
…llow errors (python#115321)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
cpython/Python/sysmodule.c
Lines 1494 to 1526 in 54bde5d
This code only checks for errors in the very last line:
cpython/Python/sysmodule.c
Lines 1522 to 1526 in 54bde5d
I think that this pattern should not be used. Because it can potentially swallow previous errors on only show the very last one.
I propose to refactor this code to show the first error instead.
Linked PRs
get_hash_info
insysmodule.c
not to swallow errors #115321get_hash_info
insysmodule.c
not to swallow errors (GH-115321) #116323get_hash_info
insysmodule.c
not to swallow errors (GH-115321) #116324The text was updated successfully, but these errors were encountered: