summaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2018-06-05 06:59:41 -0600
committerSerhiy Storchaka <storchaka@gmail.com>2018-06-05 15:59:41 +0300
commite9e397605789b2a67b67558fbbe756b7b88934f5 (patch)
tree4294134bac41e498ba9f7a889e8b4c8c3791d86a /Misc
parentaf1ec97a6d1dde68b2dc0ee9b78965eb219061a8 (diff)
downloadcpython-git-e9e397605789b2a67b67558fbbe756b7b88934f5.tar.gz
bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)
Raise TypeError instead of SystemError for unsupported operations.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2018-06-03-22-41-59.bpo-33767.2e82g3.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-06-03-22-41-59.bpo-33767.2e82g3.rst b/Misc/NEWS.d/next/Library/2018-06-03-22-41-59.bpo-33767.2e82g3.rst
new file mode 100644
index 0000000000..3483301890
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-06-03-22-41-59.bpo-33767.2e82g3.rst
@@ -0,0 +1,3 @@
+The concatenation (``+``) and repetition (``*``) sequence operations now
+raise :exc:`TypeError` instead of :exc:`SystemError` when performed on
+:class:`mmap.mmap` objects. Patch by Zackery Spytz.