| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you!
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM as well.
@emmatyping Would you like to use your new green button?
Sorry, something went wrong.
There was a problem hiding this comment.
Does it make sense to have a test that we don't hit this unreachable path?
Sorry, something went wrong.
|
Hm, how are you envisioning that? The whole point of Py_UNREACHABLE here is that no code path can hit it, so there's not really a test we could write to stress that. |
Sorry, something went wrong.
|
I'm not a fan of needing logic like this, and it would be nice to exhaustively test that we never hit it, but I haven't had a good idea, no. A |
Sorry, something went wrong.
|
Anyway, the compression path already uses Py_UNREACHABLE, so likely best to merge for pragmatism. A |
Sorry, something went wrong.
|
Thanks @Rogdham for the PR, and @AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Sorry, something went wrong.
…honGH-137320) (cherry picked from commit 57eab1b) Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
|
GH-137360 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
…`` (pythonGH-137320) (python#137360) Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
There are 2 functions called _zstd_load_impl: one for compression and one for decompression.
In these functions, the type variable is supposed to represent the dict type. Due to the way the function is called, the dict type is always one of DICT_TYPE_DIGESTED/DICT_TYPE_UNDIGESTED/DICT_TYPE_PREFIX. However, the implementations differs in the unreachable case:
This PR harmonizes the two implementations by using Py_UNREACHABLE.