From: Serhiy Storchaka Date: Tue, 2 Dec 2014 07:26:14 +0000 (+0200) Subject: Issue #20335: bytes constructor now raises TypeError when encoding or errors X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b2cacb42a7a3a79c1d5c491c584f57aa5c82417;p=python Issue #20335: bytes constructor now raises TypeError when encoding or errors is specified with non-string argument. Based on patch by Renaud Blanch. --- 0b2cacb42a7a3a79c1d5c491c584f57aa5c82417 diff --cc Misc/NEWS index c88adc0087,f48a794c3b..2a43e3ab46 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -10,14 -11,9 +10,17 @@@ Release date: TB 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 #22834: If the current working directory ends up being set to a + non-existent directory then import will no longer raise FileNotFoundError. + +- Issue #22869: Move the interpreter startup & shutdown code to a new + dedicated pylifecycle.c module + +- Issue #22847: Improve method cache efficiency. + - Issue #22335: Fix crash when trying to enlarge a bytearray to 0x7fffffff bytes on a 32-bit platform.