1.. bpo: 28532 2.. date: 9778 3.. nonce: KEYJny 4.. release date: 2016-11-21 5.. section: Core and Builtins 6 7Show sys.version when -V option is supplied twice. 8 9.. 10 11.. bpo: 27100 12.. date: 9777 13.. nonce: poVjXq 14.. section: Core and Builtins 15 16The with-statement now checks for __enter__ before it checks for __exit__. 17This gives less confusing error messages when both methods are missing. 18Patch by Jonathan Ellington. 19 20.. 21 22.. bpo: 28746 23.. date: 9776 24.. nonce: r5MXdB 25.. section: Core and Builtins 26 27Fix the set_inheritable() file descriptor method on platforms that do not 28have the ioctl FIOCLEX and FIONCLEX commands. 29 30.. 31 32.. bpo: 26920 33.. date: 9775 34.. nonce: 1URwGb 35.. section: Core and Builtins 36 37Fix not getting the locale's charset upon initializing the interpreter, on 38platforms that do not have langinfo. 39 40.. 41 42.. bpo: 28648 43.. date: 9774 44.. nonce: z7B52W 45.. section: Core and Builtins 46 47Fixed crash in Py_DecodeLocale() in debug build on Mac OS X when decode 48astral characters. Patch by Xiang Zhang. 49 50.. 51 52.. bpo: 19398 53.. date: 9773 54.. nonce: RYbEGH 55.. section: Core and Builtins 56 57Extra slash no longer added to sys.path components in case of empty 58compile-time PYTHONPATH components. 59 60.. 61 62.. bpo: 28665 63.. date: 9772 64.. nonce: v4nx86 65.. section: Core and Builtins 66 67Improve speed of the STORE_DEREF opcode by 40%. 68 69.. 70 71.. bpo: 28583 72.. date: 9771 73.. nonce: F-QAx1 74.. section: Core and Builtins 75 76PyDict_SetDefault didn't combine split table when needed. Patch by Xiang 77Zhang. 78 79.. 80 81.. bpo: 27243 82.. date: 9770 83.. nonce: 61E6K5 84.. section: Core and Builtins 85 86Change PendingDeprecationWarning -> DeprecationWarning. As it was agreed in 87the issue, __aiter__ returning an awaitable should result in 88PendingDeprecationWarning in 3.5 and in DeprecationWarning in 3.6. 89 90.. 91 92.. bpo: 26182 93.. date: 9769 94.. nonce: a8JXK2 95.. section: Core and Builtins 96 97Fix a refleak in code that raises DeprecationWarning. 98 99.. 100 101.. bpo: 28721 102.. date: 9768 103.. nonce: BO9BUF 104.. section: Core and Builtins 105 106Fix asynchronous generators aclose() and athrow() to handle 107StopAsyncIteration propagation properly. 108 109.. 110 111.. bpo: 28752 112.. date: 9767 113.. nonce: Q-4oRE 114.. section: Library 115 116Restored the __reduce__() methods of datetime objects. 117 118.. 119 120.. bpo: 28727 121.. date: 9766 122.. nonce: ubZP_b 123.. section: Library 124 125Regular expression patterns, _sre.SRE_Pattern objects created by 126re.compile(), become comparable (only x==y and x!=y operators). This change 127should fix the issue #18383: don't duplicate warning filters when the 128warnings module is reloaded (thing usually only done in unit tests). 129 130.. 131 132.. bpo: 20572 133.. date: 9765 134.. nonce: lGXaH9 135.. section: Library 136 137The subprocess.Popen.wait method's undocumented endtime parameter now raises 138a DeprecationWarning. 139 140.. 141 142.. bpo: 25659 143.. date: 9764 144.. nonce: lE2IlT 145.. section: Library 146 147In ctypes, prevent a crash calling the from_buffer() and from_buffer_copy() 148methods on abstract classes like Array. 149 150.. 151 152.. bpo: 19717 153.. date: 9763 154.. nonce: HXCAIz 155.. section: Library 156 157Makes Path.resolve() succeed on paths that do not exist. Patch by Vajrasky 158Kok 159 160.. 161 162.. bpo: 28563 163.. date: 9762 164.. nonce: iweEiw 165.. section: Library 166 167Fixed possible DoS and arbitrary code execution when handle plural form 168selections in the gettext module. The expression parser now supports exact 169syntax supported by GNU gettext. 170 171.. 172 173.. bpo: 28387 174.. date: 9761 175.. nonce: 1clJu7 176.. section: Library 177 178Fixed possible crash in _io.TextIOWrapper deallocator when the garbage 179collector is invoked in other thread. Based on patch by Sebastian Cufre. 180 181.. 182 183.. bpo: 28600 184.. date: 9760 185.. nonce: wMVrjN 186.. section: Library 187 188Optimize loop.call_soon. 189 190.. 191 192.. bpo: 28613 193.. date: 9759 194.. nonce: sqUPrv 195.. section: Library 196 197Fix get_event_loop() return the current loop if called from 198coroutines/callbacks. 199 200.. 201 202.. bpo: 28634 203.. date: 9758 204.. nonce: YlRydz 205.. section: Library 206 207Fix asyncio.isfuture() to support unittest.Mock. 208 209.. 210 211.. bpo: 26081 212.. date: 9757 213.. nonce: 2Y8-a9 214.. section: Library 215 216Fix refleak in _asyncio.Future.__iter__().throw. 217 218.. 219 220.. bpo: 28639 221.. date: 9756 222.. nonce: WUPo1o 223.. section: Library 224 225Fix inspect.isawaitable to always return bool Patch by Justin Mayfield. 226 227.. 228 229.. bpo: 28652 230.. date: 9755 231.. nonce: f5M8FG 232.. section: Library 233 234Make loop methods reject socket kinds they do not support. 235 236.. 237 238.. bpo: 28653 239.. date: 9754 240.. nonce: S5bA9i 241.. section: Library 242 243Fix a refleak in functools.lru_cache. 244 245.. 246 247.. bpo: 28703 248.. date: 9753 249.. nonce: CRLTJc 250.. section: Library 251 252Fix asyncio.iscoroutinefunction to handle Mock objects. 253 254.. 255 256.. bpo: 28704 257.. date: 9752 258.. nonce: EFWBII 259.. section: Library 260 261Fix create_unix_server to support Path-like objects (PEP 519). 262 263.. 264 265.. bpo: 28720 266.. date: 9751 267.. nonce: Fsz-Lf 268.. section: Library 269 270Add collections.abc.AsyncGenerator. 271 272.. 273 274.. bpo: 28513 275.. date: 9750 276.. nonce: L3joAz 277.. section: Documentation 278 279Documented command-line interface of zipfile. 280 281.. 282 283.. bpo: 28666 284.. date: 9749 285.. nonce: RtTk-4 286.. section: Tests 287 288Now test.support.rmtree is able to remove unwritable or unreadable 289directories. 290 291.. 292 293.. bpo: 23839 294.. date: 9748 295.. nonce: zsT_L9 296.. section: Tests 297 298Various caches now are cleared before running every test file. 299 300.. 301 302.. bpo: 10656 303.. date: 9747 304.. nonce: pR8FFU 305.. section: Build 306 307Fix out-of-tree building on AIX. Patch by Tristan Carel and Michael 308Haubenwallner. 309 310.. 311 312.. bpo: 26359 313.. date: 9746 314.. nonce: CLz6qy 315.. section: Build 316 317Rename --with-optimiations to --enable-optimizations. 318 319.. 320 321.. bpo: 28676 322.. date: 9745 323.. nonce: Wxf6Ds 324.. section: Build 325 326Prevent missing 'getentropy' declaration warning on macOS. Patch by Gareth 327Rees. 328