gh-146579: _zstd: Fix decompression options dict error message#146577
gh-146579: _zstd: Fix decompression options dict error message#146577emmatyping merged 1 commit intopython:mainfrom
Conversation
The TypeError in _zstd_set_d_parameters incorrectly referred to compression options; say decompression options instead.
|
I am not sure this is a bug. Should not the compression options dictionary be the same for compression and decompression? They are compression options which should be passed to decompressor to inform what options were used during compression. |
They actually differ: |
|
You are right. This check is especially to check that they are not mixed. |
emmatyping
left a comment
There was a problem hiding this comment.
Thank you for catching this!
|
Thanks @cuiweixie for the PR, and @emmatyping for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…ythonGH-146577) The TypeError in _zstd_set_d_parameters incorrectly referred to compression options; say decompression options instead. (cherry picked from commit 4d0e8ee) Co-authored-by: cui <cuiweixie@gmail.com>
|
GH-146611 is a backport of this pull request to the 3.14 branch. |
…GH-146577) (#146611) The TypeError in _zstd_set_d_parameters incorrectly referred to compression options; say decompression options instead. (cherry picked from commit 4d0e8ee) Co-authored-by: cui <cuiweixie@gmail.com>
|
|
It looks like we are not running the correct Python version. |
|
The Python version on the iOS buildbot should now be corrected. |
…ktor * upstream/main: (119 commits) pythongh-144270: Make SubElement parent and tag positional-only (pythonGH-144845) pythongh-146558: JIT optimize dict access for objects with known hash (python#146559) pythongh-139922: always run MSVC 64-bit tail-calling CI (pythonGH-146570) pythongh-126835: Fix _PY_IS_SMALL_INT() macro (python#146631) pythongh-146587: fix type slot assignment incase of multiple slots for same name (python#146593) pythongh-138122: Add differential flame graph (python#145785) pythongh-146416: Emscripten: Improve standard stream handling in node_entry.mjs (python#146417) pythongh-146444: Don't package as part of iOS 'build hosts' target (python#146628) pythongh-138850: Add --disable-epoll to configure (pythonGH-145768) pythongh-146444: Make Platforms/Apple/ compatible with Python 3.9 (python#146624) pythongh-138577: Fix keyboard shortcuts in getpass with echo_char (python#141597) pythongh-146556: Fix infinite loop in annotationlib.get_annotations() on circular __wrapped__ (python#146557) pythongh-146579: _zstd: Fix decompression options dict error message (python#146577) pythongh-146083: Upgrade bundled Expat to 2.7.5 (python#146085) pythongh-146080: fix a crash in SNI callbacks when the SSL object is gone (python#146573) pythongh-146090: fix memory management of internal `sqlite3` callback contexts (python#146569) pythongh-145876: Do not mask KeyErrors raised during dictionary unpacking in call (pythonGH-146472) pythongh-146004: fix test_args_from_interpreter_flags on windows (python#146580) pythongh-139003: Use frozenset for module level attributes in _pyrepl.utils (python#139004) pythonGH-146527: Add more data to GC statistics and add it to PyDebugOffsets (python#146532) ...
Summary
Fix the
TypeErrorstring in_zstd_set_d_parameters: it incorrectly saidcompression options dictionarywhen validating decompression option keys.Test plan
invalid key type to decompression options.