1.. bpo: 28183 2.. date: 9707 3.. nonce: MJZeNd 4.. release date: 2016-10-10 5.. section: Core and Builtins 6 7Optimize and cleanup dict iteration. 8 9.. 10 11.. bpo: 26081 12.. date: 9706 13.. nonce: _x5vjl 14.. section: Core and Builtins 15 16Added C implementation of asyncio.Future. Original patch by Yury Selivanov. 17 18.. 19 20.. bpo: 28379 21.. date: 9705 22.. nonce: DuXlco 23.. section: Core and Builtins 24 25Added sanity checks and tests for PyUnicode_CopyCharacters(). Patch by Xiang 26Zhang. 27 28.. 29 30.. bpo: 28376 31.. date: 9704 32.. nonce: oPD-5D 33.. section: Core and Builtins 34 35The type of long range iterator is now registered as Iterator. Patch by Oren 36Milman. 37 38.. 39 40.. bpo: 28376 41.. date: 9703 42.. nonce: YEy-uG 43.. section: Core and Builtins 44 45Creating instances of range_iterator by calling range_iterator type now is 46deprecated. Patch by Oren Milman. 47 48.. 49 50.. bpo: 28376 51.. date: 9702 52.. nonce: fLeHM2 53.. section: Core and Builtins 54 55The constructor of range_iterator now checks that step is not 0. Patch by 56Oren Milman. 57 58.. 59 60.. bpo: 26906 61.. date: 9701 62.. nonce: YBjcwI 63.. section: Core and Builtins 64 65Resolving special methods of uninitialized type now causes implicit 66initialization of the type instead of a fail. 67 68.. 69 70.. bpo: 18287 71.. date: 9700 72.. nonce: k6jffS 73.. section: Core and Builtins 74 75PyType_Ready() now checks that tp_name is not NULL. Original patch by Niklas 76Koep. 77 78.. 79 80.. bpo: 24098 81.. date: 9699 82.. nonce: XqlP_1 83.. section: Core and Builtins 84 85Fixed possible crash when AST is changed in process of compiling it. 86 87.. 88 89.. bpo: 28201 90.. date: 9698 91.. nonce: GWUxAy 92.. section: Core and Builtins 93 94Dict reduces possibility of 2nd conflict in hash table when hashes have same 95lower bits. 96 97.. 98 99.. bpo: 28350 100.. date: 9697 101.. nonce: 8M5Eg9 102.. section: Core and Builtins 103 104String constants with null character no longer interned. 105 106.. 107 108.. bpo: 26617 109.. date: 9696 110.. nonce: Gh5LvN 111.. section: Core and Builtins 112 113Fix crash when GC runs during weakref callbacks. 114 115.. 116 117.. bpo: 27942 118.. date: 9695 119.. nonce: ZGuhns 120.. section: Core and Builtins 121 122String constants now interned recursively in tuples and frozensets. 123 124.. 125 126.. bpo: 21578 127.. date: 9694 128.. nonce: GI1bhj 129.. section: Core and Builtins 130 131Fixed misleading error message when ImportError called with invalid keyword 132args. 133 134.. 135 136.. bpo: 28203 137.. date: 9693 138.. nonce: LRn5vp 139.. section: Core and Builtins 140 141Fix incorrect type in complex(1.0, {2:3}) error message. Patch by Soumya 142Sharma. 143 144.. 145 146.. bpo: 28086 147.. date: 9692 148.. nonce: JsQPMQ 149.. section: Core and Builtins 150 151Single var-positional argument of tuple subtype was passed unscathed to the 152C-defined function. Now it is converted to exact tuple. 153 154.. 155 156.. bpo: 28214 157.. date: 9691 158.. nonce: zQF8Em 159.. section: Core and Builtins 160 161Now __set_name__ is looked up on the class instead of the instance. 162 163.. 164 165.. bpo: 27955 166.. date: 9690 167.. nonce: HC4pZ4 168.. section: Core and Builtins 169 170Fallback on reading /dev/urandom device when the getrandom() syscall fails 171with EPERM, for example when blocked by SECCOMP. 172 173.. 174 175.. bpo: 28192 176.. date: 9689 177.. nonce: eR6stU 178.. section: Core and Builtins 179 180Don't import readline in isolated mode. 181 182.. 183 184.. bpo: 0 185.. date: 9688 186.. nonce: 9EbOiD 187.. section: Core and Builtins 188 189Upgrade internal unicode databases to Unicode version 9.0.0. 190 191.. 192 193.. bpo: 28131 194.. date: 9687 195.. nonce: owq0wW 196.. section: Core and Builtins 197 198Fix a regression in zipimport's compile_source(). zipimport should use the 199same optimization level as the interpreter. 200 201.. 202 203.. bpo: 28126 204.. date: 9686 205.. nonce: Qf6-uQ 206.. section: Core and Builtins 207 208Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize 209memcpy(). 210 211.. 212 213.. bpo: 28120 214.. date: 9685 215.. nonce: e5xc1i 216.. section: Core and Builtins 217 218Fix dict.pop() for splitted dictionary when trying to remove a "pending key" 219(Not yet inserted in split-table). Patch by Xiang Zhang. 220 221.. 222 223.. bpo: 26182 224.. date: 9684 225.. nonce: jYlqTO 226.. section: Core and Builtins 227 228Raise DeprecationWarning when async and await keywords are used as 229variable/attribute/class/function name. 230 231.. 232 233.. bpo: 27998 234.. date: 9683 235.. nonce: CPhy4H 236.. section: Library 237 238Fixed bytes path support in os.scandir() on Windows. Patch by Eryk Sun. 239 240.. 241 242.. bpo: 28317 243.. date: 9682 244.. nonce: LgHleA 245.. section: Library 246 247The disassembler now decodes FORMAT_VALUE argument. 248 249.. 250 251.. bpo: 26293 252.. date: 9681 253.. nonce: 2mjvwX 254.. section: Library 255 256Fixed writing ZIP files that starts not from the start of the file. Offsets 257in ZIP file now are relative to the start of the archive in conforming to 258the specification. 259 260.. 261 262.. bpo: 28380 263.. date: 9680 264.. nonce: jKPMzH 265.. section: Library 266 267unittest.mock Mock autospec functions now properly support assert_called, 268assert_not_called, and assert_called_once. 269 270.. 271 272.. bpo: 27181 273.. date: 9679 274.. nonce: SQyDpC 275.. section: Library 276 277remove statistics.geometric_mean and defer until 3.7. 278 279.. 280 281.. bpo: 28229 282.. date: 9678 283.. nonce: BKAxcS 284.. section: Library 285 286lzma module now supports pathlib. 287 288.. 289 290.. bpo: 28321 291.. date: 9677 292.. nonce: bQ-IIX 293.. section: Library 294 295Fixed writing non-BMP characters with binary format in plistlib. 296 297.. 298 299.. bpo: 28225 300.. date: 9676 301.. nonce: 6N28nu 302.. section: Library 303 304bz2 module now supports pathlib. Initial patch by Ethan Furman. 305 306.. 307 308.. bpo: 28227 309.. date: 9675 310.. nonce: 7lUz8i 311.. section: Library 312 313gzip now supports pathlib. Patch by Ethan Furman. 314 315.. 316 317.. bpo: 27358 318.. date: 9674 319.. nonce: t288Iv 320.. section: Library 321 322Optimized merging var-keyword arguments and improved error message when 323passing a non-mapping as a var-keyword argument. 324 325.. 326 327.. bpo: 28257 328.. date: 9673 329.. nonce: SVD_IH 330.. section: Library 331 332Improved error message when passing a non-iterable as a var-positional 333argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL. 334 335.. 336 337.. bpo: 28322 338.. date: 9672 339.. nonce: l9hzap 340.. section: Library 341 342Fixed possible crashes when unpickle itertools objects from incorrect pickle 343data. Based on patch by John Leitch. 344 345.. 346 347.. bpo: 28228 348.. date: 9671 349.. nonce: 1qBwdM 350.. section: Library 351 352imghdr now supports pathlib. 353 354.. 355 356.. bpo: 28226 357.. date: 9670 358.. nonce: nMXiwU 359.. section: Library 360 361compileall now supports pathlib. 362 363.. 364 365.. bpo: 28314 366.. date: 9669 367.. nonce: N7YrkN 368.. section: Library 369 370Fix function declaration (C flags) for the getiterator() method of 371xml.etree.ElementTree.Element. 372 373.. 374 375.. bpo: 28148 376.. date: 9668 377.. nonce: Flzndx 378.. section: Library 379 380Stop using localtime() and gmtime() in the time module. 381Introduced platform independent _PyTime_localtime API that is similar to 382POSIX localtime_r, but available on all platforms. Patch by Ed Schouten. 383 384.. 385 386.. bpo: 28253 387.. date: 9667 388.. nonce: aLfmhe 389.. section: Library 390 391Fixed calendar functions for extreme months: 0001-01 and 9999-12. 392Methods itermonthdays() and itermonthdays2() are reimplemented so that they 393don't call itermonthdates() which can cause datetime.date under/overflow. 394 395.. 396 397.. bpo: 28275 398.. date: 9666 399.. nonce: EhWIsz 400.. section: Library 401 402Fixed possible use after free in the decompress() methods of the 403LZMADecompressor and BZ2Decompressor classes. Original patch by John Leitch. 404 405.. 406 407.. bpo: 27897 408.. date: 9665 409.. nonce: I0Ppmx 410.. section: Library 411 412Fixed possible crash in sqlite3.Connection.create_collation() if pass 413invalid string-like object as a name. Patch by Xiang Zhang. 414 415.. 416 417.. bpo: 18844 418.. date: 9664 419.. nonce: fQsEdn 420.. section: Library 421 422random.choices() now has k as a keyword-only argument to improve the 423readability of common cases and come into line with the signature used in 424other languages. 425 426.. 427 428.. bpo: 18893 429.. date: 9663 430.. nonce: osiX5c 431.. section: Library 432 433Fix invalid exception handling in Lib/ctypes/macholib/dyld.py. Patch by 434Madison May. 435 436.. 437 438.. bpo: 27611 439.. date: 9662 440.. nonce: A_ArH_ 441.. section: Library 442 443Fixed support of default root window in the tkinter.tix module. Added the 444master parameter in the DisplayStyle constructor. 445 446.. 447 448.. bpo: 27348 449.. date: 9661 450.. nonce: tDx7Vw 451.. section: Library 452 453In the traceback module, restore the formatting of exception messages like 454"Exception: None". This fixes a regression introduced in 3.5a2. 455 456.. 457 458.. bpo: 25651 459.. date: 9660 460.. nonce: 3UhyPo 461.. section: Library 462 463Allow falsy values to be used for msg parameter of subTest(). 464 465.. 466 467.. bpo: 27778 468.. date: 9659 469.. nonce: Yyo1aP 470.. section: Library 471 472Fix a memory leak in os.getrandom() when the getrandom() is interrupted by a 473signal and a signal handler raises a Python exception. 474 475.. 476 477.. bpo: 28200 478.. date: 9658 479.. nonce: 4IEbr7 480.. section: Library 481 482Fix memory leak on Windows in the os module (fix path_converter() function). 483 484.. 485 486.. bpo: 25400 487.. date: 9657 488.. nonce: d9Qn0E 489.. section: Library 490 491RobotFileParser now correctly returns default values for crawl_delay and 492request_rate. Initial patch by Peter Wirtz. 493 494.. 495 496.. bpo: 27932 497.. date: 9656 498.. nonce: mtgl-6 499.. section: Library 500 501Prevent memory leak in win32_ver(). 502 503.. 504 505.. bpo: 0 506.. date: 9655 507.. nonce: iPpjqX 508.. section: Library 509 510Fix UnboundLocalError in socket._sendfile_use_sendfile. 511 512.. 513 514.. bpo: 28075 515.. date: 9654 516.. nonce: aLiUs9 517.. section: Library 518 519Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat(). Patch 520by Eryk Sun. 521 522.. 523 524.. bpo: 22493 525.. date: 9653 526.. nonce: Mv_hZf 527.. section: Library 528 529Warning message emitted by using inline flags in the middle of regular 530expression now contains a (truncated) regex pattern. Patch by Tim Graham. 531 532.. 533 534.. bpo: 25270 535.. date: 9652 536.. nonce: jrZruM 537.. section: Library 538 539Prevent codecs.escape_encode() from raising SystemError when an empty 540bytestring is passed. 541 542.. 543 544.. bpo: 28181 545.. date: 9651 546.. nonce: NGc4Yv 547.. section: Library 548 549Get antigravity over HTTPS. Patch by Kaartic Sivaraam. 550 551.. 552 553.. bpo: 25895 554.. date: 9650 555.. nonce: j92qoQ 556.. section: Library 557 558Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by Gergely Imreh 559and Markus Holtermann. 560 561.. 562 563.. bpo: 28114 564.. date: 9649 565.. nonce: gmFXsA 566.. section: Library 567 568Fix a crash in parse_envlist() when env contains byte strings. Patch by Eryk 569Sun. 570 571.. 572 573.. bpo: 27599 574.. date: 9648 575.. nonce: itvm8T 576.. section: Library 577 578Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp(). 579 580.. 581 582.. bpo: 27906 583.. date: 9647 584.. nonce: TBBXrv 585.. section: Library 586 587Fix socket accept exhaustion during high TCP traffic. Patch by Kevin Conway. 588 589.. 590 591.. bpo: 28174 592.. date: 9646 593.. nonce: CV1UdI 594.. section: Library 595 596Handle when SO_REUSEPORT isn't properly supported. Patch by Seth Michael 597Larson. 598 599.. 600 601.. bpo: 26654 602.. date: 9645 603.. nonce: XtzTE9 604.. section: Library 605 606Inspect functools.partial in asyncio.Handle.__repr__. Patch by iceboy. 607 608.. 609 610.. bpo: 26909 611.. date: 9644 612.. nonce: ASiakT 613.. section: Library 614 615Fix slow pipes IO in asyncio. Patch by INADA Naoki. 616 617.. 618 619.. bpo: 28176 620.. date: 9643 621.. nonce: sU8R6L 622.. section: Library 623 624Fix callbacks race in asyncio.SelectorLoop.sock_connect. 625 626.. 627 628.. bpo: 27759 629.. date: 9642 630.. nonce: qpMDGq 631.. section: Library 632 633Fix selectors incorrectly retain invalid file descriptors. Patch by Mark 634Williams. 635 636.. 637 638.. bpo: 28368 639.. date: 9641 640.. nonce: fGl9y4 641.. section: Library 642 643Refuse monitoring processes if the child watcher has no loop attached. Patch 644by Vincent Michel. 645 646.. 647 648.. bpo: 28369 649.. date: 9640 650.. nonce: 8DTANe 651.. section: Library 652 653Raise RuntimeError when transport's FD is used with add_reader, add_writer, 654etc. 655 656.. 657 658.. bpo: 28370 659.. date: 9639 660.. nonce: 18jBuZ 661.. section: Library 662 663Speedup asyncio.StreamReader.readexactly. Patch by Коренберг Марк. 664 665.. 666 667.. bpo: 28371 668.. date: 9638 669.. nonce: U9Zqdk 670.. section: Library 671 672Deprecate passing asyncio.Handles to run_in_executor. 673 674.. 675 676.. bpo: 28372 677.. date: 9637 678.. nonce: njcIPk 679.. section: Library 680 681Fix asyncio to support formatting of non-python coroutines. 682 683.. 684 685.. bpo: 28399 686.. date: 9636 687.. nonce: QKIqRX 688.. section: Library 689 690Remove UNIX socket from FS before binding. Patch by Коренберг Марк. 691 692.. 693 694.. bpo: 27972 695.. date: 9635 696.. nonce: ZK-GFm 697.. section: Library 698 699Prohibit Tasks to await on themselves. 700 701.. 702 703.. bpo: 28402 704.. date: 9634 705.. nonce: v9zETJ 706.. section: Windows 707 708Adds signed catalog files for stdlib on Windows. 709 710.. 711 712.. bpo: 28333 713.. date: 9633 714.. nonce: KnpeO4 715.. section: Windows 716 717Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk Sun) 718 719.. 720 721.. bpo: 28251 722.. date: 9632 723.. nonce: tR_AFs 724.. section: Windows 725 726Improvements to help manuals on Windows. 727 728.. 729 730.. bpo: 28110 731.. date: 9631 732.. nonce: cnkP5F 733.. section: Windows 734 735launcher.msi has different product codes between 32-bit and 64-bit 736 737.. 738 739.. bpo: 28161 740.. date: 9630 741.. nonce: hF91LI 742.. section: Windows 743 744Opening CON for write access fails 745 746.. 747 748.. bpo: 28162 749.. date: 9629 750.. nonce: 3FHPVD 751.. section: Windows 752 753WindowsConsoleIO readall() fails if first line starts with Ctrl+Z 754 755.. 756 757.. bpo: 28163 758.. date: 9628 759.. nonce: -DUgJw 760.. section: Windows 761 762WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle 763 764.. 765 766.. bpo: 28164 767.. date: 9627 768.. nonce: 5MfN0J 769.. section: Windows 770 771_PyIO_get_console_type fails for various paths 772 773.. 774 775.. bpo: 28137 776.. date: 9626 777.. nonce: C1uvzY 778.. section: Windows 779 780Renames Windows path file to ._pth 781 782.. 783 784.. bpo: 28138 785.. date: 9625 786.. nonce: pNdv64 787.. section: Windows 788 789Windows ._pth file should allow import site 790 791.. 792 793.. bpo: 28426 794.. date: 9624 795.. nonce: zPwvbI 796.. section: C API 797 798Deprecated undocumented functions PyUnicode_AsEncodedObject(), 799PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and 800PyUnicode_AsEncodedUnicode(). 801 802.. 803 804.. bpo: 28258 805.. date: 9623 806.. nonce: iKtAHd 807.. section: Build 808 809Fixed build with Estonian locale (python-config and distclean targets in 810Makefile). Patch by Arfrever Frehtes Taifersar Arahesis. 811 812.. 813 814.. bpo: 26661 815.. date: 9622 816.. nonce: Z_HNbs 817.. section: Build 818 819setup.py now detects system libffi with multiarch wrapper. 820 821.. 822 823.. bpo: 15819 824.. date: 9621 825.. nonce: QVDr3E 826.. section: Build 827 828Remove redundant include search directory option for building outside the 829source tree. 830 831.. 832 833.. bpo: 28217 834.. date: 9620 835.. nonce: Y37OKV 836.. section: Tests 837 838Adds _testconsole module to test console input. 839