]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-126997: Fix support of non-ASCII strings in pickletools (GH-127062) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 21 Nov 2024 11:32:16 +0000 (12:32 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2024 11:32:16 +0000 (11:32 +0000)
commitd997be051017ac84d3b5ebf69aa0a11b2a61c230
tree0284fd692188558e25a561e17d987ab217afffe7
parent512a5bdb2f409cc924214806d09cd266c36249cc
[3.12] gh-126997: Fix support of non-ASCII strings in pickletools (GH-127062) (GH-127095)

* Fix support of STRING and GLOBAL opcodes with non-ASCII arguments.
* dis() now outputs non-ASCII bytes in STRING, BINSTRING and
  SHORT_BINSTRING arguments as escaped (\xXX).
(cherry picked from commit eaf217108226633c03cc5c4c90f0b6e4587c8803)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/pickletools.py
Lib/test/test_pickletools.py
Misc/NEWS.d/next/Library/2024-11-20-16-58-59.gh-issue-126997.0PI41Y.rst [new file with mode: 0644]