]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-126997: Fix support of non-ASCII strings in pickletools (GH-127062)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 21 Nov 2024 11:15:12 +0000 (13:15 +0200)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2024 11:15:12 +0000 (13:15 +0200)
commiteaf217108226633c03cc5c4c90f0b6e4587c8803
tree85aebbbea34fc7303c5a8f2f8213c5a35948d38f
parentff2278e2bf660155ca8f7c0529190ca59a41c13a
gh-126997: Fix support of non-ASCII strings in pickletools (GH-127062)

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