]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:40:52 +0000 (12:40 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2024 11:40:52 +0000 (11:40 +0000)
commiteaafc7857fa8dffd177e548942b52442e63211e7
tree268ba7adb138c92178a43e70342df93902455adf
parent746a0c5bc8979d6265e9669987eff52e7631222a
[3.13] gh-126997: Fix support of non-ASCII strings in pickletools (GH-127062) (GH-127094)

* 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]