summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2021-09-07 12:18:46 (GMT)
committerGitHub <noreply@github.com>2021-09-07 12:18:46 (GMT)
commit8ca6b61e3fd7f1e2876126cee82da8d812c8462f (patch)
treed3f55761ad4c4cbac8db1814e5d11a0b7c24e7b2 /Misc
parent97b754d4b46ad9dd63f68906484f805931578c81 (diff)
downloadcpython-8ca6b61e3fd7f1e2876126cee82da8d812c8462f.zip
cpython-8ca6b61e3fd7f1e2876126cee82da8d812c8462f.tar.gz
cpython-8ca6b61e3fd7f1e2876126cee82da8d812c8462f.tar.bz2
bpo-45034: Fix how upper limit is formatted for `struct.pack("H", ...)` (GH-28178)
Co-authored-by: Mark Dickinson <dickinsm@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS.d/next/Library/2021-09-05-20-33-25.bpo-45034.62NLD5.rst2
2 files changed, 3 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index df0b92c..481e46d 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1663,6 +1663,7 @@ Ryan Smith-Roberts
Rafal Smotrzyk
Josh Snider
Eric Snow
+Nikita Sobolev
Dirk Soede
Nir Soffer
Paul Sokolovsky
diff --git a/Misc/NEWS.d/next/Library/2021-09-05-20-33-25.bpo-45034.62NLD5.rst b/Misc/NEWS.d/next/Library/2021-09-05-20-33-25.bpo-45034.62NLD5.rst
new file mode 100644
index 0000000..8d94821
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-09-05-20-33-25.bpo-45034.62NLD5.rst
@@ -0,0 +1,2 @@
+Changes how error is formatted for ``struct.pack`` with ``'H'`` and ``'h'`` modes and
+too large / small numbers. Now it shows the actual numeric limits, while previously it was showing arithmetic expressions.