1 .. bpo: 23573 2 .. date: 9263 3 .. nonce: HdJPs7 4 .. release date: 2015-07-26 5 .. section: Core and Builtins 6 7 Restored optimization of bytes.rfind() and bytearray.rfind() for single-byte 8 argument on Linux. 9 10 .. 11 12 .. bpo: 24569 13 .. date: 9262 14 .. nonce: bqh6PQ 15 .. section: Core and Builtins 16 17 Make PEP 448 dictionary evaluation more consistent. 18 19 .. 20 21 .. bpo: 24583 22 .. date: 9261 23 .. nonce: Ooq0Tn 24 .. section: Core and Builtins 25 26 Fix crash when set is mutated while being updated. 27 28 .. 29 30 .. bpo: 24407 31 .. date: 9260 32 .. nonce: GmCBB3 33 .. section: Core and Builtins 34 35 Fix crash when dict is mutated while being updated. 36 37 .. 38 39 .. bpo: 24619 40 .. date: 9259 41 .. nonce: cnfZGo 42 .. section: Core and Builtins 43 44 New approach for tokenizing async/await. As a consequence, it is now 45 possible to have one-line 'async def foo(): await ..' functions. 46 47 .. 48 49 .. bpo: 24687 50 .. date: 9258 51 .. nonce: 0UaXFe 52 .. section: Core and Builtins 53 54 Plug refleak on SyntaxError in function parameters annotations. 55 56 .. 57 58 .. bpo: 15944 59 .. date: 9257 60 .. nonce: 4GuwqX 61 .. section: Core and Builtins 62 63 memoryview: Allow arbitrary formats when casting to bytes. Patch by Martin 64 Panter. 65 66 .. 67 68 .. bpo: 23441 69 .. date: 9256 70 .. nonce: JXt2Yt 71 .. section: Library 72 73 rcompleter now prints a tab character instead of displaying possible 74 completions for an empty word. Initial patch by Martin Sekera. 75 76 .. 77 78 .. bpo: 24683 79 .. date: 9255 80 .. nonce: aJdWEv 81 .. section: Library 82 83 Fixed crashes in _json functions called with arguments of inappropriate 84 type. 85 86 .. 87 88 .. bpo: 21697 89 .. date: 9254 90 .. nonce: jpATha 91 .. section: Library 92 93 shutil.copytree() now correctly handles symbolic links that point to 94 directories. Patch by Eduardo Seabra and Thomas Kluyver. 95 96 .. 97 98 .. bpo: 14373 99 .. date: 9253 100 .. nonce: Je0yDg 101 .. section: Library 102 103 Fixed segmentation fault when gc.collect() is called during constructing 104 lru_cache (C implementation). 105 106 .. 107 108 .. bpo: 24695 109 .. date: 9252 110 .. nonce: QjZzFb 111 .. section: Library 112 113 Fix a regression in traceback.print_exception(). If exc_traceback is None 114 we shouldn't print a traceback header like described in the documentation. 115 116 .. 117 118 .. bpo: 24620 119 .. date: 9251 120 .. nonce: rrnxB- 121 .. section: Library 122 123 Random.setstate() now validates the value of state last element. 124 125 .. 126 127 .. bpo: 22485 128 .. date: 9250 129 .. nonce: HvJf6T 130 .. section: Library 131 132 Fixed an issue that caused `inspect.getsource` to return incorrect results 133 on nested functions. 134 135 .. 136 137 .. bpo: 22153 138 .. date: 9249 139 .. nonce: 6n6yld 140 .. section: Library 141 142 Improve unittest docs. Patch from Martin Panter and evilzero. 143 144 .. 145 146 .. bpo: 24580 147 .. date: 9248 148 .. nonce: AGi4Gm 149 .. section: Library 150 151 Symbolic group references to open group in re patterns now are explicitly 152 forbidden as well as numeric group references. 153 154 .. 155 156 .. bpo: 24206 157 .. date: 9247 158 .. nonce: ffkVHH 159 .. section: Library 160 161 Fixed __eq__ and __ne__ methods of inspect classes. 162 163 .. 164 165 .. bpo: 24631 166 .. date: 9246 167 .. nonce: uljPxM 168 .. section: Library 169 170 Fixed regression in the timeit module with multiline setup. 171 172 .. 173 174 .. bpo: 18622 175 .. date: 9245 176 .. nonce: i6nCCW 177 .. section: Library 178 179 unittest.mock.mock_open().reset_mock would recurse infinitely. Patch from 180 Nicola Palumbo and Laurent De Buyst. 181 182 .. 183 184 .. bpo: 23661 185 .. date: 9244 186 .. nonce: 5VHJmh 187 .. section: Library 188 189 unittest.mock side_effects can now be exceptions again. This was a 190 regression vs Python 3.4. Patch from Ignacio Rossi 191 192 .. 193 194 .. bpo: 24608 195 .. date: 9243 196 .. nonce: 0TndL0 197 .. section: Library 198 199 chunk.Chunk.read() now always returns bytes, not str. 200 201 .. 202 203 .. bpo: 18684 204 .. date: 9242 205 .. nonce: S2es0F 206 .. section: Library 207 208 Fixed reading out of the buffer in the re module. 209 210 .. 211 212 .. bpo: 24259 213 .. date: 9241 214 .. nonce: vMAi1A 215 .. section: Library 216 217 tarfile now raises a ReadError if an archive is truncated inside a data 218 segment. 219 220 .. 221 222 .. bpo: 15014 223 .. date: 9240 224 .. nonce: hwXwCH 225 .. section: Library 226 227 SMTP.auth() and SMTP.login() now support RFC 4954's optional 228 initial-response argument to the SMTP AUTH command. 229 230 .. 231 232 .. bpo: 24669 233 .. date: 9239 234 .. nonce: kFThK0 235 .. section: Library 236 237 Fix inspect.getsource() for 'async def' functions. Patch by Kai Groner. 238 239 .. 240 241 .. bpo: 24688 242 .. date: 9238 243 .. nonce: -yWfcO 244 .. section: Library 245 246 ast.get_docstring() for 'async def' functions. 247 248 .. 249 250 .. bpo: 24603 251 .. date: 9237 252 .. nonce: PyHyF5 253 .. section: Build 254 255 Update Windows builds and OS X 10.5 installer to use OpenSSL 1.0.2d. 256