summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2018-09-12 18:43:34 (GMT)
committerGitHub <noreply@github.com>2018-09-12 18:43:34 (GMT)
commit019f0a0cb85ebc234356415f3638b9bd77528e55 (patch)
tree283d1c2dacb285c8f091bf4bb1f79e7520026fb1 /Misc
parenta5d1eb8d8b7add31b5f5d9bbb31cee1a491b2c08 (diff)
downloadcpython-019f0a0cb85ebc234356415f3638b9bd77528e55.zip
cpython-019f0a0cb85ebc234356415f3638b9bd77528e55.tar.gz
cpython-019f0a0cb85ebc234356415f3638b9bd77528e55.tar.bz2
bpo-34536: raise error for invalid _missing_ results (GH-9147)
* raise exception if _missing_ returns None or invalid type
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2018-09-11-15-49-09.bpo-34536.3IPIH5.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-09-11-15-49-09.bpo-34536.3IPIH5.rst b/Misc/NEWS.d/next/Library/2018-09-11-15-49-09.bpo-34536.3IPIH5.rst
new file mode 100644
index 0000000..be45eb5
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-09-11-15-49-09.bpo-34536.3IPIH5.rst
@@ -0,0 +1,2 @@
+`Enum._missing_`: raise `ValueError` if None returned and `TypeError` if
+non-member is returned.