summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-12-02 07:24:06 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-12-02 07:24:06 (GMT)
commit83cf99d733acb49c70dd9548eeccfc724e707531 (patch)
tree2b0f3a1cf6d3fc28556ad920f10879d6bb69f5d9 /Misc
parent9d98c9bf42412e05b5352329c6f141df49dd8df7 (diff)
downloadcpython-83cf99d733acb49c70dd9548eeccfc724e707531.zip
cpython-83cf99d733acb49c70dd9548eeccfc724e707531.tar.gz
cpython-83cf99d733acb49c70dd9548eeccfc724e707531.tar.bz2
Issue #20335: bytes constructor now raises TypeError when encoding or errors
is specified with non-string argument. Based on patch by Renaud Blanch.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index d820bb6..f48a794 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -11,6 +11,9 @@ Release date: TBA
Core and Builtins
-----------------
+- Issue #20335: bytes constructor now raises TypeError when encoding or errors
+ is specified with non-string argument. Based on patch by Renaud Blanch.
+
- Issue #22335: Fix crash when trying to enlarge a bytearray to 0x7fffffff
bytes on a 32-bit platform.