1.. bpo: 27066 2.. date: 9673 3.. nonce: SNExZi 4.. release date: 2016-06-12 5.. section: Core and Builtins 6 7Fixed SystemError if a custom opener (for open()) returns a negative number 8without setting an exception. 9 10.. 11 12.. bpo: 20041 13.. date: 9672 14.. nonce: TypyGp 15.. section: Core and Builtins 16 17Fixed TypeError when frame.f_trace is set to None. Patch by Xavier de Gaye. 18 19.. 20 21.. bpo: 26168 22.. date: 9671 23.. nonce: -nPBL6 24.. section: Core and Builtins 25 26Fixed possible refleaks in failing Py_BuildValue() with the "N" format unit. 27 28.. 29 30.. bpo: 26991 31.. date: 9670 32.. nonce: yWGNhz 33.. section: Core and Builtins 34 35Fix possible refleak when creating a function with annotations. 36 37.. 38 39.. bpo: 27039 40.. date: 9669 41.. nonce: Zj7tV7 42.. section: Core and Builtins 43 44Fixed bytearray.remove() for values greater than 127. Patch by Joe Jevnik. 45 46.. 47 48.. bpo: 23640 49.. date: 9668 50.. nonce: kvNC4c 51.. section: Core and Builtins 52 53int.from_bytes() no longer bypasses constructors for subclasses. 54 55.. 56 57.. bpo: 26811 58.. date: 9667 59.. nonce: oNzUWt 60.. section: Core and Builtins 61 62gc.get_objects() no longer contains a broken tuple with NULL pointer. 63 64.. 65 66.. bpo: 20120 67.. date: 9666 68.. nonce: c-FZZc 69.. section: Core and Builtins 70 71Use RawConfigParser for .pypirc parsing, removing support for interpolation 72unintentionally added with move to Python 3. Behavior no longer does any 73interpolation in .pypirc files, matching behavior in Python 2.7 and 74Setuptools 19.0. 75 76.. 77 78.. bpo: 26659 79.. date: 9665 80.. nonce: 5PRa83 81.. section: Core and Builtins 82 83Make the builtin slice type support cycle collection. 84 85.. 86 87.. bpo: 26718 88.. date: 9664 89.. nonce: K5PQ8j 90.. section: Core and Builtins 91 92super.__init__ no longer leaks memory if called multiple times. NOTE: A 93direct call of super.__init__ is not endorsed! 94 95.. 96 97.. bpo: 25339 98.. date: 9663 99.. nonce: ZcaC2E 100.. section: Core and Builtins 101 102PYTHONIOENCODING now has priority over locale in setting the error handler 103for stdin and stdout. 104 105.. 106 107.. bpo: 26494 108.. date: 9662 109.. nonce: G6eXIi 110.. section: Core and Builtins 111 112Fixed crash on iterating exhausting iterators. Affected classes are generic 113sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, 114frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator. 115 116.. 117 118.. bpo: 26581 119.. date: 9661 120.. nonce: yNA7nm 121.. section: Core and Builtins 122 123If coding cookie is specified multiple times on a line in Python source code 124file, only the first one is taken to account. 125 126.. 127 128.. bpo: 26464 129.. date: 9660 130.. nonce: 7BreGz 131.. section: Core and Builtins 132 133Fix str.translate() when string is ASCII and first replacements removes 134character, but next replacement uses a non-ASCII character or a string 135longer than 1 character. Regression introduced in Python 3.5.0. 136 137.. 138 139.. bpo: 22836 140.. date: 9659 141.. nonce: cimt1y 142.. section: Core and Builtins 143 144Ensure exception reports from PyErr_Display() and PyErr_WriteUnraisable() 145are sensible even when formatting them produces secondary errors. This 146affects the reports produced by sys.__excepthook__() and when __del__() 147raises an exception. 148 149.. 150 151.. bpo: 26302 152.. date: 9658 153.. nonce: UD9XQt 154.. section: Core and Builtins 155 156Correct behavior to reject comma as a legal character for cookie names. 157 158.. 159 160.. bpo: 4806 161.. date: 9657 162.. nonce: i9m3hj 163.. section: Core and Builtins 164 165Avoid masking the original TypeError exception when using star (``*``) 166unpacking in function calls. Based on patch by Hagen Fürstenau and Daniel 167Urban. 168 169.. 170 171.. bpo: 27138 172.. date: 9656 173.. nonce: ifYEro 174.. section: Core and Builtins 175 176Fix the doc comment for FileFinder.find_spec(). 177 178.. 179 180.. bpo: 26154 181.. date: 9655 182.. nonce: MtnRAH 183.. section: Core and Builtins 184 185Add a new private _PyThreadState_UncheckedGet() function to get the current 186Python thread state, but don't issue a fatal error if it is NULL. This new 187function must be used instead of accessing directly the 188_PyThreadState_Current variable. The variable is no more exposed since 189Python 3.5.1 to hide the exact implementation of atomic C types, to avoid 190compiler issues. 191 192.. 193 194.. bpo: 26194 195.. date: 9654 196.. nonce: j9zand 197.. section: Core and Builtins 198 199Deque.insert() gave odd results for bounded deques that had reached their 200maximum size. Now an IndexError will be raised when attempting to insert 201into a full deque. 202 203.. 204 205.. bpo: 25843 206.. date: 9653 207.. nonce: t2kGug 208.. section: Core and Builtins 209 210When compiling code, don't merge constants if they are equal but have a 211different types. For example, ``f1, f2 = lambda: 1, lambda: 1.0`` is now 212correctly compiled to two different functions: ``f1()`` returns ``1`` 213(``int``) and ``f2()`` returns ``1.0`` (``int``), even if ``1`` and ``1.0`` 214are equal. 215 216.. 217 218.. bpo: 22995 219.. date: 9652 220.. nonce: KYNKvs 221.. section: Core and Builtins 222 223[UPDATE] Comment out the one of the pickleability tests in 224_PyObject_GetState() due to regressions observed in Cython-based projects. 225 226.. 227 228.. bpo: 25961 229.. date: 9651 230.. nonce: Hdjjw0 231.. section: Core and Builtins 232 233Disallowed null characters in the type name. 234 235.. 236 237.. bpo: 25973 238.. date: 9650 239.. nonce: Ud__ZP 240.. section: Core and Builtins 241 242Fix segfault when an invalid nonlocal statement binds a name starting with 243two underscores. 244 245.. 246 247.. bpo: 22995 248.. date: 9649 249.. nonce: Wq0E86 250.. section: Core and Builtins 251 252Instances of extension types with a state that aren't subclasses of list or 253dict and haven't implemented any pickle-related methods (__reduce__, 254__reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no 255longer be pickled. Including memoryview. 256 257.. 258 259.. bpo: 20440 260.. date: 9648 261.. nonce: GCwOfH 262.. section: Core and Builtins 263 264Massive replacing unsafe attribute setting code with special macro 265Py_SETREF. 266 267.. 268 269.. bpo: 25766 270.. date: 9647 271.. nonce: jn93Yu 272.. section: Core and Builtins 273 274Special method __bytes__() now works in str subclasses. 275 276.. 277 278.. bpo: 25421 279.. date: 9646 280.. nonce: c47YEL 281.. section: Core and Builtins 282 283__sizeof__ methods of builtin types now use dynamic basic size. This allows 284sys.getsize() to work correctly with their subclasses with __slots__ 285defined. 286 287.. 288 289.. bpo: 25709 290.. date: 9645 291.. nonce: WwGm2k 292.. section: Core and Builtins 293 294Fixed problem with in-place string concatenation and utf-8 cache. 295 296.. 297 298.. bpo: 27147 299.. date: 9644 300.. nonce: tCCgmH 301.. section: Core and Builtins 302 303Mention :pep:`420` in the importlib docs. 304 305.. 306 307.. bpo: 24097 308.. date: 9643 309.. nonce: Vt4E-i 310.. section: Core and Builtins 311 312Fixed crash in object.__reduce__() if slot name is freed inside __getattr__. 313 314.. 315 316.. bpo: 24731 317.. date: 9642 318.. nonce: h9-hnz 319.. section: Core and Builtins 320 321Fixed crash on converting objects with special methods __bytes__, __trunc__, 322and __float__ returning instances of subclasses of bytes, int, and float to 323subclasses of bytes, int, and float correspondingly. 324 325.. 326 327.. bpo: 26478 328.. date: 9641 329.. nonce: n0dB8e 330.. section: Core and Builtins 331 332Fix semantic bugs when using binary operators with dictionary views and 333tuples. 334 335.. 336 337.. bpo: 26171 338.. date: 9640 339.. nonce: 8SaQEa 340.. section: Core and Builtins 341 342Fix possible integer overflow and heap corruption in zipimporter.get_data(). 343 344.. 345 346.. bpo: 25660 347.. date: 9639 348.. nonce: 93DzBo 349.. section: Core and Builtins 350 351Fix TAB key behaviour in REPL with readline. 352 353.. 354 355.. bpo: 25887 356.. date: 9638 357.. nonce: PtVIX7 358.. section: Core and Builtins 359 360Raise a RuntimeError when a coroutine object is awaited more than once. 361 362.. 363 364.. bpo: 27243 365.. date: 9637 366.. nonce: U36M4E 367.. section: Core and Builtins 368 369Update the __aiter__ protocol: instead of returning an awaitable that 370resolves to an asynchronous iterator, the asynchronous iterator should be 371returned directly. Doing the former will trigger a 372PendingDeprecationWarning. 373 374.. 375 376.. bpo: 26556 377.. date: 9636 378.. nonce: v5j2uL 379.. original section: Library 380.. section: Security 381 382Update expat to 2.1.1, fixes CVE-2015-1283. 383 384.. 385 386.. bpo: 0 387.. date: 9635 388.. nonce: E4ochz 389.. original section: Library 390.. section: Security 391 392Fix TLS stripping vulnerability in smtplib, CVE-2016-0772. Reported by Team 393Oststrom 394 395.. 396 397.. bpo: 21386 398.. date: 9634 399.. nonce: DjV72U 400.. section: Library 401 402Implement missing IPv4Address.is_global property. It was documented since 40307a5610bae9d. Initial patch by Roger Luethi. 404 405.. 406 407.. bpo: 20900 408.. date: 9633 409.. nonce: H5YQPR 410.. section: Library 411 412distutils register command now decodes HTTP responses correctly. Initial 413patch by ingrid. 414 415.. 416 417.. bpo: 0 418.. date: 9632 419.. nonce: iYIeng 420.. section: Library 421 422A new version of typing.py provides several new classes and features: 423@overload outside stubs, Reversible, DefaultDict, Text, ContextManager, 424Type[], NewType(), TYPE_CHECKING, and numerous bug fixes (note that some of 425the new features are not yet implemented in mypy or other static analyzers). 426Also classes for :pep:`492` (Awaitable, AsyncIterable, AsyncIterator) have been 427added (in fact they made it into 3.5.1 but were never mentioned). 428 429.. 430 431.. bpo: 25738 432.. date: 9631 433.. nonce: mED9w4 434.. section: Library 435 436Stop http.server.BaseHTTPRequestHandler.send_error() from sending a message 437body for 205 Reset Content. Also, don't send Content header fields in 438responses that don't have a body. Patch by Susumu Koshiba. 439 440.. 441 442.. bpo: 21313 443.. date: 9630 444.. nonce: W30MBr 445.. section: Library 446 447Fix the "platform" module to tolerate when sys.version contains truncated 448build information. 449 450.. 451 452.. bpo: 26839 453.. date: 9629 454.. nonce: yVvy7R 455.. original section: Library 456.. section: Security 457 458On Linux, :func:`os.urandom` now calls ``getrandom()`` with 459``GRND_NONBLOCK`` to fall back on reading ``/dev/urandom`` if the urandom 460entropy pool is not initialized yet. Patch written by Colm Buckley. 461 462.. 463 464.. bpo: 27164 465.. date: 9628 466.. nonce: 6wmjx2 467.. section: Library 468 469In the zlib module, allow decompressing raw Deflate streams with a 470predefined zdict. Based on patch by Xiang Zhang. 471 472.. 473 474.. bpo: 24291 475.. date: 9627 476.. nonce: Ac6HvL 477.. section: Library 478 479Fix wsgiref.simple_server.WSGIRequestHandler to completely write data to the 480client. Previously it could do partial writes and truncate data. Also, 481wsgiref.handler.ServerHandler can now handle stdout doing partial writes, 482but this is deprecated. 483 484.. 485 486.. bpo: 26809 487.. date: 9626 488.. nonce: ya7JMb 489.. section: Library 490 491Add ``__all__`` to :mod:`string`. Patch by Emanuel Barry. 492 493.. 494 495.. bpo: 26373 496.. date: 9625 497.. nonce: P6qz6o 498.. section: Library 499 500subprocess.Popen.communicate now correctly ignores BrokenPipeError when the 501child process dies before .communicate() is called in more/all 502circumstances. 503 504.. 505 506.. bpo: 21776 507.. date: 9624 508.. nonce: 04eQfa 509.. section: Library 510 511distutils.upload now correctly handles HTTPError. Initial patch by Claudiu 512Popa. 513 514.. 515 516.. bpo: 27114 517.. date: 9623 518.. nonce: bGCuAM 519.. section: Library 520 521Fix SSLContext._load_windows_store_certs fails with PermissionError 522 523.. 524 525.. bpo: 18383 526.. date: 9622 527.. nonce: jr-b0l 528.. section: Library 529 530Avoid creating duplicate filters when using filterwarnings and simplefilter. 531Based on patch by Alex Shkop. 532 533.. 534 535.. bpo: 27057 536.. date: 9621 537.. nonce: YzTA_Q 538.. section: Library 539 540Fix os.set_inheritable() on Android, ioctl() is blocked by SELinux and fails 541with EACCESS. The function now falls back to fcntl(). Patch written by 542Michał Bednarski. 543 544.. 545 546.. bpo: 27014 547.. date: 9620 548.. nonce: ui7Khn 549.. section: Library 550 551Fix infinite recursion using typing.py. Thanks to Kalle Tuure! 552 553.. 554 555.. bpo: 14132 556.. date: 9619 557.. nonce: 5wR9MN 558.. section: Library 559 560Fix urllib.request redirect handling when the target only has a query 561string. Original fix by Ján Janech. 562 563.. 564 565.. bpo: 17214 566.. date: 9618 567.. nonce: lUbZOV 568.. section: Library 569 570The "urllib.request" module now percent-encodes non-ASCII bytes found in 571redirect target URLs. Some servers send Location header fields with 572non-ASCII bytes, but "http.client" requires the request target to be 573ASCII-encodable, otherwise a UnicodeEncodeError is raised. Based on patch by 574Christian Heimes. 575 576.. 577 578.. bpo: 26892 579.. date: 9617 580.. nonce: XIXb0h 581.. section: Library 582 583Honor debuglevel flag in urllib.request.HTTPHandler. Patch contributed by 584Chi Hsuan Yen. 585 586.. 587 588.. bpo: 22274 589.. date: 9616 590.. nonce: 0RHDMN 591.. section: Library 592 593In the subprocess module, allow stderr to be redirected to stdout even when 594stdout is not redirected. Patch by Akira Li. 595 596.. 597 598.. bpo: 26807 599.. date: 9615 600.. nonce: LXSPP6 601.. section: Library 602 603mock_open 'files' no longer error on readline at end of file. Patch from 604Yolanda Robla. 605 606.. 607 608.. bpo: 25745 609.. date: 9614 610.. nonce: -n8acU 611.. section: Library 612 613Fixed leaking a userptr in curses panel destructor. 614 615.. 616 617.. bpo: 26977 618.. date: 9613 619.. nonce: 5G4HtL 620.. section: Library 621 622Removed unnecessary, and ignored, call to sum of squares helper in 623statistics.pvariance. 624 625.. 626 627.. bpo: 26881 628.. date: 9612 629.. nonce: mdiq_L 630.. section: Library 631 632The modulefinder module now supports extended opcode arguments. 633 634.. 635 636.. bpo: 23815 637.. date: 9611 638.. nonce: _krNe8 639.. section: Library 640 641Fixed crashes related to directly created instances of types in _tkinter and 642curses.panel modules. 643 644.. 645 646.. bpo: 17765 647.. date: 9610 648.. nonce: hiSVS1 649.. section: Library 650 651weakref.ref() no longer silently ignores keyword arguments. Patch by Georg 652Brandl. 653 654.. 655 656.. bpo: 26873 657.. date: 9609 658.. nonce: cYXRcH 659.. section: Library 660 661xmlrpc now raises ResponseError on unsupported type tags instead of silently 662return incorrect result. 663 664.. 665 666.. bpo: 26711 667.. date: 9608 668.. nonce: Eu85Qw 669.. section: Library 670 671Fixed the comparison of plistlib.Data with other types. 672 673.. 674 675.. bpo: 24114 676.. date: 9607 677.. nonce: RMRMtM 678.. section: Library 679 680Fix an uninitialized variable in `ctypes.util`. 681The bug only occurs on SunOS when the ctypes implementation searches for the 682`crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos. 683 684.. 685 686.. bpo: 26864 687.. date: 9606 688.. nonce: 1KgGds 689.. section: Library 690 691In urllib.request, change the proxy bypass host checking against no_proxy to 692be case-insensitive, and to not match unrelated host names that happen to 693have a bypassed hostname as a suffix. Patch by Xiang Zhang. 694 695.. 696 697.. bpo: 26634 698.. date: 9605 699.. nonce: FZvsSb 700.. section: Library 701 702recursive_repr() now sets __qualname__ of wrapper. Patch by Xiang Zhang. 703 704.. 705 706.. bpo: 26804 707.. date: 9604 708.. nonce: 9Orp-G 709.. section: Library 710 711urllib.request will prefer lower_case proxy environment variables over 712UPPER_CASE or Mixed_Case ones. Patch contributed by Hans-Peter Jansen. 713 714.. 715 716.. bpo: 26837 717.. date: 9603 718.. nonce: 2FXGsD 719.. section: Library 720 721assertSequenceEqual() now correctly outputs non-stringified differing items 722(like bytes in the -b mode). This affects assertListEqual() and 723assertTupleEqual(). 724 725.. 726 727.. bpo: 26041 728.. date: 9602 729.. nonce: bVem-p 730.. section: Library 731 732Remove "will be removed in Python 3.7" from deprecation messages of 733platform.dist() and platform.linux_distribution(). Patch by Kumaripaba 734Miyurusara Athukorala. 735 736.. 737 738.. bpo: 26822 739.. date: 9601 740.. nonce: rYSL4W 741.. section: Library 742 743itemgetter, attrgetter and methodcaller objects no longer silently ignore 744keyword arguments. 745 746.. 747 748.. bpo: 26733 749.. date: 9600 750.. nonce: YxaJmL 751.. section: Library 752 753Disassembling a class now disassembles class and static methods. Patch by 754Xiang Zhang. 755 756.. 757 758.. bpo: 26801 759.. date: 9599 760.. nonce: TQGY-7 761.. section: Library 762 763Fix error handling in :func:`shutil.get_terminal_size`, catch 764:exc:`AttributeError` instead of :exc:`NameError`. Patch written by Emanuel 765Barry. 766 767.. 768 769.. bpo: 24838 770.. date: 9598 771.. nonce: 3Pfx8T 772.. section: Library 773 774tarfile's ustar and gnu formats now correctly calculate name and link field 775limits for multibyte character encodings like utf-8. 776 777.. 778 779.. bpo: 26657 780.. date: 9597 781.. nonce: C_-XFg 782.. original section: Library 783.. section: Security 784 785Fix directory traversal vulnerability with http.server on Windows. This 786fixes a regression that was introduced in 3.3.4rc1 and 3.4.0rc1. Based on 787patch by Philipp Hagemeister. 788 789.. 790 791.. bpo: 26717 792.. date: 9596 793.. nonce: jngTdu 794.. section: Library 795 796Stop encoding Latin-1-ized WSGI paths with UTF-8. Patch by Anthony Sottile. 797 798.. 799 800.. bpo: 26735 801.. date: 9595 802.. nonce: riSl3b 803.. section: Library 804 805Fix :func:`os.urandom` on Solaris 11.3 and newer when reading more than 8061,024 bytes: call ``getrandom()`` multiple times with a limit of 1024 bytes 807per call. 808 809.. 810 811.. bpo: 16329 812.. date: 9594 813.. nonce: nuXD8W 814.. section: Library 815 816Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'. 817 818.. 819 820.. bpo: 13952 821.. date: 9593 822.. nonce: SOoTVE 823.. section: Library 824 825Add .csv to mimetypes.types_map. Patch by Geoff Wilson. 826 827.. 828 829.. bpo: 26709 830.. date: 9592 831.. nonce: luOPbP 832.. section: Library 833 834Fixed Y2038 problem in loading binary PLists. 835 836.. 837 838.. bpo: 23735 839.. date: 9591 840.. nonce: Y5oQ9r 841.. section: Library 842 843Handle terminal resizing with Readline 6.3+ by installing our own SIGWINCH 844handler. Patch by Eric Price. 845 846.. 847 848.. bpo: 26586 849.. date: 9590 850.. nonce: V5pZNa 851.. section: Library 852 853In http.server, respond with "413 Request header fields too large" if there 854are too many header fields to parse, rather than killing the connection and 855raising an unhandled exception. Patch by Xiang Zhang. 856 857.. 858 859.. bpo: 22854 860.. date: 9589 861.. nonce: K3rMEH 862.. section: Library 863 864Change BufferedReader.writable() and BufferedWriter.readable() to always 865return False. 866 867.. 868 869.. bpo: 25195 870.. date: 9588 871.. nonce: EOc4Po 872.. section: Library 873 874Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset 8753603bae63c13 only works for classes) so we need to implement __ne__ 876ourselves. Patch by Andrew Plummer. 877 878.. 879 880.. bpo: 26644 881.. date: 9587 882.. nonce: 7tt1tk 883.. section: Library 884 885Raise ValueError rather than SystemError when a negative length is passed to 886SSLSocket.recv() or read(). 887 888.. 889 890.. bpo: 23804 891.. date: 9586 892.. nonce: PP63Ff 893.. section: Library 894 895Fix SSL recv(0) and read(0) methods to return zero bytes instead of up to 8961024. 897 898.. 899 900.. bpo: 26616 901.. date: 9585 902.. nonce: v3QwdD 903.. section: Library 904 905Fixed a bug in datetime.astimezone() method. 906 907.. 908 909.. bpo: 21925 910.. date: 9584 911.. nonce: _fr69L 912.. section: Library 913 914:func:`warnings.formatwarning` now catches exceptions on 915``linecache.getline(...)`` to be able to log :exc:`ResourceWarning` emitted 916late during the Python shutdown process. 917 918.. 919 920.. bpo: 24266 921.. date: 9583 922.. nonce: YZgVyM 923.. section: Library 924 925Ctrl+C during Readline history search now cancels the search mode when 926compiled with Readline 7. 927 928.. 929 930.. bpo: 26560 931.. date: 9582 932.. nonce: A4WXNz 933.. section: Library 934 935Avoid potential ValueError in BaseHandler.start_response. Initial patch by 936Peter Inglesby. 937 938.. 939 940.. bpo: 26313 941.. date: 9581 942.. nonce: LjZAjy 943.. original section: Library 944.. section: Security 945 946ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch 947by Baji. 948 949.. 950 951.. bpo: 26569 952.. date: 9580 953.. nonce: EX8vF1 954.. section: Library 955 956Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex` to support 957importing packages. 958 959.. 960 961.. bpo: 26499 962.. date: 9579 963.. nonce: NP08PI 964.. section: Library 965 966Account for remaining Content-Length in HTTPResponse.readline() and read1(). 967Based on patch by Silent Ghost. Also document that HTTPResponse now supports 968these methods. 969 970.. 971 972.. bpo: 25320 973.. date: 9578 974.. nonce: V96LIy 975.. section: Library 976 977Handle sockets in directories unittest discovery is scanning. Patch from 978Victor van den Elzen. 979 980.. 981 982.. bpo: 16181 983.. date: 9577 984.. nonce: P7lLvo 985.. section: Library 986 987cookiejar.http2time() now returns None if year is higher than 988datetime.MAXYEAR. 989 990.. 991 992.. bpo: 26513 993.. date: 9576 994.. nonce: HoPepy 995.. section: Library 996 997Fixes platform module detection of Windows Server 998 999.. 1000 1001.. bpo: 23718 1002.. date: 9575 1003.. nonce: AMPC0o 1004.. section: Library 1005 1006Fixed parsing time in week 0 before Jan 1. Original patch by Tamás Bence 1007Gedai. 1008 1009.. 1010 1011.. bpo: 20589 1012.. date: 9574 1013.. nonce: NsQ_I1 1014.. section: Library 1015 1016Invoking Path.owner() and Path.group() on Windows now raise 1017NotImplementedError instead of ImportError. 1018 1019.. 1020 1021.. bpo: 26177 1022.. date: 9573 1023.. nonce: HlSWer 1024.. section: Library 1025 1026Fixed the keys() method for Canvas and Scrollbar widgets. 1027 1028.. 1029 1030.. bpo: 15068 1031.. date: 9572 1032.. nonce: bcHtiw 1033.. section: Library 1034 1035Got rid of excessive buffering in the fileinput module. The bufsize 1036parameter is no longer used. 1037 1038.. 1039 1040.. bpo: 2202 1041.. date: 9571 1042.. nonce: dk9sd0 1043.. section: Library 1044 1045Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls. 1046Initial patch by Mathieu Dupuy. 1047 1048.. 1049 1050.. bpo: 25718 1051.. date: 9570 1052.. nonce: 4EjZyv 1053.. section: Library 1054 1055Fixed pickling and copying the accumulate() iterator with total is None. 1056 1057.. 1058 1059.. bpo: 26475 1060.. date: 9569 1061.. nonce: JXVccY 1062.. section: Library 1063 1064Fixed debugging output for regular expressions with the (?x) flag. 1065 1066.. 1067 1068.. bpo: 26457 1069.. date: 9568 1070.. nonce: Xe6Clh 1071.. section: Library 1072 1073Fixed the subnets() methods in IP network classes for the case when 1074resulting prefix length is equal to maximal prefix length. Based on patch by 1075Xiang Zhang. 1076 1077.. 1078 1079.. bpo: 26385 1080.. date: 9567 1081.. nonce: 50bDXm 1082.. section: Library 1083 1084Remove the file if the internal open() call in NamedTemporaryFile() fails. 1085Patch by Silent Ghost. 1086 1087.. 1088 1089.. bpo: 26402 1090.. date: 9566 1091.. nonce: k7DVuU 1092.. section: Library 1093 1094Fix XML-RPC client to retry when the server shuts down a persistent 1095connection. This was a regression related to the new 1096http.client.RemoteDisconnected exception in 3.5.0a4. 1097 1098.. 1099 1100.. bpo: 25913 1101.. date: 9565 1102.. nonce: 5flb95 1103.. section: Library 1104 1105Leading ``<~`` is optional now in base64.a85decode() with adobe=True. Patch 1106by Swati Jaiswal. 1107 1108.. 1109 1110.. bpo: 26186 1111.. date: 9564 1112.. nonce: R9rfiL 1113.. section: Library 1114 1115Remove an invalid type check in importlib.util.LazyLoader. 1116 1117.. 1118 1119.. bpo: 26367 1120.. date: 9563 1121.. nonce: ckpNeU 1122.. section: Library 1123 1124importlib.__import__() raises SystemError like builtins.__import__() when 1125``level`` is specified but without an accompanying package specified. 1126 1127.. 1128 1129.. bpo: 26309 1130.. date: 9562 1131.. nonce: ubEeiz 1132.. section: Library 1133 1134In the "socketserver" module, shut down the request (closing the connected 1135socket) when verify_request() returns false. Patch by Aviv Palivoda. 1136 1137.. 1138 1139.. bpo: 25939 1140.. date: 9561 1141.. nonce: X49Fqd 1142.. original section: Library 1143.. section: Security 1144 1145On Windows open the cert store readonly in ssl.enum_certificates. 1146 1147.. 1148 1149.. bpo: 25995 1150.. date: 9560 1151.. nonce: NfcimP 1152.. section: Library 1153 1154os.walk() no longer uses FDs proportional to the tree depth. 1155 1156.. 1157 1158.. bpo: 26117 1159.. date: 9559 1160.. nonce: ne6p11 1161.. section: Library 1162 1163The os.scandir() iterator now closes file descriptor not only when the 1164iteration is finished, but when it was failed with error. 1165 1166.. 1167 1168.. bpo: 25911 1169.. date: 9558 1170.. nonce: d4Zadh 1171.. section: Library 1172 1173Restored support of bytes paths in os.walk() on Windows. 1174 1175.. 1176 1177.. bpo: 26045 1178.. date: 9557 1179.. nonce: WmzUrX 1180.. section: Library 1181 1182Add UTF-8 suggestion to error message when posting a non-Latin-1 string with 1183http.client. 1184 1185.. 1186 1187.. bpo: 12923 1188.. date: 9556 1189.. nonce: HPAu-B 1190.. section: Library 1191 1192Reset FancyURLopener's redirect counter even if there is an exception. 1193Based on patches by Brian Brazil and Daniel Rocco. 1194 1195.. 1196 1197.. bpo: 25945 1198.. date: 9555 1199.. nonce: guNgNM 1200.. section: Library 1201 1202Fixed a crash when unpickle the functools.partial object with wrong state. 1203Fixed a leak in failed functools.partial constructor. "args" and "keywords" 1204attributes of functools.partial have now always types tuple and dict 1205correspondingly. 1206 1207.. 1208 1209.. bpo: 26202 1210.. date: 9554 1211.. nonce: LPIXLg 1212.. section: Library 1213 1214copy.deepcopy() now correctly copies range() objects with non-atomic 1215attributes. 1216 1217.. 1218 1219.. bpo: 23076 1220.. date: 9553 1221.. nonce: 8rphoP 1222.. section: Library 1223 1224Path.glob() now raises a ValueError if it's called with an invalid pattern. 1225Patch by Thomas Nyberg. 1226 1227.. 1228 1229.. bpo: 19883 1230.. date: 9552 1231.. nonce: z9TsO6 1232.. section: Library 1233 1234Fixed possible integer overflows in zipimport. 1235 1236.. 1237 1238.. bpo: 26227 1239.. date: 9551 1240.. nonce: Fe6oiB 1241.. section: Library 1242 1243On Windows, getnameinfo(), gethostbyaddr() and gethostbyname_ex() functions 1244of the socket module now decode the hostname from the ANSI code page rather 1245than UTF-8. 1246 1247.. 1248 1249.. bpo: 26147 1250.. date: 9550 1251.. nonce: i-Jc01 1252.. section: Library 1253 1254xmlrpc now works with strings not encodable with used non-UTF-8 encoding. 1255 1256.. 1257 1258.. bpo: 25935 1259.. date: 9549 1260.. nonce: cyni91 1261.. section: Library 1262 1263Garbage collector now breaks reference loops with OrderedDict. 1264 1265.. 1266 1267.. bpo: 16620 1268.. date: 9548 1269.. nonce: rxpn_Y 1270.. section: Library 1271 1272Fixed AttributeError in msilib.Directory.glob(). 1273 1274.. 1275 1276.. bpo: 26013 1277.. date: 9547 1278.. nonce: 93RKNz 1279.. section: Library 1280 1281Added compatibility with broken protocol 2 pickles created in old Python 3 1282versions (3.4.3 and lower). 1283 1284.. 1285 1286.. bpo: 25850 1287.. date: 9546 1288.. nonce: jwFPxj 1289.. section: Library 1290 1291Use cross-compilation by default for 64-bit Windows. 1292 1293.. 1294 1295.. bpo: 17633 1296.. date: 9545 1297.. nonce: 9mpbUO 1298.. section: Library 1299 1300Improve zipimport's support for namespace packages. 1301 1302.. 1303 1304.. bpo: 24705 1305.. date: 9544 1306.. nonce: IZYwjR 1307.. section: Library 1308 1309Fix sysconfig._parse_makefile not expanding ${} vars appearing before $() 1310vars. 1311 1312.. 1313 1314.. bpo: 22138 1315.. date: 9543 1316.. nonce: nRNYkc 1317.. section: Library 1318 1319Fix mock.patch behavior when patching descriptors. Restore original values 1320after patching. Patch contributed by Sean McCully. 1321 1322.. 1323 1324.. bpo: 25672 1325.. date: 9542 1326.. nonce: fw9RJP 1327.. section: Library 1328 1329In the ssl module, enable the SSL_MODE_RELEASE_BUFFERS mode option if it is 1330safe to do so. 1331 1332.. 1333 1334.. bpo: 26012 1335.. date: 9541 1336.. nonce: IFSXNm 1337.. section: Library 1338 1339Don't traverse into symlinks for ``**`` pattern in pathlib.Path.[r]glob(). 1340 1341.. 1342 1343.. bpo: 24120 1344.. date: 9540 1345.. nonce: Yiwa0h 1346.. section: Library 1347 1348Ignore PermissionError when traversing a tree with pathlib.Path.[r]glob(). 1349Patch by Ulrich Petri. 1350 1351.. 1352 1353.. bpo: 25447 1354.. date: 9539 1355.. nonce: -4m4xO 1356.. section: Library 1357 1358fileinput now uses sys.stdin as-is if it does not have a buffer attribute 1359(restores backward compatibility). 1360 1361.. 1362 1363.. bpo: 25447 1364.. date: 9538 1365.. nonce: AtHkWA 1366.. section: Library 1367 1368Copying the lru_cache() wrapper object now always works, independently from 1369the type of the wrapped object (by returning the original object unchanged). 1370 1371.. 1372 1373.. bpo: 24103 1374.. date: 9537 1375.. nonce: WufqrQ 1376.. section: Library 1377 1378Fixed possible use after free in ElementTree.XMLPullParser. 1379 1380.. 1381 1382.. bpo: 25860 1383.. date: 9536 1384.. nonce: 0hActb 1385.. section: Library 1386 1387os.fwalk() no longer skips remaining directories when error occurs. 1388Original patch by Samson Lee. 1389 1390.. 1391 1392.. bpo: 25914 1393.. date: 9535 1394.. nonce: h0V61F 1395.. section: Library 1396 1397Fixed and simplified OrderedDict.__sizeof__. 1398 1399.. 1400 1401.. bpo: 25902 1402.. date: 9534 1403.. nonce: 6t2FmH 1404.. section: Library 1405 1406Fixed various refcount issues in ElementTree iteration. 1407 1408.. 1409 1410.. bpo: 25717 1411.. date: 9533 1412.. nonce: 0_xjaK 1413.. section: Library 1414 1415Restore the previous behaviour of tolerating most fstat() errors when 1416opening files. This was a regression in 3.5a1, and stopped anonymous 1417temporary files from working in special cases. 1418 1419.. 1420 1421.. bpo: 24903 1422.. date: 9532 1423.. nonce: 3LBdzb 1424.. section: Library 1425 1426Fix regression in number of arguments compileall accepts when '-d' is 1427specified. The check on the number of arguments has been dropped completely 1428as it never worked correctly anyway. 1429 1430.. 1431 1432.. bpo: 25764 1433.. date: 9531 1434.. nonce: 7WWG07 1435.. section: Library 1436 1437In the subprocess module, preserve any exception caused by fork() failure 1438when preexec_fn is used. 1439 1440.. 1441 1442.. bpo: 6478 1443.. date: 9530 1444.. nonce: -Bi9Hb 1445.. section: Library 1446 1447_strptime's regexp cache now is reset after changing timezone with 1448time.tzset(). 1449 1450.. 1451 1452.. bpo: 14285 1453.. date: 9529 1454.. nonce: UyG8Hj 1455.. section: Library 1456 1457When executing a package with the "python -m package" option, and package 1458initialization fails, a proper traceback is now reported. The "runpy" 1459module now lets exceptions from package initialization pass back to the 1460caller, rather than raising ImportError. 1461 1462.. 1463 1464.. bpo: 19771 1465.. date: 9528 1466.. nonce: 5NG-bg 1467.. section: Library 1468 1469Also in runpy and the "-m" option, omit the irrelevant message ". . . is a 1470package and cannot be directly executed" if the package could not even be 1471initialized (e.g. due to a bad ``*.pyc`` file). 1472 1473.. 1474 1475.. bpo: 25177 1476.. date: 9527 1477.. nonce: aNR4Ha 1478.. section: Library 1479 1480Fixed problem with the mean of very small and very large numbers. As a side 1481effect, statistics.mean and statistics.variance should be significantly 1482faster. 1483 1484.. 1485 1486.. bpo: 25718 1487.. date: 9526 1488.. nonce: D9mHZF 1489.. section: Library 1490 1491Fixed copying object with state with boolean value is false. 1492 1493.. 1494 1495.. bpo: 10131 1496.. date: 9525 1497.. nonce: a7tptz 1498.. section: Library 1499 1500Fixed deep copying of minidom documents. Based on patch by Marian Ganisin. 1501 1502.. 1503 1504.. bpo: 25725 1505.. date: 9524 1506.. nonce: XIKv3R 1507.. section: Library 1508 1509Fixed a reference leak in pickle.loads() when unpickling invalid data 1510including tuple instructions. 1511 1512.. 1513 1514.. bpo: 25663 1515.. date: 9523 1516.. nonce: Ofwfqa 1517.. section: Library 1518 1519In the Readline completer, avoid listing duplicate global names, and search 1520the global namespace before searching builtins. 1521 1522.. 1523 1524.. bpo: 25688 1525.. date: 9522 1526.. nonce: 8P1HOv 1527.. section: Library 1528 1529Fixed file leak in ElementTree.iterparse() raising an error. 1530 1531.. 1532 1533.. bpo: 23914 1534.. date: 9521 1535.. nonce: 1sEz4J 1536.. section: Library 1537 1538Fixed SystemError raised by unpickler on broken pickle data. 1539 1540.. 1541 1542.. bpo: 25691 1543.. date: 9520 1544.. nonce: ZEaapY 1545.. section: Library 1546 1547Fixed crash on deleting ElementTree.Element attributes. 1548 1549.. 1550 1551.. bpo: 25624 1552.. date: 9519 1553.. nonce: ed-fM0 1554.. section: Library 1555 1556ZipFile now always writes a ZIP_STORED header for directory entries. Patch 1557by Dingyuan Wang. 1558 1559.. 1560 1561.. bpo: 0 1562.. date: 9518 1563.. nonce: rtZyid 1564.. section: Library 1565 1566Skip getaddrinfo if host is already resolved. Patch by A. Jesse Jiryu Davis. 1567 1568.. 1569 1570.. bpo: 26050 1571.. date: 9517 1572.. nonce: sclyvk 1573.. section: Library 1574 1575Add asyncio.StreamReader.readuntil() method. Patch by Марк Коренберг. 1576 1577.. 1578 1579.. bpo: 25924 1580.. date: 9516 1581.. nonce: Uxr2vt 1582.. section: Library 1583 1584Avoid unnecessary serialization of getaddrinfo(3) calls on OS X versions 158510.5 or higher. Original patch by A. Jesse Jiryu Davis. 1586 1587.. 1588 1589.. bpo: 26406 1590.. date: 9515 1591.. nonce: ihvhF4 1592.. section: Library 1593 1594Avoid unnecessary serialization of getaddrinfo(3) calls on current versions 1595of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis. 1596 1597.. 1598 1599.. bpo: 26848 1600.. date: 9514 1601.. nonce: ChBOpQ 1602.. section: Library 1603 1604Fix asyncio/subprocess.communicate() to handle empty input. Patch by Jack 1605O'Connor. 1606 1607.. 1608 1609.. bpo: 27040 1610.. date: 9513 1611.. nonce: UASyCC 1612.. section: Library 1613 1614Add loop.get_exception_handler method 1615 1616.. 1617 1618.. bpo: 27041 1619.. date: 9512 1620.. nonce: p3893U 1621.. section: Library 1622 1623asyncio: Add loop.create_future method 1624 1625.. 1626 1627.. bpo: 27223 1628.. date: 9511 1629.. nonce: PRf4I6 1630.. section: Library 1631 1632asyncio: Fix _read_ready and _write_ready to respect _conn_lost. Patch by 1633Łukasz Langa. 1634 1635.. 1636 1637.. bpo: 22970 1638.. date: 9510 1639.. nonce: WhdhyM 1640.. section: Library 1641 1642asyncio: Fix inconsistency cancelling Condition.wait. Patch by David Coles. 1643 1644.. 1645 1646.. bpo: 5124 1647.. date: 9509 1648.. nonce: 4kwBvM 1649.. section: IDLE 1650 1651Paste with text selected now replaces the selection on X11. This matches how 1652paste works on Windows, Mac, most modern Linux apps, and ttk widgets. 1653Original patch by Serhiy Storchaka. 1654 1655.. 1656 1657.. bpo: 24759 1658.. date: 9508 1659.. nonce: ccmySu 1660.. section: IDLE 1661 1662Make clear in idlelib.idle_test.__init__ that the directory is a private 1663implementation of test.test_idle and tool for maintainers. 1664 1665.. 1666 1667.. bpo: 27196 1668.. date: 9507 1669.. nonce: 3yp8TF 1670.. section: IDLE 1671 1672Stop 'ThemeChanged' warnings when running IDLE tests. These persisted after 1673other warnings were suppressed in #20567. Apply Serhiy Storchaka's 1674update_idletasks solution to four test files. Record this additional advice 1675in idle_test/README.txt 1676 1677.. 1678 1679.. bpo: 20567 1680.. date: 9506 1681.. nonce: hhT32b 1682.. section: IDLE 1683 1684Revise idle_test/README.txt with advice about avoiding tk warning messages 1685from tests. Apply advice to several IDLE tests. 1686 1687.. 1688 1689.. bpo: 27117 1690.. date: 9505 1691.. nonce: YrLPf4 1692.. section: IDLE 1693 1694Make colorizer htest and turtledemo work with dark themes. Move code for 1695configuring text widget colors to a new function. 1696 1697.. 1698 1699.. bpo: 26673 1700.. date: 9504 1701.. nonce: dh0_Ij 1702.. section: IDLE 1703 1704When tk reports font size as 0, change to size 10. Such fonts on Linux 1705prevented the configuration dialog from opening. 1706 1707.. 1708 1709.. bpo: 21939 1710.. date: 9503 1711.. nonce: pWz-OK 1712.. section: IDLE 1713 1714Add test for IDLE's percolator. Original patch by Saimadhav Heblikar. 1715 1716.. 1717 1718.. bpo: 21676 1719.. date: 9502 1720.. nonce: hqy6Qh 1721.. section: IDLE 1722 1723Add test for IDLE's replace dialog. Original patch by Saimadhav Heblikar. 1724 1725.. 1726 1727.. bpo: 18410 1728.. date: 9501 1729.. nonce: DLSPZo 1730.. section: IDLE 1731 1732Add test for IDLE's search dialog. Original patch by Westley Martínez. 1733 1734.. 1735 1736.. bpo: 21703 1737.. date: 9500 1738.. nonce: BAZfDM 1739.. section: IDLE 1740 1741Add test for IDLE's undo delegator. Original patch by Saimadhav Heblikar . 1742 1743.. 1744 1745.. bpo: 27044 1746.. date: 9499 1747.. nonce: 4y7tyM 1748.. section: IDLE 1749 1750Add ConfigDialog.remove_var_callbacks to stop memory leaks. 1751 1752.. 1753 1754.. bpo: 23977 1755.. date: 9498 1756.. nonce: miDjj8 1757.. section: IDLE 1758 1759Add more asserts to test_delegator. 1760 1761.. 1762 1763.. bpo: 20640 1764.. date: 9497 1765.. nonce: PmI-G8 1766.. section: IDLE 1767 1768Add tests for idlelib.configHelpSourceEdit. Patch by Saimadhav Heblikar. 1769 1770.. 1771 1772.. bpo: 0 1773.. date: 9496 1774.. nonce: _YJfG7 1775.. section: IDLE 1776 1777In the 'IDLE-console differences' section of the IDLE doc, clarify how 1778running with IDLE affects sys.modules and the standard streams. 1779 1780.. 1781 1782.. bpo: 25507 1783.. date: 9495 1784.. nonce: i8bNpk 1785.. section: IDLE 1786 1787fix incorrect change in IOBinding that prevented printing. Augment IOBinding 1788htest to include all major IOBinding functions. 1789 1790.. 1791 1792.. bpo: 25905 1793.. date: 9494 1794.. nonce: FzNb3B 1795.. section: IDLE 1796 1797Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION MARK in 1798README.txt and open this and NEWS.txt with 'ascii'. Re-encode CREDITS.txt to 1799utf-8 and open it with 'utf-8'. 1800 1801.. 1802 1803.. bpo: 19489 1804.. date: 9493 1805.. nonce: jvzuO7 1806.. section: Documentation 1807 1808Moved the search box from the sidebar to the header and footer of each page. 1809Patch by Ammar Askar. 1810 1811.. 1812 1813.. bpo: 24136 1814.. date: 9492 1815.. nonce: MUK0zK 1816.. section: Documentation 1817 1818Document the new :pep:`448` unpacking syntax of 3.5. 1819 1820.. 1821 1822.. bpo: 26736 1823.. date: 9491 1824.. nonce: U_Hyqo 1825.. section: Documentation 1826 1827Used HTTPS for external links in the documentation if possible. 1828 1829.. 1830 1831.. bpo: 6953 1832.. date: 9490 1833.. nonce: Zk6rno 1834.. section: Documentation 1835 1836Rework the Readline module documentation to group related functions 1837together, and add more details such as what underlying Readline functions 1838and variables are accessed. 1839 1840.. 1841 1842.. bpo: 23606 1843.. date: 9489 1844.. nonce: 9MhIso 1845.. section: Documentation 1846 1847Adds note to ctypes documentation regarding cdll.msvcrt. 1848 1849.. 1850 1851.. bpo: 25500 1852.. date: 9488 1853.. nonce: AV47eF 1854.. section: Documentation 1855 1856Fix documentation to not claim that __import__ is searched for in the global 1857scope. 1858 1859.. 1860 1861.. bpo: 26014 1862.. date: 9487 1863.. nonce: ptdZ_I 1864.. section: Documentation 1865 1866Update 3.x packaging documentation: * "See also" links to the new docs are 1867now provided in the legacy pages * links to setuptools documentation have 1868been updated 1869 1870.. 1871 1872.. bpo: 21916 1873.. date: 9486 1874.. nonce: muwCyp 1875.. section: Tests 1876 1877Added tests for the turtle module. Patch by ingrid, Gregory Loyse and Jelle 1878Zijlstra. 1879 1880.. 1881 1882.. bpo: 26523 1883.. date: 9485 1884.. nonce: em_Uzt 1885.. section: Tests 1886 1887The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested. 1888 1889.. 1890 1891.. bpo: 26015 1892.. date: 9484 1893.. nonce: p3oWK3 1894.. section: Tests 1895 1896Added new tests for pickling iterators of mutable sequences. 1897 1898.. 1899 1900.. bpo: 26325 1901.. date: 9483 1902.. nonce: KOUc82 1903.. section: Tests 1904 1905Added test.support.check_no_resource_warning() to check that no 1906ResourceWarning is emitted. 1907 1908.. 1909 1910.. bpo: 25940 1911.. date: 9482 1912.. nonce: PgiLVN 1913.. section: Tests 1914 1915Changed test_ssl to use self-signed.pythontest.net. This avoids relying on 1916svn.python.org, which recently changed root certificate. 1917 1918.. 1919 1920.. bpo: 25616 1921.. date: 9481 1922.. nonce: Qr-60p 1923.. section: Tests 1924 1925Tests for OrderedDict are extracted from test_collections into separate file 1926test_ordered_dict. 1927 1928.. 1929 1930.. bpo: 26583 1931.. date: 9480 1932.. nonce: Up7hTl 1933.. section: Tests 1934 1935Skip test_timestamp_overflow in test_import if bytecode files cannot be 1936written. 1937 1938.. 1939 1940.. bpo: 26884 1941.. date: 9479 1942.. nonce: O8-azL 1943.. section: Build 1944 1945Fix linking extension modules for cross builds. Patch by Xavier de Gaye. 1946 1947.. 1948 1949.. bpo: 22359 1950.. date: 9478 1951.. nonce: HDjM4s 1952.. section: Build 1953 1954Disable the rules for running _freeze_importlib and pgen when 1955cross-compiling. The output of these programs is normally saved with the 1956source code anyway, and is still regenerated when doing a native build. 1957Patch by Xavier de Gaye. 1958 1959.. 1960 1961.. bpo: 27229 1962.. date: 9477 1963.. nonce: C2NDch 1964.. section: Build 1965 1966Fix the cross-compiling pgen rule for in-tree builds. Patch by Xavier de 1967Gaye. 1968 1969.. 1970 1971.. bpo: 21668 1972.. date: 9476 1973.. nonce: 4sMAa1 1974.. section: Build 1975 1976Link audioop, _datetime, _ctypes_test modules to libm, except on Mac OS X. 1977Patch written by Xavier de Gaye. 1978 1979.. 1980 1981.. bpo: 25702 1982.. date: 9475 1983.. nonce: ipxyJs 1984.. section: Build 1985 1986A --with-lto configure option has been added that will enable link time 1987optimizations at build time during a make profile-opt. Some compilers and 1988toolchains are known to not produce stable code when using LTO, be sure to 1989test things thoroughly before relying on it. It can provide a few % speed up 1990over profile-opt alone. 1991 1992.. 1993 1994.. bpo: 26624 1995.. date: 9474 1996.. nonce: 4fGrTl 1997.. section: Build 1998 1999Adds validation of ucrtbase[d].dll version with warning for old versions. 2000 2001.. 2002 2003.. bpo: 17603 2004.. date: 9473 2005.. nonce: 102DA- 2006.. section: Build 2007 2008Avoid error about nonexistent fileblocks.o file by using a lower-level check 2009for st_blocks in struct stat. 2010 2011.. 2012 2013.. bpo: 26079 2014.. date: 9472 2015.. nonce: mEzW0O 2016.. section: Build 2017 2018Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern Thiel. 2019 2020.. 2021 2022.. bpo: 26465 2023.. date: 9471 2024.. nonce: _YR608 2025.. section: Build 2026 2027Update Windows builds to use OpenSSL 1.0.2g. 2028 2029.. 2030 2031.. bpo: 24421 2032.. date: 9470 2033.. nonce: 2zY7vM 2034.. section: Build 2035 2036Compile Modules/_math.c once, before building extensions. Previously it 2037could fail to compile properly if the math and cmath builds were concurrent. 2038 2039.. 2040 2041.. bpo: 25348 2042.. date: 9469 2043.. nonce: u6_BaQ 2044.. section: Build 2045 2046Added ``--pgo`` and ``--pgo-job`` arguments to ``PCbuild\build.bat`` for 2047building with Profile-Guided Optimization. The old 2048``PCbuild\build_pgo.bat`` script is now deprecated, and simply calls 2049``PCbuild\build.bat --pgo %*``. 2050 2051.. 2052 2053.. bpo: 25827 2054.. date: 9468 2055.. nonce: yg3DMM 2056.. section: Build 2057 2058Add support for building with ICC to ``configure``, including a new 2059``--with-icc`` flag. 2060 2061.. 2062 2063.. bpo: 25696 2064.. date: 9467 2065.. nonce: 2R_wIv 2066.. section: Build 2067 2068Fix installation of Python on UNIX with make -j9. 2069 2070.. 2071 2072.. bpo: 26930 2073.. date: 9466 2074.. nonce: Sqz2O3 2075.. section: Build 2076 2077Update OS X 10.5+ 32-bit-only installer to build and link with OpenSSL 20781.0.2h. 2079 2080.. 2081 2082.. bpo: 26268 2083.. date: 9465 2084.. nonce: I3-YLh 2085.. section: Build 2086 2087Update Windows builds to use OpenSSL 1.0.2f. 2088 2089.. 2090 2091.. bpo: 25136 2092.. date: 9464 2093.. nonce: Vi-fmO 2094.. section: Build 2095 2096Support Apple Xcode 7's new textual SDK stub libraries. 2097 2098.. 2099 2100.. bpo: 24324 2101.. date: 9463 2102.. nonce: m6DZMx 2103.. section: Build 2104 2105Do not enable unreachable code warnings when using gcc as the option does 2106not work correctly in older versions of gcc and has been silently removed as 2107of gcc-4.5. 2108 2109.. 2110 2111.. bpo: 27053 2112.. date: 9462 2113.. nonce: 1IRbae 2114.. section: Windows 2115 2116Updates make_zip.py to correctly generate library ZIP file. 2117 2118.. 2119 2120.. bpo: 26268 2121.. date: 9461 2122.. nonce: Z-lJEh 2123.. section: Windows 2124 2125Update the prepare_ssl.py script to handle OpenSSL releases that don't 2126include the contents of the include directory (that is, 1.0.2e and later). 2127 2128.. 2129 2130.. bpo: 26071 2131.. date: 9460 2132.. nonce: wLxL2l 2133.. section: Windows 2134 2135bdist_wininst created binaries fail to start and find 32bit Python 2136 2137.. 2138 2139.. bpo: 26073 2140.. date: 9459 2141.. nonce: XwWgHp 2142.. section: Windows 2143 2144Update the list of magic numbers in launcher 2145 2146.. 2147 2148.. bpo: 26065 2149.. date: 9458 2150.. nonce: SkVLJp 2151.. section: Windows 2152 2153Excludes venv from library when generating embeddable distro. 2154 2155.. 2156 2157.. bpo: 26799 2158.. date: 9457 2159.. nonce: gK2VXX 2160.. section: Tools/Demos 2161 2162Fix python-gdb.py: don't get C types once when the Python code is loaded, 2163but get C types on demand. The C types can change if python-gdb.py is loaded 2164before the Python executable. Patch written by Thomas Ilsche. 2165 2166.. 2167 2168.. bpo: 26271 2169.. date: 9456 2170.. nonce: wg-rzr 2171.. section: Tools/Demos 2172 2173Fix the Freeze tool to properly use flags passed through configure. Patch by 2174Daniel Shaulov. 2175 2176.. 2177 2178.. bpo: 26489 2179.. date: 9455 2180.. nonce: rJ_U5S 2181.. section: Tools/Demos 2182 2183Add dictionary unpacking support to Tools/parser/unparse.py. Patch by Guo Ci 2184Teo. 2185 2186.. 2187 2188.. bpo: 26316 2189.. date: 9454 2190.. nonce: QJvVOi 2191.. section: Tools/Demos 2192 2193Fix variable name typo in Argument Clinic. 2194 2195.. 2196 2197.. bpo: 17500 2198.. date: 9453 2199.. nonce: QTZbRV 2200.. section: Windows 2201 2202Remove unused and outdated icons. (See also: 2203https://github.com/python/pythondotorg/issues/945) 2204