1.. bpo: 29073 2.. date: 9898 3.. nonce: EFpHQ7 4.. release date: 2017-01-02 5.. section: Core and Builtins 6 7bytearray formatting no longer truncates on first null byte. 8 9.. 10 11.. bpo: 28932 12.. date: 9897 13.. nonce: QnLx8A 14.. section: Core and Builtins 15 16Do not include <sys/random.h> if it does not exist. 17 18.. 19 20.. bpo: 28147 21.. date: 9896 22.. nonce: EV4bm6 23.. section: Core and Builtins 24 25Fix a memory leak in split-table dictionaries: setattr() must not convert 26combined table into split table. 27 28.. 29 30.. bpo: 25677 31.. date: 9895 32.. nonce: RWhZrb 33.. section: Core and Builtins 34 35Correct the positioning of the syntax error caret for indented blocks. 36Based on patch by Michael Layzell. 37 38.. 39 40.. bpo: 29000 41.. date: 9894 42.. nonce: K6wQ-3 43.. section: Core and Builtins 44 45Fixed bytes formatting of octals with zero padding in alternate form. 46 47.. 48 49.. bpo: 28512 50.. date: 9893 51.. nonce: i-pv6d 52.. section: Core and Builtins 53 54Fixed setting the offset attribute of SyntaxError by 55PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject(). 56 57.. 58 59.. bpo: 28991 60.. date: 9892 61.. nonce: -qOTxS 62.. section: Core and Builtins 63 64functools.lru_cache() was susceptible to an obscure reentrancy bug caused by 65a monkey-patched len() function. 66 67.. 68 69.. bpo: 28648 70.. date: 9891 71.. nonce: z7B52W 72.. section: Core and Builtins 73 74Fixed crash in Py_DecodeLocale() in debug build on Mac OS X when decode 75astral characters. Patch by Xiang Zhang. 76 77.. 78 79.. bpo: 19398 80.. date: 9890 81.. nonce: RYbEGH 82.. section: Core and Builtins 83 84Extra slash no longer added to sys.path components in case of empty 85compile-time PYTHONPATH components. 86 87.. 88 89.. bpo: 28426 90.. date: 9889 91.. nonce: E_quyK 92.. section: Core and Builtins 93 94Fixed potential crash in PyUnicode_AsDecodedObject() in debug build. 95 96.. 97 98.. bpo: 23782 99.. date: 9888 100.. nonce: lonDzj 101.. section: Core and Builtins 102 103Fixed possible memory leak in _PyTraceback_Add() and exception loss in 104PyTraceBack_Here(). 105 106.. 107 108.. bpo: 28379 109.. date: 9887 110.. nonce: DuXlco 111.. section: Core and Builtins 112 113Added sanity checks and tests for PyUnicode_CopyCharacters(). Patch by Xiang 114Zhang. 115 116.. 117 118.. bpo: 28376 119.. date: 9886 120.. nonce: oPD-5D 121.. section: Core and Builtins 122 123The type of long range iterator is now registered as Iterator. Patch by Oren 124Milman. 125 126.. 127 128.. bpo: 28376 129.. date: 9885 130.. nonce: fLeHM2 131.. section: Core and Builtins 132 133The constructor of range_iterator now checks that step is not 0. Patch by 134Oren Milman. 135 136.. 137 138.. bpo: 26906 139.. date: 9884 140.. nonce: YBjcwI 141.. section: Core and Builtins 142 143Resolving special methods of uninitialized type now causes implicit 144initialization of the type instead of a fail. 145 146.. 147 148.. bpo: 18287 149.. date: 9883 150.. nonce: k6jffS 151.. section: Core and Builtins 152 153PyType_Ready() now checks that tp_name is not NULL. Original patch by Niklas 154Koep. 155 156.. 157 158.. bpo: 24098 159.. date: 9882 160.. nonce: XqlP_1 161.. section: Core and Builtins 162 163Fixed possible crash when AST is changed in process of compiling it. 164 165.. 166 167.. bpo: 28350 168.. date: 9881 169.. nonce: 8M5Eg9 170.. section: Core and Builtins 171 172String constants with null character no longer interned. 173 174.. 175 176.. bpo: 26617 177.. date: 9880 178.. nonce: Gh5LvN 179.. section: Core and Builtins 180 181Fix crash when GC runs during weakref callbacks. 182 183.. 184 185.. bpo: 27942 186.. date: 9879 187.. nonce: ZGuhns 188.. section: Core and Builtins 189 190String constants now interned recursively in tuples and frozensets. 191 192.. 193 194.. bpo: 21578 195.. date: 9878 196.. nonce: GI1bhj 197.. section: Core and Builtins 198 199Fixed misleading error message when ImportError called with invalid keyword 200args. 201 202.. 203 204.. bpo: 28203 205.. date: 9877 206.. nonce: kOgvtp 207.. section: Core and Builtins 208 209Fix incorrect type in error message from ``complex(1.0, {2:3})``. Patch by 210Soumya Sharma. 211 212.. 213 214.. bpo: 27955 215.. date: 9876 216.. nonce: HC4pZ4 217.. section: Core and Builtins 218 219Fallback on reading /dev/urandom device when the getrandom() syscall fails 220with EPERM, for example when blocked by SECCOMP. 221 222.. 223 224.. bpo: 28131 225.. date: 9875 226.. nonce: owq0wW 227.. section: Core and Builtins 228 229Fix a regression in zipimport's compile_source(). zipimport should use the 230same optimization level as the interpreter. 231 232.. 233 234.. bpo: 25221 235.. date: 9874 236.. nonce: Zvkz9i 237.. section: Core and Builtins 238 239Fix corrupted result from PyLong_FromLong(0) when Python is compiled with 240NSMALLPOSINTS = 0. 241 242.. 243 244.. bpo: 25758 245.. date: 9873 246.. nonce: yR-YTD 247.. section: Core and Builtins 248 249Prevents zipimport from unnecessarily encoding a filename (patch by Eryk 250Sun) 251 252.. 253 254.. bpo: 28189 255.. date: 9872 256.. nonce: c_nbR_ 257.. section: Core and Builtins 258 259dictitems_contains no longer swallows compare errors. (Patch by Xiang Zhang) 260 261.. 262 263.. bpo: 27812 264.. date: 9871 265.. nonce: sidcs8 266.. section: Core and Builtins 267 268Properly clear out a generator's frame's backreference to the generator to 269prevent crashes in frame.clear(). 270 271.. 272 273.. bpo: 27811 274.. date: 9870 275.. nonce: T4AuBo 276.. section: Core and Builtins 277 278Fix a crash when a coroutine that has not been awaited is finalized with 279warnings-as-errors enabled. 280 281.. 282 283.. bpo: 27587 284.. date: 9869 285.. nonce: mbavY2 286.. section: Core and Builtins 287 288Fix another issue found by PVS-Studio: Null pointer check after use of 'def' 289in _PyState_AddModule(). Initial patch by Christian Heimes. 290 291.. 292 293.. bpo: 26020 294.. date: 9868 295.. nonce: niLbLa 296.. section: Core and Builtins 297 298set literal evaluation order did not match documented behaviour. 299 300.. 301 302.. bpo: 27782 303.. date: 9867 304.. nonce: C8OBQD 305.. section: Core and Builtins 306 307Multi-phase extension module import now correctly allows the ``m_methods`` 308field to be used to add module level functions to instances of non-module 309types returned from ``Py_create_mod``. Patch by Xiang Zhang. 310 311.. 312 313.. bpo: 27936 314.. date: 9866 315.. nonce: AdOann 316.. section: Core and Builtins 317 318The round() function accepted a second None argument for some types but not 319for others. Fixed the inconsistency by accepting None for all numeric 320types. 321 322.. 323 324.. bpo: 27487 325.. date: 9865 326.. nonce: jeTQNr 327.. section: Core and Builtins 328 329Warn if a submodule argument to "python -m" or runpy.run_module() is found 330in sys.modules after parent packages are imported, but before the submodule 331is executed. 332 333.. 334 335.. bpo: 27558 336.. date: 9864 337.. nonce: VmltMh 338.. section: Core and Builtins 339 340Fix a SystemError in the implementation of "raise" statement. In a brand new 341thread, raise a RuntimeError since there is no active exception to reraise. 342Patch written by Xiang Zhang. 343 344.. 345 346.. bpo: 27419 347.. date: 9863 348.. nonce: JZ94ju 349.. section: Core and Builtins 350 351Standard __import__() no longer look up "__import__" in globals or builtins 352for importing submodules or "from import". Fixed handling an error of 353non-string package name. 354 355.. 356 357.. bpo: 27083 358.. date: 9862 359.. nonce: F4ZT1C 360.. section: Core and Builtins 361 362Respect the PYTHONCASEOK environment variable under Windows. 363 364.. 365 366.. bpo: 27514 367.. date: 9861 368.. nonce: NLbwPG 369.. section: Core and Builtins 370 371Make having too many statically nested blocks a SyntaxError instead of 372SystemError. 373 374.. 375 376.. bpo: 27473 377.. date: 9860 378.. nonce: _nOtTA 379.. section: Core and Builtins 380 381Fixed possible integer overflow in bytes and bytearray concatenations. 382Patch by Xiang Zhang. 383 384.. 385 386.. bpo: 27507 387.. date: 9859 388.. nonce: 3pX0Be 389.. section: Core and Builtins 390 391Add integer overflow check in bytearray.extend(). Patch by Xiang Zhang. 392 393.. 394 395.. bpo: 27581 396.. date: 9858 397.. nonce: KezjNt 398.. section: Core and Builtins 399 400Don't rely on wrapping for overflow check in PySequence_Tuple(). Patch by 401Xiang Zhang. 402 403.. 404 405.. bpo: 27443 406.. date: 9857 407.. nonce: 87ZwZ1 408.. section: Core and Builtins 409 410__length_hint__() of bytearray iterators no longer return a negative integer 411for a resized bytearray. 412 413.. 414 415.. bpo: 27942 416.. date: 9856 417.. nonce: wCAkW5 418.. section: Core and Builtins 419 420Fix memory leak in codeobject.c 421 422.. 423 424.. bpo: 15812 425.. date: 9855 426.. nonce: R1U-Ec 427.. section: Library 428 429inspect.getframeinfo() now correctly shows the first line of a context. 430Patch by Sam Breese. 431 432.. 433 434.. bpo: 29094 435.. date: 9854 436.. nonce: 460ZQo 437.. section: Library 438 439Offsets in a ZIP file created with extern file object and modes "w" and "x" 440now are relative to the start of the file. 441 442.. 443 444.. bpo: 13051 445.. date: 9853 446.. nonce: YzC1Te 447.. section: Library 448 449Fixed recursion errors in large or resized curses.textpad.Textbox. Based on 450patch by Tycho Andersen. 451 452.. 453 454.. bpo: 29119 455.. date: 9852 456.. nonce: Ov69fr 457.. section: Library 458 459Fix weakrefs in the pure python version of collections.OrderedDict 460move_to_end() method. Contributed by Andra Bogildea. 461 462.. 463 464.. bpo: 9770 465.. date: 9851 466.. nonce: WJJnwP 467.. section: Library 468 469curses.ascii predicates now work correctly with negative integers. 470 471.. 472 473.. bpo: 28427 474.. date: 9850 475.. nonce: vUd-va 476.. section: Library 477 478old keys should not remove new values from WeakValueDictionary when 479collecting from another thread. 480 481.. 482 483.. bpo: 28923 484.. date: 9849 485.. nonce: naVULD 486.. section: Library 487 488Remove editor artifacts from Tix.py. 489 490.. 491 492.. bpo: 28871 493.. date: 9848 494.. nonce: cPMXCJ 495.. section: Library 496 497Fixed a crash when deallocate deep ElementTree. 498 499.. 500 501.. bpo: 19542 502.. date: 9847 503.. nonce: 5tCkaK 504.. section: Library 505 506Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop() 507when a GC collection happens in another thread. 508 509.. 510 511.. bpo: 20191 512.. date: 9846 513.. nonce: P_EZ7c 514.. section: Library 515 516Fixed a crash in resource.prlimit() when pass a sequence that doesn't own 517its elements as limits. 518 519.. 520 521.. bpo: 28779 522.. date: 9845 523.. nonce: t-mjED 524.. section: Library 525 526multiprocessing.set_forkserver_preload() would crash the forkserver process 527if a preloaded module instantiated some multiprocessing objects such as 528locks. 529 530.. 531 532.. bpo: 28847 533.. date: 9844 534.. nonce: J7d3nG 535.. section: Library 536 537dbm.dumb now supports reading read-only files and no longer writes the index 538file when it is not changed. 539 540.. 541 542.. bpo: 25659 543.. date: 9843 544.. nonce: lE2IlT 545.. section: Library 546 547In ctypes, prevent a crash calling the from_buffer() and from_buffer_copy() 548methods on abstract classes like Array. 549 550.. 551 552.. bpo: 28732 553.. date: 9842 554.. nonce: xkG8k7 555.. section: Library 556 557Fix crash in os.spawnv() with no elements in args 558 559.. 560 561.. bpo: 28485 562.. date: 9841 563.. nonce: WuKqKh 564.. section: Library 565 566Always raise ValueError for negative compileall.compile_dir(workers=...) 567parameter, even when multithreading is unavailable. 568 569.. 570 571.. bpo: 28387 572.. date: 9840 573.. nonce: 1clJu7 574.. section: Library 575 576Fixed possible crash in _io.TextIOWrapper deallocator when the garbage 577collector is invoked in other thread. Based on patch by Sebastian Cufre. 578 579.. 580 581.. bpo: 27517 582.. date: 9839 583.. nonce: 1CYM8A 584.. section: Library 585 586LZMA compressor and decompressor no longer raise exceptions if given empty 587data twice. Patch by Benjamin Fogle. 588 589.. 590 591.. bpo: 28549 592.. date: 9838 593.. nonce: ShnM2y 594.. section: Library 595 596Fixed segfault in curses's addch() with ncurses6. 597 598.. 599 600.. bpo: 28449 601.. date: 9837 602.. nonce: 5JK6ES 603.. section: Library 604 605tarfile.open() with mode "r" or "r:" now tries to open a tar file with 606compression before trying to open it without compression. Otherwise it had 60750% chance failed with ignore_zeros=True. 608 609.. 610 611.. bpo: 23262 612.. date: 9836 613.. nonce: 6EVB7N 614.. section: Library 615 616The webbrowser module now supports Firefox 36+ and derived browsers. Based 617on patch by Oleg Broytman. 618 619.. 620 621.. bpo: 27939 622.. date: 9835 623.. nonce: mTfADV 624.. section: Library 625 626Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused by 627representing the scale as float value internally in Tk. tkinter.IntVar now 628works if float value is set to underlying Tk variable. 629 630.. 631 632.. bpo: 28255 633.. date: 9834 634.. nonce: _ZH4wm 635.. section: Library 636 637calendar.TextCalendar().prmonth() no longer prints a space at the start of 638new line after printing a month's calendar. Patch by Xiang Zhang. 639 640.. 641 642.. bpo: 20491 643.. date: 9833 644.. nonce: ObgnQ2 645.. section: Library 646 647The textwrap.TextWrapper class now honors non-breaking spaces. Based on 648patch by Kaarle Ritvanen. 649 650.. 651 652.. bpo: 28353 653.. date: 9832 654.. nonce: sKGbLL 655.. section: Library 656 657os.fwalk() no longer fails on broken links. 658 659.. 660 661.. bpo: 25464 662.. date: 9831 663.. nonce: HDUTCu 664.. section: Library 665 666Fixed HList.header_exists() in tkinter.tix module by addin a workaround to 667Tix library bug. 668 669.. 670 671.. bpo: 28488 672.. date: 9830 673.. nonce: NlkjBM 674.. section: Library 675 676shutil.make_archive() no longer add entry "./" to ZIP archive. 677 678.. 679 680.. bpo: 24452 681.. date: 9829 682.. nonce: m9Kyg3 683.. section: Library 684 685Make webbrowser support Chrome on Mac OS X. 686 687.. 688 689.. bpo: 20766 690.. date: 9828 691.. nonce: 4kvCzx 692.. section: Library 693 694Fix references leaked by pdb in the handling of SIGINT handlers. 695 696.. 697 698.. bpo: 26293 699.. date: 9827 700.. nonce: 2mjvwX 701.. section: Library 702 703Fixed writing ZIP files that starts not from the start of the file. Offsets 704in ZIP file now are relative to the start of the archive in conforming to 705the specification. 706 707.. 708 709.. bpo: 28321 710.. date: 9826 711.. nonce: bQ-IIX 712.. section: Library 713 714Fixed writing non-BMP characters with binary format in plistlib. 715 716.. 717 718.. bpo: 28322 719.. date: 9825 720.. nonce: l9hzap 721.. section: Library 722 723Fixed possible crashes when unpickle itertools objects from incorrect pickle 724data. Based on patch by John Leitch. 725 726.. 727 728.. bpo: 0 729.. date: 9824 730.. nonce: 81jNns 731.. section: Library 732 733Fix possible integer overflows and crashes in the mmap module with unusual 734usage patterns. 735 736.. 737 738.. bpo: 1703178 739.. date: 9823 740.. nonce: meb49K 741.. section: Library 742 743Fix the ability to pass the --link-objects option to the distutils build_ext 744command. 745 746.. 747 748.. bpo: 28253 749.. date: 9822 750.. nonce: aLfmhe 751.. section: Library 752 753Fixed calendar functions for extreme months: 0001-01 and 9999-12. 754Methods itermonthdays() and itermonthdays2() are reimplemented so that they 755don't call itermonthdates() which can cause datetime.date under/overflow. 756 757.. 758 759.. bpo: 28275 760.. date: 9821 761.. nonce: EhWIsz 762.. section: Library 763 764Fixed possible use after free in the decompress() methods of the 765LZMADecompressor and BZ2Decompressor classes. Original patch by John Leitch. 766 767.. 768 769.. bpo: 27897 770.. date: 9820 771.. nonce: I0Ppmx 772.. section: Library 773 774Fixed possible crash in sqlite3.Connection.create_collation() if pass 775invalid string-like object as a name. Patch by Xiang Zhang. 776 777.. 778 779.. bpo: 18893 780.. date: 9819 781.. nonce: osiX5c 782.. section: Library 783 784Fix invalid exception handling in Lib/ctypes/macholib/dyld.py. Patch by 785Madison May. 786 787.. 788 789.. bpo: 27611 790.. date: 9818 791.. nonce: qL-UVQ 792.. section: Library 793 794Fixed support of default root window in the tkinter.tix module. 795 796.. 797 798.. bpo: 27348 799.. date: 9817 800.. nonce: tDx7Vw 801.. section: Library 802 803In the traceback module, restore the formatting of exception messages like 804"Exception: None". This fixes a regression introduced in 3.5a2. 805 806.. 807 808.. bpo: 25651 809.. date: 9816 810.. nonce: 3UhyPo 811.. section: Library 812 813Allow falsy values to be used for msg parameter of subTest(). 814 815.. 816 817.. bpo: 27932 818.. date: 9815 819.. nonce: mtgl-6 820.. section: Library 821 822Prevent memory leak in win32_ver(). 823 824.. 825 826.. bpo: 0 827.. date: 9814 828.. nonce: iPpjqX 829.. section: Library 830 831Fix UnboundLocalError in socket._sendfile_use_sendfile. 832 833.. 834 835.. bpo: 28075 836.. date: 9813 837.. nonce: aLiUs9 838.. section: Library 839 840Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat(). Patch 841by Eryk Sun. 842 843.. 844 845.. bpo: 25270 846.. date: 9812 847.. nonce: jrZruM 848.. section: Library 849 850Prevent codecs.escape_encode() from raising SystemError when an empty 851bytestring is passed. 852 853.. 854 855.. bpo: 28181 856.. date: 9811 857.. nonce: NGc4Yv 858.. section: Library 859 860Get antigravity over HTTPS. Patch by Kaartic Sivaraam. 861 862.. 863 864.. bpo: 25895 865.. date: 9810 866.. nonce: j92qoQ 867.. section: Library 868 869Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by Gergely Imreh 870and Markus Holtermann. 871 872.. 873 874.. bpo: 27599 875.. date: 9809 876.. nonce: itvm8T 877.. section: Library 878 879Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp(). 880 881.. 882 883.. bpo: 19003 884.. date: 9808 885.. nonce: UUcK_F 886.. section: Library 887 888m email.generator now replaces only ``\r`` and/or ``\n`` line endings, per 889the RFC, instead of all unicode line endings. 890 891.. 892 893.. bpo: 28019 894.. date: 9807 895.. nonce: KUhBaS 896.. section: Library 897 898itertools.count() no longer rounds non-integer step in range between 1.0 and 8992.0 to 1. 900 901.. 902 903.. bpo: 25969 904.. date: 9806 905.. nonce: qSPkl- 906.. section: Library 907 908Update the lib2to3 grammar to handle the unpacking generalizations added in 9093.5. 910 911.. 912 913.. bpo: 14977 914.. date: 9805 915.. nonce: 4MvALg 916.. section: Library 917 918mailcap now respects the order of the lines in the mailcap files ("first 919match"), as required by RFC 1542. Patch by Michael Lazar. 920 921.. 922 923.. bpo: 24594 924.. date: 9804 925.. nonce: 9CnFVS 926.. section: Library 927 928Validates persist parameter when opening MSI database 929 930.. 931 932.. bpo: 17582 933.. date: 9803 934.. nonce: MXEHxQ 935.. section: Library 936 937xml.etree.ElementTree nows preserves whitespaces in attributes (Patch by 938Duane Griffin. Reviewed and approved by Stefan Behnel.) 939 940.. 941 942.. bpo: 28047 943.. date: 9802 944.. nonce: pDu3Fm 945.. section: Library 946 947Fixed calculation of line length used for the base64 CTE in the new email 948policies. 949 950.. 951 952.. bpo: 27445 953.. date: 9801 954.. nonce: wOG0C0 955.. section: Library 956 957Don't pass str(_charset) to MIMEText.set_payload(). Patch by Claude Paroz. 958 959.. 960 961.. bpo: 22450 962.. date: 9800 963.. nonce: T3Sn_J 964.. section: Library 965 966urllib now includes an ``Accept: */*`` header among the default headers. 967This makes the results of REST API requests more consistent and predictable 968especially when proxy servers are involved. 969 970.. 971 972.. bpo: 0 973.. date: 9799 974.. nonce: PVZStR 975.. section: Library 976 977lib2to3.pgen3.driver.load_grammar() now creates a stable cache file between 978runs given the same Grammar.txt input regardless of the hash randomization 979setting. 980 981.. 982 983.. bpo: 27570 984.. date: 9798 985.. nonce: pU0Zie 986.. section: Library 987 988Avoid zero-length memcpy() etc calls with null source pointers in the 989"ctypes" and "array" modules. 990 991.. 992 993.. bpo: 22233 994.. date: 9797 995.. nonce: uXSN0R 996.. section: Library 997 998Break email header lines *only* on the RFC specified CR and LF characters, 999not on arbitrary unicode line breaks. This also fixes a bug in HTTP header 1000parsing. 1001 1002.. 1003 1004.. bpo: 27988 1005.. date: 9796 1006.. nonce: VfMzZH 1007.. section: Library 1008 1009Fix email iter_attachments incorrect mutation of payload list. 1010 1011.. 1012 1013.. bpo: 27691 1014.. date: 9795 1015.. nonce: TMYF5_ 1016.. section: Library 1017 1018Fix ssl module's parsing of GEN_RID subject alternative name fields in X.509 1019certs. 1020 1021.. 1022 1023.. bpo: 27850 1024.. date: 9794 1025.. nonce: kIVQ0m 1026.. section: Library 1027 1028Remove 3DES from ssl module's default cipher list to counter measure sweet32 1029attack (CVE-2016-2183). 1030 1031.. 1032 1033.. bpo: 27766 1034.. date: 9793 1035.. nonce: WI70Tc 1036.. section: Library 1037 1038Add ChaCha20 Poly1305 to ssl module's default cipher list. (Required OpenSSL 10391.1.0 or LibreSSL). 1040 1041.. 1042 1043.. bpo: 26470 1044.. date: 9792 1045.. nonce: QGu_wo 1046.. section: Library 1047 1048Port ssl and hashlib module to OpenSSL 1.1.0. 1049 1050.. 1051 1052.. bpo: 0 1053.. date: 9791 1054.. nonce: 6TjEgz 1055.. section: Library 1056 1057Remove support for passing a file descriptor to os.access. It never worked 1058but previously didn't raise. 1059 1060.. 1061 1062.. bpo: 12885 1063.. date: 9790 1064.. nonce: r-IV1g 1065.. section: Library 1066 1067Fix error when distutils encounters symlink. 1068 1069.. 1070 1071.. bpo: 27881 1072.. date: 9789 1073.. nonce: fkETd9 1074.. section: Library 1075 1076Fixed possible bugs when setting sqlite3.Connection.isolation_level. Based 1077on patch by Xiang Zhang. 1078 1079.. 1080 1081.. bpo: 27861 1082.. date: 9788 1083.. nonce: DBYuo9 1084.. section: Library 1085 1086Fixed a crash in sqlite3.Connection.cursor() when a factory creates not a 1087cursor. Patch by Xiang Zhang. 1088 1089.. 1090 1091.. bpo: 19884 1092.. date: 9787 1093.. nonce: MO8AWH 1094.. section: Library 1095 1096Avoid spurious output on OS X with Gnu Readline. 1097 1098.. 1099 1100.. bpo: 27706 1101.. date: 9786 1102.. nonce: ZY67yu 1103.. section: Library 1104 1105Restore deterministic behavior of random.Random().seed() for string seeds 1106using seeding version 1. Allows sequences of calls to random() to exactly 1107match those obtained in Python 2. Patch by Nofar Schnider. 1108 1109.. 1110 1111.. bpo: 10513 1112.. date: 9785 1113.. nonce: tQIQD_ 1114.. section: Library 1115 1116Fix a regression in Connection.commit(). Statements should not be reset 1117after a commit. 1118 1119.. 1120 1121.. bpo: 0 1122.. date: 9784 1123.. nonce: cYraeH 1124.. section: Library 1125 1126A new version of typing.py from https://github.com/python/typing: 1127Collection (only for 3.6) (Issue #27598). Add FrozenSet to __all__ 1128(upstream #261). Fix crash in _get_type_vars() (upstream #259). Remove the 1129dict constraint in ForwardRef._eval_type (upstream #252). 1130 1131.. 1132 1133.. bpo: 27539 1134.. date: 9783 1135.. nonce: S4L1cq 1136.. section: Library 1137 1138Fix unnormalised ``Fraction.__pow__`` result in the case of negative 1139exponent and negative base. 1140 1141.. 1142 1143.. bpo: 21718 1144.. date: 9782 1145.. nonce: FUJd-7 1146.. section: Library 1147 1148cursor.description is now available for queries using CTEs. 1149 1150.. 1151 1152.. bpo: 2466 1153.. date: 9781 1154.. nonce: VRNlkg 1155.. section: Library 1156 1157posixpath.ismount now correctly recognizes mount points which the user does 1158not have permission to access. 1159 1160.. 1161 1162.. bpo: 27773 1163.. date: 9780 1164.. nonce: hMSSeX 1165.. section: Library 1166 1167Correct some memory management errors server_hostname in _ssl.wrap_socket(). 1168 1169.. 1170 1171.. bpo: 26750 1172.. date: 9779 1173.. nonce: rv76vt 1174.. section: Library 1175 1176unittest.mock.create_autospec() now works properly for subclasses of 1177property() and other data descriptors. 1178 1179.. 1180 1181.. bpo: 0 1182.. date: 9778 1183.. nonce: Ny9oPv 1184.. section: Library 1185 1186In the curses module, raise an error if window.getstr() or window.instr() is 1187passed a negative value. 1188 1189.. 1190 1191.. bpo: 27783 1192.. date: 9777 1193.. nonce: cR1jXH 1194.. section: Library 1195 1196Fix possible usage of uninitialized memory in operator.methodcaller. 1197 1198.. 1199 1200.. bpo: 27774 1201.. date: 9776 1202.. nonce: FDcik1 1203.. section: Library 1204 1205Fix possible Py_DECREF on unowned object in _sre. 1206 1207.. 1208 1209.. bpo: 27760 1210.. date: 9775 1211.. nonce: gxMjp4 1212.. section: Library 1213 1214Fix possible integer overflow in binascii.b2a_qp. 1215 1216.. 1217 1218.. bpo: 27758 1219.. date: 9774 1220.. nonce: 0NRV03 1221.. section: Library 1222 1223Fix possible integer overflow in the _csv module for large record lengths. 1224 1225.. 1226 1227.. bpo: 27568 1228.. date: 9773 1229.. nonce: OnuO9s 1230.. section: Library 1231 1232Prevent HTTPoxy attack (CVE-2016-1000110). Ignore the HTTP_PROXY variable 1233when REQUEST_METHOD environment is set, which indicates that the script is 1234in CGI mode. 1235 1236.. 1237 1238.. bpo: 27656 1239.. date: 9772 1240.. nonce: joTscM 1241.. section: Library 1242 1243Do not assume sched.h defines any SCHED_* constants. 1244 1245.. 1246 1247.. bpo: 27130 1248.. date: 9771 1249.. nonce: SUxwXZ 1250.. section: Library 1251 1252In the "zlib" module, fix handling of large buffers (typically 4 GiB) when 1253compressing and decompressing. Previously, inputs were limited to 4 GiB, 1254and compression and decompression operations did not properly handle results 1255of 4 GiB. 1256 1257.. 1258 1259.. bpo: 27533 1260.. date: 9770 1261.. nonce: iDmKzV 1262.. section: Library 1263 1264Release GIL in nt._isdir 1265 1266.. 1267 1268.. bpo: 17711 1269.. date: 9769 1270.. nonce: 47AILJ 1271.. section: Library 1272 1273Fixed unpickling by the persistent ID with protocol 0. Original patch by 1274Alexandre Vassalotti. 1275 1276.. 1277 1278.. bpo: 27522 1279.. date: 9768 1280.. nonce: 8vVz_t 1281.. section: Library 1282 1283Avoid an unintentional reference cycle in email.feedparser. 1284 1285.. 1286 1287.. bpo: 26844 1288.. date: 9767 1289.. nonce: I0wdnY 1290.. section: Library 1291 1292Fix error message for imp.find_module() to refer to 'path' instead of 1293'name'. Patch by Lev Maximov. 1294 1295.. 1296 1297.. bpo: 23804 1298.. date: 9766 1299.. nonce: ipFvxc 1300.. section: Library 1301 1302Fix SSL zero-length recv() calls to not block and not raise an error about 1303unclean EOF. 1304 1305.. 1306 1307.. bpo: 27466 1308.. date: 9765 1309.. nonce: C_3a8E 1310.. section: Library 1311 1312Change time format returned by http.cookie.time2netscape, confirming the 1313netscape cookie format and making it consistent with documentation. 1314 1315.. 1316 1317.. bpo: 26664 1318.. date: 9764 1319.. nonce: OzsSzf 1320.. section: Library 1321 1322Fix activate.fish by removing mis-use of ``$``. 1323 1324.. 1325 1326.. bpo: 22115 1327.. date: 9763 1328.. nonce: apoFQ9 1329.. section: Library 1330 1331Fixed tracing Tkinter variables: trace_vdelete() with wrong mode no longer 1332break tracing, trace_vinfo() now always returns a list of pairs of strings, 1333tracing in the "u" mode now works. 1334 1335.. 1336 1337.. bpo: 0 1338.. date: 9762 1339.. nonce: oZOeFE 1340.. section: Library 1341 1342Fix a scoping issue in importlib.util.LazyLoader which triggered an 1343UnboundLocalError when lazy-loading a module that was already put into 1344sys.modules. 1345 1346.. 1347 1348.. bpo: 27079 1349.. date: 9761 1350.. nonce: c7d0Ym 1351.. section: Library 1352 1353Fixed curses.ascii functions isblank(), iscntrl() and ispunct(). 1354 1355.. 1356 1357.. bpo: 26754 1358.. date: 9760 1359.. nonce: J3n0QW 1360.. section: Library 1361 1362Some functions (compile() etc) accepted a filename argument encoded as an 1363iterable of integers. Now only strings and byte-like objects are accepted. 1364 1365.. 1366 1367.. bpo: 27048 1368.. date: 9759 1369.. nonce: EVe-Bk 1370.. section: Library 1371 1372Prevents distutils failing on Windows when environment variables contain 1373non-ASCII characters 1374 1375.. 1376 1377.. bpo: 27330 1378.. date: 9758 1379.. nonce: GJaFCV 1380.. section: Library 1381 1382Fixed possible leaks in the ctypes module. 1383 1384.. 1385 1386.. bpo: 27238 1387.. date: 9757 1388.. nonce: Q6v6Qv 1389.. section: Library 1390 1391Got rid of bare excepts in the turtle module. Original patch by Jelle 1392Zijlstra. 1393 1394.. 1395 1396.. bpo: 27122 1397.. date: 9756 1398.. nonce: 06t7zN 1399.. section: Library 1400 1401When an exception is raised within the context being managed by a 1402contextlib.ExitStack() and one of the exit stack generators catches and 1403raises it in a chain, do not re-raise the original exception when exiting, 1404let the new chained one through. This avoids the :pep:`479` bug described in 1405issue25782. 1406 1407.. 1408 1409.. bpo: 27278 1410.. date: 9755 1411.. nonce: y_HkGw 1412.. original section: Library 1413.. section: Security 1414 1415Fix os.urandom() implementation using getrandom() on Linux. Truncate size 1416to INT_MAX and loop until we collected enough random bytes, instead of 1417casting a directly Py_ssize_t to int. 1418 1419.. 1420 1421.. bpo: 26386 1422.. date: 9754 1423.. nonce: 9L3Ut4 1424.. section: Library 1425 1426Fixed ttk.TreeView selection operations with item id's containing spaces. 1427 1428.. 1429 1430.. bpo: 22636 1431.. date: 9753 1432.. nonce: 3fQW_g 1433.. original section: Library 1434.. section: Security 1435 1436Avoid shell injection problems with ctypes.util.find_library(). 1437 1438.. 1439 1440.. bpo: 16182 1441.. date: 9752 1442.. nonce: RgFXyr 1443.. section: Library 1444 1445Fix various functions in the "readline" module to use the locale encoding, 1446and fix get_begidx() and get_endidx() to return code point indexes. 1447 1448.. 1449 1450.. bpo: 27392 1451.. date: 9751 1452.. nonce: obfni7 1453.. section: Library 1454 1455Add loop.connect_accepted_socket(). Patch by Jim Fulton. 1456 1457.. 1458 1459.. bpo: 27930 1460.. date: 9750 1461.. nonce: BkOfSi 1462.. section: Library 1463 1464Improved behaviour of logging.handlers.QueueListener. Thanks to Paulo 1465Andrade and Petr Viktorin for the analysis and patch. 1466 1467.. 1468 1469.. bpo: 21201 1470.. date: 9749 1471.. nonce: wLCKiA 1472.. section: Library 1473 1474Improves readability of multiprocessing error message. Thanks to Wojciech 1475Walczak for patch. 1476 1477.. 1478 1479.. bpo: 27456 1480.. date: 9748 1481.. nonce: lI_IE7 1482.. section: Library 1483 1484asyncio: Set TCP_NODELAY by default. 1485 1486.. 1487 1488.. bpo: 27906 1489.. date: 9747 1490.. nonce: TBBXrv 1491.. section: Library 1492 1493Fix socket accept exhaustion during high TCP traffic. Patch by Kevin Conway. 1494 1495.. 1496 1497.. bpo: 28174 1498.. date: 9746 1499.. nonce: CV1UdI 1500.. section: Library 1501 1502Handle when SO_REUSEPORT isn't properly supported. Patch by Seth Michael 1503Larson. 1504 1505.. 1506 1507.. bpo: 26654 1508.. date: 9745 1509.. nonce: XtzTE9 1510.. section: Library 1511 1512Inspect functools.partial in asyncio.Handle.__repr__. Patch by iceboy. 1513 1514.. 1515 1516.. bpo: 26909 1517.. date: 9744 1518.. nonce: ASiakT 1519.. section: Library 1520 1521Fix slow pipes IO in asyncio. Patch by INADA Naoki. 1522 1523.. 1524 1525.. bpo: 28176 1526.. date: 9743 1527.. nonce: sU8R6L 1528.. section: Library 1529 1530Fix callbacks race in asyncio.SelectorLoop.sock_connect. 1531 1532.. 1533 1534.. bpo: 27759 1535.. date: 9742 1536.. nonce: qpMDGq 1537.. section: Library 1538 1539Fix selectors incorrectly retain invalid file descriptors. Patch by Mark 1540Williams. 1541 1542.. 1543 1544.. bpo: 28368 1545.. date: 9741 1546.. nonce: n594X4 1547.. section: Library 1548 1549Refuse monitoring processes if the child watcher has no loop attached. Patch 1550by Vincent Michel. 1551 1552.. 1553 1554.. bpo: 28369 1555.. date: 9740 1556.. nonce: 8DTANe 1557.. section: Library 1558 1559Raise RuntimeError when transport's FD is used with add_reader, add_writer, 1560etc. 1561 1562.. 1563 1564.. bpo: 28370 1565.. date: 9739 1566.. nonce: 18jBuZ 1567.. section: Library 1568 1569Speedup asyncio.StreamReader.readexactly. Patch by Коренберг Марк. 1570 1571.. 1572 1573.. bpo: 28371 1574.. date: 9738 1575.. nonce: U9Zqdk 1576.. section: Library 1577 1578Deprecate passing asyncio.Handles to run_in_executor. 1579 1580.. 1581 1582.. bpo: 28372 1583.. date: 9737 1584.. nonce: njcIPk 1585.. section: Library 1586 1587Fix asyncio to support formatting of non-python coroutines. 1588 1589.. 1590 1591.. bpo: 28399 1592.. date: 9736 1593.. nonce: QKIqRX 1594.. section: Library 1595 1596Remove UNIX socket from FS before binding. Patch by Коренберг Марк. 1597 1598.. 1599 1600.. bpo: 27972 1601.. date: 9735 1602.. nonce: ZK-GFm 1603.. section: Library 1604 1605Prohibit Tasks to await on themselves. 1606 1607.. 1608 1609.. bpo: 26923 1610.. date: 9734 1611.. nonce: 8dh3AV 1612.. section: Library 1613 1614Fix asyncio.Gather to refuse being cancelled once all children are done. 1615Patch by Johannes Ebke. 1616 1617.. 1618 1619.. bpo: 26796 1620.. date: 9733 1621.. nonce: TZyAfJ 1622.. section: Library 1623 1624Don't configure the number of workers for default threadpool executor. 1625Initial patch by Hans Lawrenz. 1626 1627.. 1628 1629.. bpo: 28600 1630.. date: 9732 1631.. nonce: 2ThUQV 1632.. section: Library 1633 1634Optimize loop.call_soon(). 1635 1636.. 1637 1638.. bpo: 28613 1639.. date: 9731 1640.. nonce: sqUPrv 1641.. section: Library 1642 1643Fix get_event_loop() return the current loop if called from 1644coroutines/callbacks. 1645 1646.. 1647 1648.. bpo: 28639 1649.. date: 9730 1650.. nonce: WUPo1o 1651.. section: Library 1652 1653Fix inspect.isawaitable to always return bool Patch by Justin Mayfield. 1654 1655.. 1656 1657.. bpo: 28652 1658.. date: 9729 1659.. nonce: f5M8FG 1660.. section: Library 1661 1662Make loop methods reject socket kinds they do not support. 1663 1664.. 1665 1666.. bpo: 28653 1667.. date: 9728 1668.. nonce: S5bA9i 1669.. section: Library 1670 1671Fix a refleak in functools.lru_cache. 1672 1673.. 1674 1675.. bpo: 28703 1676.. date: 9727 1677.. nonce: CRLTJc 1678.. section: Library 1679 1680Fix asyncio.iscoroutinefunction to handle Mock objects. 1681 1682.. 1683 1684.. bpo: 24142 1685.. date: 9726 1686.. nonce: _BgogI 1687.. section: Library 1688 1689Reading a corrupt config file left the parser in an invalid state. Original 1690patch by Florian Höch. 1691 1692.. 1693 1694.. bpo: 28990 1695.. date: 9725 1696.. nonce: W8tuYZ 1697.. section: Library 1698 1699Fix SSL hanging if connection is closed before handshake completed. (Patch 1700by HoHo-Ho) 1701 1702.. 1703 1704.. bpo: 15308 1705.. date: 9724 1706.. nonce: zZxn8m 1707.. section: IDLE 1708 1709Add 'interrupt execution' (^C) to Shell menu. Patch by Roger Serwy, updated 1710by Bayard Randel. 1711 1712.. 1713 1714.. bpo: 27922 1715.. date: 9723 1716.. nonce: UEtEv9 1717.. section: IDLE 1718 1719Stop IDLE tests from 'flashing' gui widgets on the screen. 1720 1721.. 1722 1723.. bpo: 0 1724.. date: 9722 1725.. nonce: zWZs6o 1726.. section: IDLE 1727 1728Add version to title of IDLE help window. 1729 1730.. 1731 1732.. bpo: 25564 1733.. date: 9721 1734.. nonce: GN0p14 1735.. section: IDLE 1736 1737In section on IDLE -- console differences, mention that using exec means 1738that __builtins__ is defined for each statement. 1739 1740.. 1741 1742.. bpo: 27714 1743.. date: 9720 1744.. nonce: bUEDsI 1745.. section: IDLE 1746 1747text_textview and test_autocomplete now pass when re-run in the same 1748process. This occurs when test_idle fails when run with the -w option but 1749without -jn. Fix warning from test_config. 1750 1751.. 1752 1753.. bpo: 25507 1754.. date: 9719 1755.. nonce: lxf68d 1756.. section: IDLE 1757 1758IDLE no longer runs buggy code because of its tkinter imports. Users must 1759include the same imports required to run directly in Python. 1760 1761.. 1762 1763.. bpo: 27452 1764.. date: 9718 1765.. nonce: RtWnyR 1766.. section: IDLE 1767 1768add line counter and crc to IDLE configHandler test dump. 1769 1770.. 1771 1772.. bpo: 27365 1773.. date: 9717 1774.. nonce: y7ys_A 1775.. section: IDLE 1776 1777Allow non-ascii chars in IDLE NEWS.txt, for contributor names. 1778 1779.. 1780 1781.. bpo: 27245 1782.. date: 9716 1783.. nonce: u9aKO1 1784.. section: IDLE 1785 1786IDLE: Cleanly delete custom themes and key bindings. Previously, when IDLE 1787was started from a console or by import, a cascade of warnings was emitted. 1788Patch by Serhiy Storchaka. 1789 1790.. 1791 1792.. bpo: 28808 1793.. date: 9715 1794.. nonce: A03X6r 1795.. section: C API 1796 1797PyUnicode_CompareWithASCIIString() now never raises exceptions. 1798 1799.. 1800 1801.. bpo: 26754 1802.. date: 9714 1803.. nonce: j2czHF 1804.. section: C API 1805 1806PyUnicode_FSDecoder() accepted a filename argument encoded as an iterable of 1807integers. Now only strings and bytes-like objects are accepted. 1808 1809.. 1810 1811.. bpo: 28513 1812.. date: 9713 1813.. nonce: L3joAz 1814.. section: Documentation 1815 1816Documented command-line interface of zipfile. 1817 1818.. 1819 1820.. bpo: 28950 1821.. date: 9712 1822.. nonce: 9_vY6R 1823.. section: Tests 1824 1825Disallow -j0 to be combined with -T/-l/-M in regrtest command line 1826arguments. 1827 1828.. 1829 1830.. bpo: 28666 1831.. date: 9711 1832.. nonce: RtTk-4 1833.. section: Tests 1834 1835Now test.support.rmtree is able to remove unwritable or unreadable 1836directories. 1837 1838.. 1839 1840.. bpo: 23839 1841.. date: 9710 1842.. nonce: zsT_L9 1843.. section: Tests 1844 1845Various caches now are cleared before running every test file. 1846 1847.. 1848 1849.. bpo: 28409 1850.. date: 9709 1851.. nonce: Q2IlxJ 1852.. section: Tests 1853 1854regrtest: fix the parser of command line arguments. 1855 1856.. 1857 1858.. bpo: 27787 1859.. date: 9708 1860.. nonce: kf0YAt 1861.. section: Tests 1862 1863Call gc.collect() before checking each test for "dangling threads", since 1864the dangling threads are weak references. 1865 1866.. 1867 1868.. bpo: 27369 1869.. date: 9707 1870.. nonce: LG7U2D 1871.. section: Tests 1872 1873In test_pyexpat, avoid testing an error message detail that changed in Expat 18742.2.0. 1875 1876.. 1877 1878.. bpo: 27952 1879.. date: 9706 1880.. nonce: WX9Ufc 1881.. section: Tools/Demos 1882 1883Get Tools/scripts/fixcid.py working with Python 3 and the current "re" 1884module, avoid invalid Python backslash escapes, and fix a bug parsing 1885escaped C quote signs. 1886 1887.. 1888 1889.. bpo: 27332 1890.. date: 9705 1891.. nonce: OuRZp9 1892.. section: Tools/Demos 1893 1894Fixed the type of the first argument of module-level functions generated by 1895Argument Clinic. Patch by Petr Viktorin. 1896 1897.. 1898 1899.. bpo: 27418 1900.. date: 9704 1901.. nonce: W2m_8I 1902.. section: Tools/Demos 1903 1904Fixed Tools/importbench/importbench.py. 1905 1906.. 1907 1908.. bpo: 28251 1909.. date: 9703 1910.. nonce: tR_AFs 1911.. section: Windows 1912 1913Improvements to help manuals on Windows. 1914 1915.. 1916 1917.. bpo: 28110 1918.. date: 9702 1919.. nonce: cnkP5F 1920.. section: Windows 1921 1922launcher.msi has different product codes between 32-bit and 64-bit 1923 1924.. 1925 1926.. bpo: 25144 1927.. date: 9701 1928.. nonce: iUha52 1929.. section: Windows 1930 1931Ensures TargetDir is set before continuing with custom install. 1932 1933.. 1934 1935.. bpo: 27469 1936.. date: 9700 1937.. nonce: 0GwDkX 1938.. section: Windows 1939 1940Adds a shell extension to the launcher so that drag and drop works 1941correctly. 1942 1943.. 1944 1945.. bpo: 27309 1946.. date: 9699 1947.. nonce: 4DPjhF 1948.. section: Windows 1949 1950Enabled proper Windows styles in python[w].exe manifest. 1951 1952.. 1953 1954.. bpo: 29080 1955.. date: 9698 1956.. nonce: b3qLQT 1957.. section: Build 1958 1959Removes hard dependency on hg.exe from PCBuild/build.bat 1960 1961.. 1962 1963.. bpo: 23903 1964.. date: 9697 1965.. nonce: JXJ889 1966.. section: Build 1967 1968Added missed names to PC/python3.def. 1969 1970.. 1971 1972.. bpo: 10656 1973.. date: 9696 1974.. nonce: pR8FFU 1975.. section: Build 1976 1977Fix out-of-tree building on AIX. Patch by Tristan Carel and Michael 1978Haubenwallner. 1979 1980.. 1981 1982.. bpo: 26359 1983.. date: 9695 1984.. nonce: CLz6qy 1985.. section: Build 1986 1987Rename --with-optimiations to --enable-optimizations. 1988 1989.. 1990 1991.. bpo: 28444 1992.. date: 9694 1993.. nonce: zkc9nT 1994.. section: Build 1995 1996Fix missing extensions modules when cross compiling. 1997 1998.. 1999 2000.. bpo: 28248 2001.. date: 9693 2002.. nonce: KY_-en 2003.. section: Build 2004 2005Update Windows build and OS X installers to use OpenSSL 1.0.2j. 2006 2007.. 2008 2009.. bpo: 28258 2010.. date: 9692 2011.. nonce: iKtAHd 2012.. section: Build 2013 2014Fixed build with Estonian locale (python-config and distclean targets in 2015Makefile). Patch by Arfrever Frehtes Taifersar Arahesis. 2016 2017.. 2018 2019.. bpo: 26661 2020.. date: 9691 2021.. nonce: Z_HNbs 2022.. section: Build 2023 2024setup.py now detects system libffi with multiarch wrapper. 2025 2026.. 2027 2028.. bpo: 28066 2029.. date: 9690 2030.. nonce: _3xImV 2031.. section: Build 2032 2033Fix the logic that searches build directories for generated include files 2034when building outside the source tree. 2035 2036.. 2037 2038.. bpo: 15819 2039.. date: 9689 2040.. nonce: QVDr3E 2041.. section: Build 2042 2043Remove redundant include search directory option for building outside the 2044source tree. 2045 2046.. 2047 2048.. bpo: 27566 2049.. date: 9688 2050.. nonce: xDWjEb 2051.. section: Build 2052 2053Fix clean target in freeze makefile (patch by Lisa Roach) 2054 2055.. 2056 2057.. bpo: 27705 2058.. date: 9687 2059.. nonce: 8C2Ms3 2060.. section: Build 2061 2062Update message in validate_ucrtbase.py 2063 2064.. 2065 2066.. bpo: 27983 2067.. date: 9686 2068.. nonce: jL_1n8 2069.. section: Build 2070 2071Cause lack of llvm-profdata tool when using clang as required for PGO 2072linking to be a configure time error rather than make time when 2073--with-optimizations is enabled. Also improve our ability to find the 2074llvm-profdata tool on MacOS and some Linuxes. 2075 2076.. 2077 2078.. bpo: 26307 2079.. date: 9685 2080.. nonce: Puk2rd 2081.. section: Build 2082 2083The profile-opt build now applies PGO to the built-in modules. 2084 2085.. 2086 2087.. bpo: 26359 2088.. date: 9684 2089.. nonce: WXBL-Y 2090.. section: Build 2091 2092Add the --with-optimizations configure flag. 2093 2094.. 2095 2096.. bpo: 27713 2097.. date: 9683 2098.. nonce: _3DgXG 2099.. section: Build 2100 2101Suppress spurious build warnings when updating importlib's bootstrap files. 2102Patch by Xiang Zhang 2103 2104.. 2105 2106.. bpo: 25825 2107.. date: 9682 2108.. nonce: JD8aRp 2109.. section: Build 2110 2111Correct the references to Modules/python.exp and ld_so_aix, which are 2112required on AIX. This updates references to an installation path that was 2113changed in 3.2a4, and undoes changed references to the build tree that were 2114made in 3.5.0a1. 2115 2116.. 2117 2118.. bpo: 27453 2119.. date: 9681 2120.. nonce: Pb5DBi 2121.. section: Build 2122 2123CPP invocation in configure must use CPPFLAGS. Patch by Chi Hsuan Yen. 2124 2125.. 2126 2127.. bpo: 27641 2128.. date: 9680 2129.. nonce: eGzgCk 2130.. section: Build 2131 2132The configure script now inserts comments into the makefile to prevent the 2133pgen and _freeze_importlib executables from being cross-compiled. 2134 2135.. 2136 2137.. bpo: 26662 2138.. date: 9679 2139.. nonce: XkwRxM 2140.. section: Build 2141 2142Set PYTHON_FOR_GEN in configure as the Python program to be used for file 2143generation during the build. 2144 2145.. 2146 2147.. bpo: 10910 2148.. date: 9678 2149.. nonce: ZdRayb 2150.. section: Build 2151 2152Avoid C++ compilation errors on FreeBSD and OS X. Also update FreedBSD 2153version checks for the original ctype UTF-8 workaround. 2154 2155.. 2156 2157.. bpo: 28676 2158.. date: 9677 2159.. nonce: Wxf6Ds 2160.. section: Build 2161 2162Prevent missing 'getentropy' declaration warning on macOS. Patch by Gareth 2163Rees. 2164