diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-11-21 11:15:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-21 11:15:12 (GMT) |
commit | eaf217108226633c03cc5c4c90f0b6e4587c8803 (patch) | |
tree | 85aebbbea34fc7303c5a8f2f8213c5a35948d38f /Misc | |
parent | ff2278e2bf660155ca8f7c0529190ca59a41c13a (diff) | |
download | cpython-eaf217108226633c03cc5c4c90f0b6e4587c8803.zip cpython-eaf217108226633c03cc5c4c90f0b6e4587c8803.tar.gz cpython-eaf217108226633c03cc5c4c90f0b6e4587c8803.tar.bz2 |
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).
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-11-20-16-58-59.gh-issue-126997.0PI41Y.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-11-20-16-58-59.gh-issue-126997.0PI41Y.rst b/Misc/NEWS.d/next/Library/2024-11-20-16-58-59.gh-issue-126997.0PI41Y.rst new file mode 100644 index 0000000..b85c51e --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-11-20-16-58-59.gh-issue-126997.0PI41Y.rst @@ -0,0 +1,3 @@ +Fix support of STRING and GLOBAL opcodes with non-ASCII arguments in +:mod:`pickletools`. :func:`pickletools.dis` now outputs non-ASCII bytes in +STRING, BINSTRING and SHORT_BINSTRING arguments as escaped (``\xXX``). |