1.. bpo: 26556 2.. date: 9636 3.. nonce: v5j2uL 4.. release date: 2016-06-12 5.. original section: Library 6.. section: Security 7 8Update expat to 2.1.1, fixes CVE-2015-1283. 9 10.. 11 12.. bpo: 0 13.. date: 9635 14.. nonce: E4ochz 15.. original section: Library 16.. section: Security 17 18Fix TLS stripping vulnerability in smtplib, CVE-2016-0772. Reported by Team 19Oststrom 20 21.. 22 23.. bpo: 26839 24.. date: 9629 25.. nonce: yVvy7R 26.. original section: Library 27.. section: Security 28 29On Linux, :func:`os.urandom` now calls ``getrandom()`` with 30``GRND_NONBLOCK`` to fall back on reading ``/dev/urandom`` if the urandom 31entropy pool is not initialized yet. Patch written by Colm Buckley. 32 33.. 34 35.. bpo: 26657 36.. date: 9597 37.. nonce: C_-XFg 38.. original section: Library 39.. section: Security 40 41Fix directory traversal vulnerability with http.server on Windows. This 42fixes a regression that was introduced in 3.3.4rc1 and 3.4.0rc1. Based on 43patch by Philipp Hagemeister. 44 45.. 46 47.. bpo: 26313 48.. date: 9581 49.. nonce: LjZAjy 50.. original section: Library 51.. section: Security 52 53ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch 54by Baji. 55 56.. 57 58.. bpo: 25939 59.. date: 9561 60.. nonce: X49Fqd 61.. original section: Library 62.. section: Security 63 64On Windows open the cert store readonly in ssl.enum_certificates. 65 66.. 67 68.. bpo: 27066 69.. date: 9673 70.. nonce: SNExZi 71.. section: Core and Builtins 72 73Fixed SystemError if a custom opener (for open()) returns a negative number 74without setting an exception. 75 76.. 77 78.. bpo: 20041 79.. date: 9672 80.. nonce: TypyGp 81.. section: Core and Builtins 82 83Fixed TypeError when frame.f_trace is set to None. Patch by Xavier de Gaye. 84 85.. 86 87.. bpo: 26168 88.. date: 9671 89.. nonce: -nPBL6 90.. section: Core and Builtins 91 92Fixed possible refleaks in failing Py_BuildValue() with the "N" format unit. 93 94.. 95 96.. bpo: 26991 97.. date: 9670 98.. nonce: yWGNhz 99.. section: Core and Builtins 100 101Fix possible refleak when creating a function with annotations. 102 103.. 104 105.. bpo: 27039 106.. date: 9669 107.. nonce: Zj7tV7 108.. section: Core and Builtins 109 110Fixed bytearray.remove() for values greater than 127. Patch by Joe Jevnik. 111 112.. 113 114.. bpo: 23640 115.. date: 9668 116.. nonce: kvNC4c 117.. section: Core and Builtins 118 119int.from_bytes() no longer bypasses constructors for subclasses. 120 121.. 122 123.. bpo: 26811 124.. date: 9667 125.. nonce: oNzUWt 126.. section: Core and Builtins 127 128gc.get_objects() no longer contains a broken tuple with NULL pointer. 129 130.. 131 132.. bpo: 20120 133.. date: 9666 134.. nonce: c-FZZc 135.. section: Core and Builtins 136 137Use RawConfigParser for .pypirc parsing, removing support for interpolation 138unintentionally added with move to Python 3. Behavior no longer does any 139interpolation in .pypirc files, matching behavior in Python 2.7 and 140Setuptools 19.0. 141 142.. 143 144.. bpo: 26659 145.. date: 9665 146.. nonce: 5PRa83 147.. section: Core and Builtins 148 149Make the builtin slice type support cycle collection. 150 151.. 152 153.. bpo: 26718 154.. date: 9664 155.. nonce: K5PQ8j 156.. section: Core and Builtins 157 158super.__init__ no longer leaks memory if called multiple times. NOTE: A 159direct call of super.__init__ is not endorsed! 160 161.. 162 163.. bpo: 25339 164.. date: 9663 165.. nonce: ZcaC2E 166.. section: Core and Builtins 167 168PYTHONIOENCODING now has priority over locale in setting the error handler 169for stdin and stdout. 170 171.. 172 173.. bpo: 26494 174.. date: 9662 175.. nonce: G6eXIi 176.. section: Core and Builtins 177 178Fixed crash on iterating exhausting iterators. Affected classes are generic 179sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, 180frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator. 181 182.. 183 184.. bpo: 26581 185.. date: 9661 186.. nonce: yNA7nm 187.. section: Core and Builtins 188 189If coding cookie is specified multiple times on a line in Python source code 190file, only the first one is taken to account. 191 192.. 193 194.. bpo: 26464 195.. date: 9660 196.. nonce: 7BreGz 197.. section: Core and Builtins 198 199Fix str.translate() when string is ASCII and first replacements removes 200character, but next replacement uses a non-ASCII character or a string 201longer than 1 character. Regression introduced in Python 3.5.0. 202 203.. 204 205.. bpo: 22836 206.. date: 9659 207.. nonce: cimt1y 208.. section: Core and Builtins 209 210Ensure exception reports from PyErr_Display() and PyErr_WriteUnraisable() 211are sensible even when formatting them produces secondary errors. This 212affects the reports produced by sys.__excepthook__() and when __del__() 213raises an exception. 214 215.. 216 217.. bpo: 26302 218.. date: 9658 219.. nonce: UD9XQt 220.. section: Core and Builtins 221 222Correct behavior to reject comma as a legal character for cookie names. 223 224.. 225 226.. bpo: 4806 227.. date: 9657 228.. nonce: i9m3hj 229.. section: Core and Builtins 230 231Avoid masking the original TypeError exception when using star (``*``) 232unpacking in function calls. Based on patch by Hagen Fürstenau and Daniel 233Urban. 234 235.. 236 237.. bpo: 27138 238.. date: 9656 239.. nonce: ifYEro 240.. section: Core and Builtins 241 242Fix the doc comment for FileFinder.find_spec(). 243 244.. 245 246.. bpo: 26154 247.. date: 9655 248.. nonce: MtnRAH 249.. section: Core and Builtins 250 251Add a new private _PyThreadState_UncheckedGet() function to get the current 252Python thread state, but don't issue a fatal error if it is NULL. This new 253function must be used instead of accessing directly the 254_PyThreadState_Current variable. The variable is no more exposed since 255Python 3.5.1 to hide the exact implementation of atomic C types, to avoid 256compiler issues. 257 258.. 259 260.. bpo: 26194 261.. date: 9654 262.. nonce: j9zand 263.. section: Core and Builtins 264 265Deque.insert() gave odd results for bounded deques that had reached their 266maximum size. Now an IndexError will be raised when attempting to insert 267into a full deque. 268 269.. 270 271.. bpo: 25843 272.. date: 9653 273.. nonce: t2kGug 274.. section: Core and Builtins 275 276When compiling code, don't merge constants if they are equal but have a 277different types. For example, ``f1, f2 = lambda: 1, lambda: 1.0`` is now 278correctly compiled to two different functions: ``f1()`` returns ``1`` 279(``int``) and ``f2()`` returns ``1.0`` (``int``), even if ``1`` and ``1.0`` 280are equal. 281 282.. 283 284.. bpo: 22995 285.. date: 9652 286.. nonce: KYNKvs 287.. section: Core and Builtins 288 289[UPDATE] Comment out the one of the pickleability tests in 290_PyObject_GetState() due to regressions observed in Cython-based projects. 291 292.. 293 294.. bpo: 25961 295.. date: 9651 296.. nonce: Hdjjw0 297.. section: Core and Builtins 298 299Disallowed null characters in the type name. 300 301.. 302 303.. bpo: 25973 304.. date: 9650 305.. nonce: Ud__ZP 306.. section: Core and Builtins 307 308Fix segfault when an invalid nonlocal statement binds a name starting with 309two underscores. 310 311.. 312 313.. bpo: 22995 314.. date: 9649 315.. nonce: Wq0E86 316.. section: Core and Builtins 317 318Instances of extension types with a state that aren't subclasses of list or 319dict and haven't implemented any pickle-related methods (__reduce__, 320__reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no 321longer be pickled. Including memoryview. 322 323.. 324 325.. bpo: 20440 326.. date: 9648 327.. nonce: GCwOfH 328.. section: Core and Builtins 329 330Massive replacing unsafe attribute setting code with special macro 331Py_SETREF. 332 333.. 334 335.. bpo: 25766 336.. date: 9647 337.. nonce: jn93Yu 338.. section: Core and Builtins 339 340Special method __bytes__() now works in str subclasses. 341 342.. 343 344.. bpo: 25421 345.. date: 9646 346.. nonce: c47YEL 347.. section: Core and Builtins 348 349__sizeof__ methods of builtin types now use dynamic basic size. This allows 350sys.getsize() to work correctly with their subclasses with __slots__ 351defined. 352 353.. 354 355.. bpo: 25709 356.. date: 9645 357.. nonce: WwGm2k 358.. section: Core and Builtins 359 360Fixed problem with in-place string concatenation and utf-8 cache. 361 362.. 363 364.. bpo: 27147 365.. date: 9644 366.. nonce: tCCgmH 367.. section: Core and Builtins 368 369Mention :pep:`420` in the importlib docs. 370 371.. 372 373.. bpo: 24097 374.. date: 9643 375.. nonce: Vt4E-i 376.. section: Core and Builtins 377 378Fixed crash in object.__reduce__() if slot name is freed inside __getattr__. 379 380.. 381 382.. bpo: 24731 383.. date: 9642 384.. nonce: h9-hnz 385.. section: Core and Builtins 386 387Fixed crash on converting objects with special methods __bytes__, __trunc__, 388and __float__ returning instances of subclasses of bytes, int, and float to 389subclasses of bytes, int, and float correspondingly. 390 391.. 392 393.. bpo: 26478 394.. date: 9641 395.. nonce: n0dB8e 396.. section: Core and Builtins 397 398Fix semantic bugs when using binary operators with dictionary views and 399tuples. 400 401.. 402 403.. bpo: 26171 404.. date: 9640 405.. nonce: 8SaQEa 406.. section: Core and Builtins 407 408Fix possible integer overflow and heap corruption in zipimporter.get_data(). 409 410.. 411 412.. bpo: 25660 413.. date: 9639 414.. nonce: 93DzBo 415.. section: Core and Builtins 416 417Fix TAB key behaviour in REPL with readline. 418 419.. 420 421.. bpo: 25887 422.. date: 9638 423.. nonce: PtVIX7 424.. section: Core and Builtins 425 426Raise a RuntimeError when a coroutine object is awaited more than once. 427 428.. 429 430.. bpo: 27243 431.. date: 9637 432.. nonce: U36M4E 433.. section: Core and Builtins 434 435Update the __aiter__ protocol: instead of returning an awaitable that 436resolves to an asynchronous iterator, the asynchronous iterator should be 437returned directly. Doing the former will trigger a 438PendingDeprecationWarning. 439 440.. 441 442.. bpo: 21386 443.. date: 9634 444.. nonce: DjV72U 445.. section: Library 446 447Implement missing IPv4Address.is_global property. It was documented since 44807a5610bae9d. Initial patch by Roger Luethi. 449 450.. 451 452.. bpo: 20900 453.. date: 9633 454.. nonce: H5YQPR 455.. section: Library 456 457distutils register command now decodes HTTP responses correctly. Initial 458patch by ingrid. 459 460.. 461 462.. bpo: 0 463.. date: 9632 464.. nonce: iYIeng 465.. section: Library 466 467A new version of typing.py provides several new classes and features: 468@overload outside stubs, Reversible, DefaultDict, Text, ContextManager, 469Type[], NewType(), TYPE_CHECKING, and numerous bug fixes (note that some of 470the new features are not yet implemented in mypy or other static analyzers). 471Also classes for :pep:`492` (Awaitable, AsyncIterable, AsyncIterator) have been 472added (in fact they made it into 3.5.1 but were never mentioned). 473 474.. 475 476.. bpo: 25738 477.. date: 9631 478.. nonce: mED9w4 479.. section: Library 480 481Stop http.server.BaseHTTPRequestHandler.send_error() from sending a message 482body for 205 Reset Content. Also, don't send Content header fields in 483responses that don't have a body. Patch by Susumu Koshiba. 484 485.. 486 487.. bpo: 21313 488.. date: 9630 489.. nonce: W30MBr 490.. section: Library 491 492Fix the "platform" module to tolerate when sys.version contains truncated 493build information. 494 495.. 496 497.. bpo: 27164 498.. date: 9628 499.. nonce: 6wmjx2 500.. section: Library 501 502In the zlib module, allow decompressing raw Deflate streams with a 503predefined zdict. Based on patch by Xiang Zhang. 504 505.. 506 507.. bpo: 24291 508.. date: 9627 509.. nonce: Ac6HvL 510.. section: Library 511 512Fix wsgiref.simple_server.WSGIRequestHandler to completely write data to the 513client. Previously it could do partial writes and truncate data. Also, 514wsgiref.handler.ServerHandler can now handle stdout doing partial writes, 515but this is deprecated. 516 517.. 518 519.. bpo: 26809 520.. date: 9626 521.. nonce: ya7JMb 522.. section: Library 523 524Add ``__all__`` to :mod:`string`. Patch by Emanuel Barry. 525 526.. 527 528.. bpo: 26373 529.. date: 9625 530.. nonce: P6qz6o 531.. section: Library 532 533subprocess.Popen.communicate now correctly ignores BrokenPipeError when the 534child process dies before .communicate() is called in more/all 535circumstances. 536 537.. 538 539.. bpo: 21776 540.. date: 9624 541.. nonce: 04eQfa 542.. section: Library 543 544distutils.upload now correctly handles HTTPError. Initial patch by Claudiu 545Popa. 546 547.. 548 549.. bpo: 27114 550.. date: 9623 551.. nonce: bGCuAM 552.. section: Library 553 554Fix SSLContext._load_windows_store_certs fails with PermissionError 555 556.. 557 558.. bpo: 18383 559.. date: 9622 560.. nonce: jr-b0l 561.. section: Library 562 563Avoid creating duplicate filters when using filterwarnings and simplefilter. 564Based on patch by Alex Shkop. 565 566.. 567 568.. bpo: 27057 569.. date: 9621 570.. nonce: YzTA_Q 571.. section: Library 572 573Fix os.set_inheritable() on Android, ioctl() is blocked by SELinux and fails 574with EACCESS. The function now falls back to fcntl(). Patch written by 575Michał Bednarski. 576 577.. 578 579.. bpo: 27014 580.. date: 9620 581.. nonce: ui7Khn 582.. section: Library 583 584Fix infinite recursion using typing.py. Thanks to Kalle Tuure! 585 586.. 587 588.. bpo: 14132 589.. date: 9619 590.. nonce: 5wR9MN 591.. section: Library 592 593Fix urllib.request redirect handling when the target only has a query 594string. Original fix by Ján Janech. 595 596.. 597 598.. bpo: 17214 599.. date: 9618 600.. nonce: lUbZOV 601.. section: Library 602 603The "urllib.request" module now percent-encodes non-ASCII bytes found in 604redirect target URLs. Some servers send Location header fields with 605non-ASCII bytes, but "http.client" requires the request target to be 606ASCII-encodable, otherwise a UnicodeEncodeError is raised. Based on patch by 607Christian Heimes. 608 609.. 610 611.. bpo: 26892 612.. date: 9617 613.. nonce: XIXb0h 614.. section: Library 615 616Honor debuglevel flag in urllib.request.HTTPHandler. Patch contributed by 617Chi Hsuan Yen. 618 619.. 620 621.. bpo: 22274 622.. date: 9616 623.. nonce: 0RHDMN 624.. section: Library 625 626In the subprocess module, allow stderr to be redirected to stdout even when 627stdout is not redirected. Patch by Akira Li. 628 629.. 630 631.. bpo: 26807 632.. date: 9615 633.. nonce: LXSPP6 634.. section: Library 635 636mock_open 'files' no longer error on readline at end of file. Patch from 637Yolanda Robla. 638 639.. 640 641.. bpo: 25745 642.. date: 9614 643.. nonce: -n8acU 644.. section: Library 645 646Fixed leaking a userptr in curses panel destructor. 647 648.. 649 650.. bpo: 26977 651.. date: 9613 652.. nonce: 5G4HtL 653.. section: Library 654 655Removed unnecessary, and ignored, call to sum of squares helper in 656statistics.pvariance. 657 658.. 659 660.. bpo: 26881 661.. date: 9612 662.. nonce: mdiq_L 663.. section: Library 664 665The modulefinder module now supports extended opcode arguments. 666 667.. 668 669.. bpo: 23815 670.. date: 9611 671.. nonce: _krNe8 672.. section: Library 673 674Fixed crashes related to directly created instances of types in _tkinter and 675curses.panel modules. 676 677.. 678 679.. bpo: 17765 680.. date: 9610 681.. nonce: hiSVS1 682.. section: Library 683 684weakref.ref() no longer silently ignores keyword arguments. Patch by Georg 685Brandl. 686 687.. 688 689.. bpo: 26873 690.. date: 9609 691.. nonce: cYXRcH 692.. section: Library 693 694xmlrpc now raises ResponseError on unsupported type tags instead of silently 695return incorrect result. 696 697.. 698 699.. bpo: 26711 700.. date: 9608 701.. nonce: Eu85Qw 702.. section: Library 703 704Fixed the comparison of plistlib.Data with other types. 705 706.. 707 708.. bpo: 24114 709.. date: 9607 710.. nonce: RMRMtM 711.. section: Library 712 713Fix an uninitialized variable in `ctypes.util`. 714The bug only occurs on SunOS when the ctypes implementation searches for the 715`crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos. 716 717.. 718 719.. bpo: 26864 720.. date: 9606 721.. nonce: 1KgGds 722.. section: Library 723 724In urllib.request, change the proxy bypass host checking against no_proxy to 725be case-insensitive, and to not match unrelated host names that happen to 726have a bypassed hostname as a suffix. Patch by Xiang Zhang. 727 728.. 729 730.. bpo: 26634 731.. date: 9605 732.. nonce: FZvsSb 733.. section: Library 734 735recursive_repr() now sets __qualname__ of wrapper. Patch by Xiang Zhang. 736 737.. 738 739.. bpo: 26804 740.. date: 9604 741.. nonce: 9Orp-G 742.. section: Library 743 744urllib.request will prefer lower_case proxy environment variables over 745UPPER_CASE or Mixed_Case ones. Patch contributed by Hans-Peter Jansen. 746 747.. 748 749.. bpo: 26837 750.. date: 9603 751.. nonce: 2FXGsD 752.. section: Library 753 754assertSequenceEqual() now correctly outputs non-stringified differing items 755(like bytes in the -b mode). This affects assertListEqual() and 756assertTupleEqual(). 757 758.. 759 760.. bpo: 26041 761.. date: 9602 762.. nonce: bVem-p 763.. section: Library 764 765Remove "will be removed in Python 3.7" from deprecation messages of 766platform.dist() and platform.linux_distribution(). Patch by Kumaripaba 767Miyurusara Athukorala. 768 769.. 770 771.. bpo: 26822 772.. date: 9601 773.. nonce: rYSL4W 774.. section: Library 775 776itemgetter, attrgetter and methodcaller objects no longer silently ignore 777keyword arguments. 778 779.. 780 781.. bpo: 26733 782.. date: 9600 783.. nonce: YxaJmL 784.. section: Library 785 786Disassembling a class now disassembles class and static methods. Patch by 787Xiang Zhang. 788 789.. 790 791.. bpo: 26801 792.. date: 9599 793.. nonce: TQGY-7 794.. section: Library 795 796Fix error handling in :func:`shutil.get_terminal_size`, catch 797:exc:`AttributeError` instead of :exc:`NameError`. Patch written by Emanuel 798Barry. 799 800.. 801 802.. bpo: 24838 803.. date: 9598 804.. nonce: 3Pfx8T 805.. section: Library 806 807tarfile's ustar and gnu formats now correctly calculate name and link field 808limits for multibyte character encodings like utf-8. 809 810.. 811 812.. bpo: 26717 813.. date: 9596 814.. nonce: jngTdu 815.. section: Library 816 817Stop encoding Latin-1-ized WSGI paths with UTF-8. Patch by Anthony Sottile. 818 819.. 820 821.. bpo: 26735 822.. date: 9595 823.. nonce: riSl3b 824.. section: Library 825 826Fix :func:`os.urandom` on Solaris 11.3 and newer when reading more than 8271,024 bytes: call ``getrandom()`` multiple times with a limit of 1024 bytes 828per call. 829 830.. 831 832.. bpo: 16329 833.. date: 9594 834.. nonce: nuXD8W 835.. section: Library 836 837Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'. 838 839.. 840 841.. bpo: 13952 842.. date: 9593 843.. nonce: SOoTVE 844.. section: Library 845 846Add .csv to mimetypes.types_map. Patch by Geoff Wilson. 847 848.. 849 850.. bpo: 26709 851.. date: 9592 852.. nonce: luOPbP 853.. section: Library 854 855Fixed Y2038 problem in loading binary PLists. 856 857.. 858 859.. bpo: 23735 860.. date: 9591 861.. nonce: Y5oQ9r 862.. section: Library 863 864Handle terminal resizing with Readline 6.3+ by installing our own SIGWINCH 865handler. Patch by Eric Price. 866 867.. 868 869.. bpo: 26586 870.. date: 9590 871.. nonce: V5pZNa 872.. section: Library 873 874In http.server, respond with "413 Request header fields too large" if there 875are too many header fields to parse, rather than killing the connection and 876raising an unhandled exception. Patch by Xiang Zhang. 877 878.. 879 880.. bpo: 22854 881.. date: 9589 882.. nonce: K3rMEH 883.. section: Library 884 885Change BufferedReader.writable() and BufferedWriter.readable() to always 886return False. 887 888.. 889 890.. bpo: 25195 891.. date: 9588 892.. nonce: EOc4Po 893.. section: Library 894 895Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset 8963603bae63c13 only works for classes) so we need to implement __ne__ 897ourselves. Patch by Andrew Plummer. 898 899.. 900 901.. bpo: 26644 902.. date: 9587 903.. nonce: 7tt1tk 904.. section: Library 905 906Raise ValueError rather than SystemError when a negative length is passed to 907SSLSocket.recv() or read(). 908 909.. 910 911.. bpo: 23804 912.. date: 9586 913.. nonce: PP63Ff 914.. section: Library 915 916Fix SSL recv(0) and read(0) methods to return zero bytes instead of up to 9171024. 918 919.. 920 921.. bpo: 26616 922.. date: 9585 923.. nonce: v3QwdD 924.. section: Library 925 926Fixed a bug in datetime.astimezone() method. 927 928.. 929 930.. bpo: 21925 931.. date: 9584 932.. nonce: _fr69L 933.. section: Library 934 935:func:`warnings.formatwarning` now catches exceptions on 936``linecache.getline(...)`` to be able to log :exc:`ResourceWarning` emitted 937late during the Python shutdown process. 938 939.. 940 941.. bpo: 24266 942.. date: 9583 943.. nonce: YZgVyM 944.. section: Library 945 946Ctrl+C during Readline history search now cancels the search mode when 947compiled with Readline 7. 948 949.. 950 951.. bpo: 26560 952.. date: 9582 953.. nonce: A4WXNz 954.. section: Library 955 956Avoid potential ValueError in BaseHandler.start_response. Initial patch by 957Peter Inglesby. 958 959.. 960 961.. bpo: 26569 962.. date: 9580 963.. nonce: EX8vF1 964.. section: Library 965 966Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex` to support 967importing packages. 968 969.. 970 971.. bpo: 26499 972.. date: 9579 973.. nonce: NP08PI 974.. section: Library 975 976Account for remaining Content-Length in HTTPResponse.readline() and read1(). 977Based on patch by Silent Ghost. Also document that HTTPResponse now supports 978these methods. 979 980.. 981 982.. bpo: 25320 983.. date: 9578 984.. nonce: V96LIy 985.. section: Library 986 987Handle sockets in directories unittest discovery is scanning. Patch from 988Victor van den Elzen. 989 990.. 991 992.. bpo: 16181 993.. date: 9577 994.. nonce: P7lLvo 995.. section: Library 996 997cookiejar.http2time() now returns None if year is higher than 998datetime.MAXYEAR. 999 1000.. 1001 1002.. bpo: 26513 1003.. date: 9576 1004.. nonce: HoPepy 1005.. section: Library 1006 1007Fixes platform module detection of Windows Server 1008 1009.. 1010 1011.. bpo: 23718 1012.. date: 9575 1013.. nonce: AMPC0o 1014.. section: Library 1015 1016Fixed parsing time in week 0 before Jan 1. Original patch by Tamás Bence 1017Gedai. 1018 1019.. 1020 1021.. bpo: 20589 1022.. date: 9574 1023.. nonce: NsQ_I1 1024.. section: Library 1025 1026Invoking Path.owner() and Path.group() on Windows now raise 1027NotImplementedError instead of ImportError. 1028 1029.. 1030 1031.. bpo: 26177 1032.. date: 9573 1033.. nonce: HlSWer 1034.. section: Library 1035 1036Fixed the keys() method for Canvas and Scrollbar widgets. 1037 1038.. 1039 1040.. bpo: 15068 1041.. date: 9572 1042.. nonce: bcHtiw 1043.. section: Library 1044 1045Got rid of excessive buffering in the fileinput module. The bufsize 1046parameter is no longer used. 1047 1048.. 1049 1050.. bpo: 2202 1051.. date: 9571 1052.. nonce: dk9sd0 1053.. section: Library 1054 1055Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls. 1056Initial patch by Mathieu Dupuy. 1057 1058.. 1059 1060.. bpo: 25718 1061.. date: 9570 1062.. nonce: 4EjZyv 1063.. section: Library 1064 1065Fixed pickling and copying the accumulate() iterator with total is None. 1066 1067.. 1068 1069.. bpo: 26475 1070.. date: 9569 1071.. nonce: JXVccY 1072.. section: Library 1073 1074Fixed debugging output for regular expressions with the (?x) flag. 1075 1076.. 1077 1078.. bpo: 26457 1079.. date: 9568 1080.. nonce: Xe6Clh 1081.. section: Library 1082 1083Fixed the subnets() methods in IP network classes for the case when 1084resulting prefix length is equal to maximal prefix length. Based on patch by 1085Xiang Zhang. 1086 1087.. 1088 1089.. bpo: 26385 1090.. date: 9567 1091.. nonce: 50bDXm 1092.. section: Library 1093 1094Remove the file if the internal open() call in NamedTemporaryFile() fails. 1095Patch by Silent Ghost. 1096 1097.. 1098 1099.. bpo: 26402 1100.. date: 9566 1101.. nonce: k7DVuU 1102.. section: Library 1103 1104Fix XML-RPC client to retry when the server shuts down a persistent 1105connection. This was a regression related to the new 1106http.client.RemoteDisconnected exception in 3.5.0a4. 1107 1108.. 1109 1110.. bpo: 25913 1111.. date: 9565 1112.. nonce: 5flb95 1113.. section: Library 1114 1115Leading ``<~`` is optional now in base64.a85decode() with adobe=True. Patch 1116by Swati Jaiswal. 1117 1118.. 1119 1120.. bpo: 26186 1121.. date: 9564 1122.. nonce: R9rfiL 1123.. section: Library 1124 1125Remove an invalid type check in importlib.util.LazyLoader. 1126 1127.. 1128 1129.. bpo: 26367 1130.. date: 9563 1131.. nonce: ckpNeU 1132.. section: Library 1133 1134importlib.__import__() raises SystemError like builtins.__import__() when 1135``level`` is specified but without an accompanying package specified. 1136 1137.. 1138 1139.. bpo: 26309 1140.. date: 9562 1141.. nonce: ubEeiz 1142.. section: Library 1143 1144In the "socketserver" module, shut down the request (closing the connected 1145socket) when verify_request() returns false. Patch by Aviv Palivoda. 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: 17500 2158.. date: 9453 2159.. nonce: QTZbRV 2160.. section: Windows 2161 2162Remove unused and outdated icons. (See also: 2163https://github.com/python/pythondotorg/issues/945) 2164 2165.. 2166 2167.. bpo: 26799 2168.. date: 9457 2169.. nonce: gK2VXX 2170.. section: Tools/Demos 2171 2172Fix python-gdb.py: don't get C types once when the Python code is loaded, 2173but get C types on demand. The C types can change if python-gdb.py is loaded 2174before the Python executable. Patch written by Thomas Ilsche. 2175 2176.. 2177 2178.. bpo: 26271 2179.. date: 9456 2180.. nonce: wg-rzr 2181.. section: Tools/Demos 2182 2183Fix the Freeze tool to properly use flags passed through configure. Patch by 2184Daniel Shaulov. 2185 2186.. 2187 2188.. bpo: 26489 2189.. date: 9455 2190.. nonce: rJ_U5S 2191.. section: Tools/Demos 2192 2193Add dictionary unpacking support to Tools/parser/unparse.py. Patch by Guo Ci 2194Teo. 2195 2196.. 2197 2198.. bpo: 26316 2199.. date: 9454 2200.. nonce: QJvVOi 2201.. section: Tools/Demos 2202 2203Fix variable name typo in Argument Clinic. 2204