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`. 681 682The bug only occurs on SunOS when the ctypes implementation searches for the 683`crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos. 684 685.. 686 687.. bpo: 26864 688.. date: 9606 689.. nonce: 1KgGds 690.. section: Library 691 692In urllib.request, change the proxy bypass host checking against no_proxy to 693be case-insensitive, and to not match unrelated host names that happen to 694have a bypassed hostname as a suffix. Patch by Xiang Zhang. 695 696.. 697 698.. bpo: 26634 699.. date: 9605 700.. nonce: FZvsSb 701.. section: Library 702 703recursive_repr() now sets __qualname__ of wrapper. Patch by Xiang Zhang. 704 705.. 706 707.. bpo: 26804 708.. date: 9604 709.. nonce: 9Orp-G 710.. section: Library 711 712urllib.request will prefer lower_case proxy environment variables over 713UPPER_CASE or Mixed_Case ones. Patch contributed by Hans-Peter Jansen. 714 715.. 716 717.. bpo: 26837 718.. date: 9603 719.. nonce: 2FXGsD 720.. section: Library 721 722assertSequenceEqual() now correctly outputs non-stringified differing items 723(like bytes in the -b mode). This affects assertListEqual() and 724assertTupleEqual(). 725 726.. 727 728.. bpo: 26041 729.. date: 9602 730.. nonce: bVem-p 731.. section: Library 732 733Remove "will be removed in Python 3.7" from deprecation messages of 734platform.dist() and platform.linux_distribution(). Patch by Kumaripaba 735Miyurusara Athukorala. 736 737.. 738 739.. bpo: 26822 740.. date: 9601 741.. nonce: rYSL4W 742.. section: Library 743 744itemgetter, attrgetter and methodcaller objects no longer silently ignore 745keyword arguments. 746 747.. 748 749.. bpo: 26733 750.. date: 9600 751.. nonce: YxaJmL 752.. section: Library 753 754Disassembling a class now disassembles class and static methods. Patch by 755Xiang Zhang. 756 757.. 758 759.. bpo: 26801 760.. date: 9599 761.. nonce: TQGY-7 762.. section: Library 763 764Fix error handling in :func:`shutil.get_terminal_size`, catch 765:exc:`AttributeError` instead of :exc:`NameError`. Patch written by Emanuel 766Barry. 767 768.. 769 770.. bpo: 24838 771.. date: 9598 772.. nonce: 3Pfx8T 773.. section: Library 774 775tarfile's ustar and gnu formats now correctly calculate name and link field 776limits for multibyte character encodings like utf-8. 777 778.. 779 780.. bpo: 26657 781.. date: 9597 782.. nonce: C_-XFg 783.. original section: Library 784.. section: Security 785 786Fix directory traversal vulnerability with http.server on Windows. This 787fixes a regression that was introduced in 3.3.4rc1 and 3.4.0rc1. Based on 788patch by Philipp Hagemeister. 789 790.. 791 792.. bpo: 26717 793.. date: 9596 794.. nonce: jngTdu 795.. section: Library 796 797Stop encoding Latin-1-ized WSGI paths with UTF-8. Patch by Anthony Sottile. 798 799.. 800 801.. bpo: 26735 802.. date: 9595 803.. nonce: riSl3b 804.. section: Library 805 806Fix :func:`os.urandom` on Solaris 11.3 and newer when reading more than 8071,024 bytes: call ``getrandom()`` multiple times with a limit of 1024 bytes 808per call. 809 810.. 811 812.. bpo: 16329 813.. date: 9594 814.. nonce: nuXD8W 815.. section: Library 816 817Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'. 818 819.. 820 821.. bpo: 13952 822.. date: 9593 823.. nonce: SOoTVE 824.. section: Library 825 826Add .csv to mimetypes.types_map. Patch by Geoff Wilson. 827 828.. 829 830.. bpo: 26709 831.. date: 9592 832.. nonce: luOPbP 833.. section: Library 834 835Fixed Y2038 problem in loading binary PLists. 836 837.. 838 839.. bpo: 23735 840.. date: 9591 841.. nonce: Y5oQ9r 842.. section: Library 843 844Handle terminal resizing with Readline 6.3+ by installing our own SIGWINCH 845handler. Patch by Eric Price. 846 847.. 848 849.. bpo: 26586 850.. date: 9590 851.. nonce: V5pZNa 852.. section: Library 853 854In http.server, respond with "413 Request header fields too large" if there 855are too many header fields to parse, rather than killing the connection and 856raising an unhandled exception. Patch by Xiang Zhang. 857 858.. 859 860.. bpo: 22854 861.. date: 9589 862.. nonce: K3rMEH 863.. section: Library 864 865Change BufferedReader.writable() and BufferedWriter.readable() to always 866return False. 867 868.. 869 870.. bpo: 25195 871.. date: 9588 872.. nonce: EOc4Po 873.. section: Library 874 875Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset 8763603bae63c13 only works for classes) so we need to implement __ne__ 877ourselves. Patch by Andrew Plummer. 878 879.. 880 881.. bpo: 26644 882.. date: 9587 883.. nonce: 7tt1tk 884.. section: Library 885 886Raise ValueError rather than SystemError when a negative length is passed to 887SSLSocket.recv() or read(). 888 889.. 890 891.. bpo: 23804 892.. date: 9586 893.. nonce: PP63Ff 894.. section: Library 895 896Fix SSL recv(0) and read(0) methods to return zero bytes instead of up to 8971024. 898 899.. 900 901.. bpo: 26616 902.. date: 9585 903.. nonce: v3QwdD 904.. section: Library 905 906Fixed a bug in datetime.astimezone() method. 907 908.. 909 910.. bpo: 21925 911.. date: 9584 912.. nonce: _fr69L 913.. section: Library 914 915:func:`warnings.formatwarning` now catches exceptions on 916``linecache.getline(...)`` to be able to log :exc:`ResourceWarning` emitted 917late during the Python shutdown process. 918 919.. 920 921.. bpo: 24266 922.. date: 9583 923.. nonce: YZgVyM 924.. section: Library 925 926Ctrl+C during Readline history search now cancels the search mode when 927compiled with Readline 7. 928 929.. 930 931.. bpo: 26560 932.. date: 9582 933.. nonce: A4WXNz 934.. section: Library 935 936Avoid potential ValueError in BaseHandler.start_response. Initial patch by 937Peter Inglesby. 938 939.. 940 941.. bpo: 26313 942.. date: 9581 943.. nonce: LjZAjy 944.. original section: Library 945.. section: Security 946 947ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch 948by Baji. 949 950.. 951 952.. bpo: 26569 953.. date: 9580 954.. nonce: EX8vF1 955.. section: Library 956 957Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex` to support 958importing packages. 959 960.. 961 962.. bpo: 26499 963.. date: 9579 964.. nonce: NP08PI 965.. section: Library 966 967Account for remaining Content-Length in HTTPResponse.readline() and read1(). 968Based on patch by Silent Ghost. Also document that HTTPResponse now supports 969these methods. 970 971.. 972 973.. bpo: 25320 974.. date: 9578 975.. nonce: V96LIy 976.. section: Library 977 978Handle sockets in directories unittest discovery is scanning. Patch from 979Victor van den Elzen. 980 981.. 982 983.. bpo: 16181 984.. date: 9577 985.. nonce: P7lLvo 986.. section: Library 987 988cookiejar.http2time() now returns None if year is higher than 989datetime.MAXYEAR. 990 991.. 992 993.. bpo: 26513 994.. date: 9576 995.. nonce: HoPepy 996.. section: Library 997 998Fixes platform module detection of Windows Server 999 1000.. 1001 1002.. bpo: 23718 1003.. date: 9575 1004.. nonce: AMPC0o 1005.. section: Library 1006 1007Fixed parsing time in week 0 before Jan 1. Original patch by Tamás Bence 1008Gedai. 1009 1010.. 1011 1012.. bpo: 20589 1013.. date: 9574 1014.. nonce: NsQ_I1 1015.. section: Library 1016 1017Invoking Path.owner() and Path.group() on Windows now raise 1018NotImplementedError instead of ImportError. 1019 1020.. 1021 1022.. bpo: 26177 1023.. date: 9573 1024.. nonce: HlSWer 1025.. section: Library 1026 1027Fixed the keys() method for Canvas and Scrollbar widgets. 1028 1029.. 1030 1031.. bpo: 15068 1032.. date: 9572 1033.. nonce: bcHtiw 1034.. section: Library 1035 1036Got rid of excessive buffering in the fileinput module. The bufsize 1037parameter is no longer used. 1038 1039.. 1040 1041.. bpo: 2202 1042.. date: 9571 1043.. nonce: dk9sd0 1044.. section: Library 1045 1046Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls. 1047Initial patch by Mathieu Dupuy. 1048 1049.. 1050 1051.. bpo: 25718 1052.. date: 9570 1053.. nonce: 4EjZyv 1054.. section: Library 1055 1056Fixed pickling and copying the accumulate() iterator with total is None. 1057 1058.. 1059 1060.. bpo: 26475 1061.. date: 9569 1062.. nonce: JXVccY 1063.. section: Library 1064 1065Fixed debugging output for regular expressions with the (?x) flag. 1066 1067.. 1068 1069.. bpo: 26457 1070.. date: 9568 1071.. nonce: Xe6Clh 1072.. section: Library 1073 1074Fixed the subnets() methods in IP network classes for the case when 1075resulting prefix length is equal to maximal prefix length. Based on patch by 1076Xiang Zhang. 1077 1078.. 1079 1080.. bpo: 26385 1081.. date: 9567 1082.. nonce: 50bDXm 1083.. section: Library 1084 1085Remove the file if the internal open() call in NamedTemporaryFile() fails. 1086Patch by Silent Ghost. 1087 1088.. 1089 1090.. bpo: 26402 1091.. date: 9566 1092.. nonce: k7DVuU 1093.. section: Library 1094 1095Fix XML-RPC client to retry when the server shuts down a persistent 1096connection. This was a regression related to the new 1097http.client.RemoteDisconnected exception in 3.5.0a4. 1098 1099.. 1100 1101.. bpo: 25913 1102.. date: 9565 1103.. nonce: 5flb95 1104.. section: Library 1105 1106Leading ``<~`` is optional now in base64.a85decode() with adobe=True. Patch 1107by Swati Jaiswal. 1108 1109.. 1110 1111.. bpo: 26186 1112.. date: 9564 1113.. nonce: R9rfiL 1114.. section: Library 1115 1116Remove an invalid type check in importlib.util.LazyLoader. 1117 1118.. 1119 1120.. bpo: 26367 1121.. date: 9563 1122.. nonce: ckpNeU 1123.. section: Library 1124 1125importlib.__import__() raises SystemError like builtins.__import__() when 1126``level`` is specified but without an accompanying package specified. 1127 1128.. 1129 1130.. bpo: 26309 1131.. date: 9562 1132.. nonce: ubEeiz 1133.. section: Library 1134 1135In the "socketserver" module, shut down the request (closing the connected 1136socket) when verify_request() returns false. Patch by Aviv Palivoda. 1137 1138.. 1139 1140.. bpo: 25939 1141.. date: 9561 1142.. nonce: X49Fqd 1143.. original section: Library 1144.. section: Security 1145 1146On Windows open the cert store readonly in ssl.enum_certificates. 1147 1148.. 1149 1150.. bpo: 25995 1151.. date: 9560 1152.. nonce: NfcimP 1153.. section: Library 1154 1155os.walk() no longer uses FDs proportional to the tree depth. 1156 1157.. 1158 1159.. bpo: 26117 1160.. date: 9559 1161.. nonce: ne6p11 1162.. section: Library 1163 1164The os.scandir() iterator now closes file descriptor not only when the 1165iteration is finished, but when it was failed with error. 1166 1167.. 1168 1169.. bpo: 25911 1170.. date: 9558 1171.. nonce: d4Zadh 1172.. section: Library 1173 1174Restored support of bytes paths in os.walk() on Windows. 1175 1176.. 1177 1178.. bpo: 26045 1179.. date: 9557 1180.. nonce: WmzUrX 1181.. section: Library 1182 1183Add UTF-8 suggestion to error message when posting a non-Latin-1 string with 1184http.client. 1185 1186.. 1187 1188.. bpo: 12923 1189.. date: 9556 1190.. nonce: HPAu-B 1191.. section: Library 1192 1193Reset FancyURLopener's redirect counter even if there is an exception. 1194Based on patches by Brian Brazil and Daniel Rocco. 1195 1196.. 1197 1198.. bpo: 25945 1199.. date: 9555 1200.. nonce: guNgNM 1201.. section: Library 1202 1203Fixed a crash when unpickle the functools.partial object with wrong state. 1204Fixed a leak in failed functools.partial constructor. "args" and "keywords" 1205attributes of functools.partial have now always types tuple and dict 1206correspondingly. 1207 1208.. 1209 1210.. bpo: 26202 1211.. date: 9554 1212.. nonce: LPIXLg 1213.. section: Library 1214 1215copy.deepcopy() now correctly copies range() objects with non-atomic 1216attributes. 1217 1218.. 1219 1220.. bpo: 23076 1221.. date: 9553 1222.. nonce: 8rphoP 1223.. section: Library 1224 1225Path.glob() now raises a ValueError if it's called with an invalid pattern. 1226Patch by Thomas Nyberg. 1227 1228.. 1229 1230.. bpo: 19883 1231.. date: 9552 1232.. nonce: z9TsO6 1233.. section: Library 1234 1235Fixed possible integer overflows in zipimport. 1236 1237.. 1238 1239.. bpo: 26227 1240.. date: 9551 1241.. nonce: Fe6oiB 1242.. section: Library 1243 1244On Windows, getnameinfo(), gethostbyaddr() and gethostbyname_ex() functions 1245of the socket module now decode the hostname from the ANSI code page rather 1246than UTF-8. 1247 1248.. 1249 1250.. bpo: 26147 1251.. date: 9550 1252.. nonce: i-Jc01 1253.. section: Library 1254 1255xmlrpc now works with strings not encodable with used non-UTF-8 encoding. 1256 1257.. 1258 1259.. bpo: 25935 1260.. date: 9549 1261.. nonce: cyni91 1262.. section: Library 1263 1264Garbage collector now breaks reference loops with OrderedDict. 1265 1266.. 1267 1268.. bpo: 16620 1269.. date: 9548 1270.. nonce: rxpn_Y 1271.. section: Library 1272 1273Fixed AttributeError in msilib.Directory.glob(). 1274 1275.. 1276 1277.. bpo: 26013 1278.. date: 9547 1279.. nonce: 93RKNz 1280.. section: Library 1281 1282Added compatibility with broken protocol 2 pickles created in old Python 3 1283versions (3.4.3 and lower). 1284 1285.. 1286 1287.. bpo: 25850 1288.. date: 9546 1289.. nonce: jwFPxj 1290.. section: Library 1291 1292Use cross-compilation by default for 64-bit Windows. 1293 1294.. 1295 1296.. bpo: 17633 1297.. date: 9545 1298.. nonce: 9mpbUO 1299.. section: Library 1300 1301Improve zipimport's support for namespace packages. 1302 1303.. 1304 1305.. bpo: 24705 1306.. date: 9544 1307.. nonce: IZYwjR 1308.. section: Library 1309 1310Fix sysconfig._parse_makefile not expanding ${} vars appearing before $() 1311vars. 1312 1313.. 1314 1315.. bpo: 22138 1316.. date: 9543 1317.. nonce: nRNYkc 1318.. section: Library 1319 1320Fix mock.patch behavior when patching descriptors. Restore original values 1321after patching. Patch contributed by Sean McCully. 1322 1323.. 1324 1325.. bpo: 25672 1326.. date: 9542 1327.. nonce: fw9RJP 1328.. section: Library 1329 1330In the ssl module, enable the SSL_MODE_RELEASE_BUFFERS mode option if it is 1331safe to do so. 1332 1333.. 1334 1335.. bpo: 26012 1336.. date: 9541 1337.. nonce: IFSXNm 1338.. section: Library 1339 1340Don't traverse into symlinks for ``**`` pattern in pathlib.Path.[r]glob(). 1341 1342.. 1343 1344.. bpo: 24120 1345.. date: 9540 1346.. nonce: Yiwa0h 1347.. section: Library 1348 1349Ignore PermissionError when traversing a tree with pathlib.Path.[r]glob(). 1350Patch by Ulrich Petri. 1351 1352.. 1353 1354.. bpo: 25447 1355.. date: 9539 1356.. nonce: -4m4xO 1357.. section: Library 1358 1359fileinput now uses sys.stdin as-is if it does not have a buffer attribute 1360(restores backward compatibility). 1361 1362.. 1363 1364.. bpo: 25447 1365.. date: 9538 1366.. nonce: AtHkWA 1367.. section: Library 1368 1369Copying the lru_cache() wrapper object now always works, independently from 1370the type of the wrapped object (by returning the original object unchanged). 1371 1372.. 1373 1374.. bpo: 24103 1375.. date: 9537 1376.. nonce: WufqrQ 1377.. section: Library 1378 1379Fixed possible use after free in ElementTree.XMLPullParser. 1380 1381.. 1382 1383.. bpo: 25860 1384.. date: 9536 1385.. nonce: 0hActb 1386.. section: Library 1387 1388os.fwalk() no longer skips remaining directories when error occurs. 1389Original patch by Samson Lee. 1390 1391.. 1392 1393.. bpo: 25914 1394.. date: 9535 1395.. nonce: h0V61F 1396.. section: Library 1397 1398Fixed and simplified OrderedDict.__sizeof__. 1399 1400.. 1401 1402.. bpo: 25902 1403.. date: 9534 1404.. nonce: 6t2FmH 1405.. section: Library 1406 1407Fixed various refcount issues in ElementTree iteration. 1408 1409.. 1410 1411.. bpo: 25717 1412.. date: 9533 1413.. nonce: 0_xjaK 1414.. section: Library 1415 1416Restore the previous behaviour of tolerating most fstat() errors when 1417opening files. This was a regression in 3.5a1, and stopped anonymous 1418temporary files from working in special cases. 1419 1420.. 1421 1422.. bpo: 24903 1423.. date: 9532 1424.. nonce: 3LBdzb 1425.. section: Library 1426 1427Fix regression in number of arguments compileall accepts when '-d' is 1428specified. The check on the number of arguments has been dropped completely 1429as it never worked correctly anyway. 1430 1431.. 1432 1433.. bpo: 25764 1434.. date: 9531 1435.. nonce: 7WWG07 1436.. section: Library 1437 1438In the subprocess module, preserve any exception caused by fork() failure 1439when preexec_fn is used. 1440 1441.. 1442 1443.. bpo: 6478 1444.. date: 9530 1445.. nonce: -Bi9Hb 1446.. section: Library 1447 1448_strptime's regexp cache now is reset after changing timezone with 1449time.tzset(). 1450 1451.. 1452 1453.. bpo: 14285 1454.. date: 9529 1455.. nonce: UyG8Hj 1456.. section: Library 1457 1458When executing a package with the "python -m package" option, and package 1459initialization fails, a proper traceback is now reported. The "runpy" 1460module now lets exceptions from package initialization pass back to the 1461caller, rather than raising ImportError. 1462 1463.. 1464 1465.. bpo: 19771 1466.. date: 9528 1467.. nonce: 5NG-bg 1468.. section: Library 1469 1470Also in runpy and the "-m" option, omit the irrelevant message ". . . is a 1471package and cannot be directly executed" if the package could not even be 1472initialized (e.g. due to a bad ``*.pyc`` file). 1473 1474.. 1475 1476.. bpo: 25177 1477.. date: 9527 1478.. nonce: aNR4Ha 1479.. section: Library 1480 1481Fixed problem with the mean of very small and very large numbers. As a side 1482effect, statistics.mean and statistics.variance should be significantly 1483faster. 1484 1485.. 1486 1487.. bpo: 25718 1488.. date: 9526 1489.. nonce: D9mHZF 1490.. section: Library 1491 1492Fixed copying object with state with boolean value is false. 1493 1494.. 1495 1496.. bpo: 10131 1497.. date: 9525 1498.. nonce: a7tptz 1499.. section: Library 1500 1501Fixed deep copying of minidom documents. Based on patch by Marian Ganisin. 1502 1503.. 1504 1505.. bpo: 25725 1506.. date: 9524 1507.. nonce: XIKv3R 1508.. section: Library 1509 1510Fixed a reference leak in pickle.loads() when unpickling invalid data 1511including tuple instructions. 1512 1513.. 1514 1515.. bpo: 25663 1516.. date: 9523 1517.. nonce: Ofwfqa 1518.. section: Library 1519 1520In the Readline completer, avoid listing duplicate global names, and search 1521the global namespace before searching builtins. 1522 1523.. 1524 1525.. bpo: 25688 1526.. date: 9522 1527.. nonce: 8P1HOv 1528.. section: Library 1529 1530Fixed file leak in ElementTree.iterparse() raising an error. 1531 1532.. 1533 1534.. bpo: 23914 1535.. date: 9521 1536.. nonce: 1sEz4J 1537.. section: Library 1538 1539Fixed SystemError raised by unpickler on broken pickle data. 1540 1541.. 1542 1543.. bpo: 25691 1544.. date: 9520 1545.. nonce: ZEaapY 1546.. section: Library 1547 1548Fixed crash on deleting ElementTree.Element attributes. 1549 1550.. 1551 1552.. bpo: 25624 1553.. date: 9519 1554.. nonce: ed-fM0 1555.. section: Library 1556 1557ZipFile now always writes a ZIP_STORED header for directory entries. Patch 1558by Dingyuan Wang. 1559 1560.. 1561 1562.. bpo: 0 1563.. date: 9518 1564.. nonce: rtZyid 1565.. section: Library 1566 1567Skip getaddrinfo if host is already resolved. Patch by A. Jesse Jiryu Davis. 1568 1569.. 1570 1571.. bpo: 26050 1572.. date: 9517 1573.. nonce: sclyvk 1574.. section: Library 1575 1576Add asyncio.StreamReader.readuntil() method. Patch by Марк Коренберг. 1577 1578.. 1579 1580.. bpo: 25924 1581.. date: 9516 1582.. nonce: Uxr2vt 1583.. section: Library 1584 1585Avoid unnecessary serialization of getaddrinfo(3) calls on OS X versions 158610.5 or higher. Original patch by A. Jesse Jiryu Davis. 1587 1588.. 1589 1590.. bpo: 26406 1591.. date: 9515 1592.. nonce: ihvhF4 1593.. section: Library 1594 1595Avoid unnecessary serialization of getaddrinfo(3) calls on current versions 1596of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis. 1597 1598.. 1599 1600.. bpo: 26848 1601.. date: 9514 1602.. nonce: ChBOpQ 1603.. section: Library 1604 1605Fix asyncio/subprocess.communicate() to handle empty input. Patch by Jack 1606O'Connor. 1607 1608.. 1609 1610.. bpo: 27040 1611.. date: 9513 1612.. nonce: UASyCC 1613.. section: Library 1614 1615Add loop.get_exception_handler method 1616 1617.. 1618 1619.. bpo: 27041 1620.. date: 9512 1621.. nonce: p3893U 1622.. section: Library 1623 1624asyncio: Add loop.create_future method 1625 1626.. 1627 1628.. bpo: 27223 1629.. date: 9511 1630.. nonce: PRf4I6 1631.. section: Library 1632 1633asyncio: Fix _read_ready and _write_ready to respect _conn_lost. Patch by 1634Łukasz Langa. 1635 1636.. 1637 1638.. bpo: 22970 1639.. date: 9510 1640.. nonce: WhdhyM 1641.. section: Library 1642 1643asyncio: Fix inconsistency cancelling Condition.wait. Patch by David Coles. 1644 1645.. 1646 1647.. bpo: 5124 1648.. date: 9509 1649.. nonce: 4kwBvM 1650.. section: IDLE 1651 1652Paste with text selected now replaces the selection on X11. This matches how 1653paste works on Windows, Mac, most modern Linux apps, and ttk widgets. 1654Original patch by Serhiy Storchaka. 1655 1656.. 1657 1658.. bpo: 24759 1659.. date: 9508 1660.. nonce: ccmySu 1661.. section: IDLE 1662 1663Make clear in idlelib.idle_test.__init__ that the directory is a private 1664implementation of test.test_idle and tool for maintainers. 1665 1666.. 1667 1668.. bpo: 27196 1669.. date: 9507 1670.. nonce: 3yp8TF 1671.. section: IDLE 1672 1673Stop 'ThemeChanged' warnings when running IDLE tests. These persisted after 1674other warnings were suppressed in #20567. Apply Serhiy Storchaka's 1675update_idletasks solution to four test files. Record this additional advice 1676in idle_test/README.txt 1677 1678.. 1679 1680.. bpo: 20567 1681.. date: 9506 1682.. nonce: hhT32b 1683.. section: IDLE 1684 1685Revise idle_test/README.txt with advice about avoiding tk warning messages 1686from tests. Apply advice to several IDLE tests. 1687 1688.. 1689 1690.. bpo: 27117 1691.. date: 9505 1692.. nonce: YrLPf4 1693.. section: IDLE 1694 1695Make colorizer htest and turtledemo work with dark themes. Move code for 1696configuring text widget colors to a new function. 1697 1698.. 1699 1700.. bpo: 26673 1701.. date: 9504 1702.. nonce: dh0_Ij 1703.. section: IDLE 1704 1705When tk reports font size as 0, change to size 10. Such fonts on Linux 1706prevented the configuration dialog from opening. 1707 1708.. 1709 1710.. bpo: 21939 1711.. date: 9503 1712.. nonce: pWz-OK 1713.. section: IDLE 1714 1715Add test for IDLE's percolator. Original patch by Saimadhav Heblikar. 1716 1717.. 1718 1719.. bpo: 21676 1720.. date: 9502 1721.. nonce: hqy6Qh 1722.. section: IDLE 1723 1724Add test for IDLE's replace dialog. Original patch by Saimadhav Heblikar. 1725 1726.. 1727 1728.. bpo: 18410 1729.. date: 9501 1730.. nonce: DLSPZo 1731.. section: IDLE 1732 1733Add test for IDLE's search dialog. Original patch by Westley Martínez. 1734 1735.. 1736 1737.. bpo: 21703 1738.. date: 9500 1739.. nonce: BAZfDM 1740.. section: IDLE 1741 1742Add test for IDLE's undo delegator. Original patch by Saimadhav Heblikar . 1743 1744.. 1745 1746.. bpo: 27044 1747.. date: 9499 1748.. nonce: 4y7tyM 1749.. section: IDLE 1750 1751Add ConfigDialog.remove_var_callbacks to stop memory leaks. 1752 1753.. 1754 1755.. bpo: 23977 1756.. date: 9498 1757.. nonce: miDjj8 1758.. section: IDLE 1759 1760Add more asserts to test_delegator. 1761 1762.. 1763 1764.. bpo: 20640 1765.. date: 9497 1766.. nonce: PmI-G8 1767.. section: IDLE 1768 1769Add tests for idlelib.configHelpSourceEdit. Patch by Saimadhav Heblikar. 1770 1771.. 1772 1773.. bpo: 0 1774.. date: 9496 1775.. nonce: _YJfG7 1776.. section: IDLE 1777 1778In the 'IDLE-console differences' section of the IDLE doc, clarify how 1779running with IDLE affects sys.modules and the standard streams. 1780 1781.. 1782 1783.. bpo: 25507 1784.. date: 9495 1785.. nonce: i8bNpk 1786.. section: IDLE 1787 1788fix incorrect change in IOBinding that prevented printing. Augment IOBinding 1789htest to include all major IOBinding functions. 1790 1791.. 1792 1793.. bpo: 25905 1794.. date: 9494 1795.. nonce: FzNb3B 1796.. section: IDLE 1797 1798Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION MARK in 1799README.txt and open this and NEWS.txt with 'ascii'. Re-encode CREDITS.txt to 1800utf-8 and open it with 'utf-8'. 1801 1802.. 1803 1804.. bpo: 19489 1805.. date: 9493 1806.. nonce: jvzuO7 1807.. section: Documentation 1808 1809Moved the search box from the sidebar to the header and footer of each page. 1810Patch by Ammar Askar. 1811 1812.. 1813 1814.. bpo: 24136 1815.. date: 9492 1816.. nonce: MUK0zK 1817.. section: Documentation 1818 1819Document the new PEP 448 unpacking syntax of 3.5. 1820 1821.. 1822 1823.. bpo: 26736 1824.. date: 9491 1825.. nonce: U_Hyqo 1826.. section: Documentation 1827 1828Used HTTPS for external links in the documentation if possible. 1829 1830.. 1831 1832.. bpo: 6953 1833.. date: 9490 1834.. nonce: Zk6rno 1835.. section: Documentation 1836 1837Rework the Readline module documentation to group related functions 1838together, and add more details such as what underlying Readline functions 1839and variables are accessed. 1840 1841.. 1842 1843.. bpo: 23606 1844.. date: 9489 1845.. nonce: 9MhIso 1846.. section: Documentation 1847 1848Adds note to ctypes documentation regarding cdll.msvcrt. 1849 1850.. 1851 1852.. bpo: 25500 1853.. date: 9488 1854.. nonce: AV47eF 1855.. section: Documentation 1856 1857Fix documentation to not claim that __import__ is searched for in the global 1858scope. 1859 1860.. 1861 1862.. bpo: 26014 1863.. date: 9487 1864.. nonce: ptdZ_I 1865.. section: Documentation 1866 1867Update 3.x packaging documentation: * "See also" links to the new docs are 1868now provided in the legacy pages * links to setuptools documentation have 1869been updated 1870 1871.. 1872 1873.. bpo: 21916 1874.. date: 9486 1875.. nonce: muwCyp 1876.. section: Tests 1877 1878Added tests for the turtle module. Patch by ingrid, Gregory Loyse and Jelle 1879Zijlstra. 1880 1881.. 1882 1883.. bpo: 26523 1884.. date: 9485 1885.. nonce: em_Uzt 1886.. section: Tests 1887 1888The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested. 1889 1890.. 1891 1892.. bpo: 26015 1893.. date: 9484 1894.. nonce: p3oWK3 1895.. section: Tests 1896 1897Added new tests for pickling iterators of mutable sequences. 1898 1899.. 1900 1901.. bpo: 26325 1902.. date: 9483 1903.. nonce: KOUc82 1904.. section: Tests 1905 1906Added test.support.check_no_resource_warning() to check that no 1907ResourceWarning is emitted. 1908 1909.. 1910 1911.. bpo: 25940 1912.. date: 9482 1913.. nonce: PgiLVN 1914.. section: Tests 1915 1916Changed test_ssl to use self-signed.pythontest.net. This avoids relying on 1917svn.python.org, which recently changed root certificate. 1918 1919.. 1920 1921.. bpo: 25616 1922.. date: 9481 1923.. nonce: Qr-60p 1924.. section: Tests 1925 1926Tests for OrderedDict are extracted from test_collections into separate file 1927test_ordered_dict. 1928 1929.. 1930 1931.. bpo: 26583 1932.. date: 9480 1933.. nonce: Up7hTl 1934.. section: Tests 1935 1936Skip test_timestamp_overflow in test_import if bytecode files cannot be 1937written. 1938 1939.. 1940 1941.. bpo: 26884 1942.. date: 9479 1943.. nonce: O8-azL 1944.. section: Build 1945 1946Fix linking extension modules for cross builds. Patch by Xavier de Gaye. 1947 1948.. 1949 1950.. bpo: 22359 1951.. date: 9478 1952.. nonce: HDjM4s 1953.. section: Build 1954 1955Disable the rules for running _freeze_importlib and pgen when 1956cross-compiling. The output of these programs is normally saved with the 1957source code anyway, and is still regenerated when doing a native build. 1958Patch by Xavier de Gaye. 1959 1960.. 1961 1962.. bpo: 27229 1963.. date: 9477 1964.. nonce: C2NDch 1965.. section: Build 1966 1967Fix the cross-compiling pgen rule for in-tree builds. Patch by Xavier de 1968Gaye. 1969 1970.. 1971 1972.. bpo: 21668 1973.. date: 9476 1974.. nonce: 4sMAa1 1975.. section: Build 1976 1977Link audioop, _datetime, _ctypes_test modules to libm, except on Mac OS X. 1978Patch written by Xavier de Gaye. 1979 1980.. 1981 1982.. bpo: 25702 1983.. date: 9475 1984.. nonce: ipxyJs 1985.. section: Build 1986 1987A --with-lto configure option has been added that will enable link time 1988optimizations at build time during a make profile-opt. Some compilers and 1989toolchains are known to not produce stable code when using LTO, be sure to 1990test things thoroughly before relying on it. It can provide a few % speed up 1991over profile-opt alone. 1992 1993.. 1994 1995.. bpo: 26624 1996.. date: 9474 1997.. nonce: 4fGrTl 1998.. section: Build 1999 2000Adds validation of ucrtbase[d].dll version with warning for old versions. 2001 2002.. 2003 2004.. bpo: 17603 2005.. date: 9473 2006.. nonce: 102DA- 2007.. section: Build 2008 2009Avoid error about nonexistant fileblocks.o file by using a lower-level check 2010for st_blocks in struct stat. 2011 2012.. 2013 2014.. bpo: 26079 2015.. date: 9472 2016.. nonce: mEzW0O 2017.. section: Build 2018 2019Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern Thiel. 2020 2021.. 2022 2023.. bpo: 26465 2024.. date: 9471 2025.. nonce: _YR608 2026.. section: Build 2027 2028Update Windows builds to use OpenSSL 1.0.2g. 2029 2030.. 2031 2032.. bpo: 24421 2033.. date: 9470 2034.. nonce: 2zY7vM 2035.. section: Build 2036 2037Compile Modules/_math.c once, before building extensions. Previously it 2038could fail to compile properly if the math and cmath builds were concurrent. 2039 2040.. 2041 2042.. bpo: 25348 2043.. date: 9469 2044.. nonce: u6_BaQ 2045.. section: Build 2046 2047Added ``--pgo`` and ``--pgo-job`` arguments to ``PCbuild\build.bat`` for 2048building with Profile-Guided Optimization. The old 2049``PCbuild\build_pgo.bat`` script is now deprecated, and simply calls 2050``PCbuild\build.bat --pgo %*``. 2051 2052.. 2053 2054.. bpo: 25827 2055.. date: 9468 2056.. nonce: yg3DMM 2057.. section: Build 2058 2059Add support for building with ICC to ``configure``, including a new 2060``--with-icc`` flag. 2061 2062.. 2063 2064.. bpo: 25696 2065.. date: 9467 2066.. nonce: 2R_wIv 2067.. section: Build 2068 2069Fix installation of Python on UNIX with make -j9. 2070 2071.. 2072 2073.. bpo: 26930 2074.. date: 9466 2075.. nonce: Sqz2O3 2076.. section: Build 2077 2078Update OS X 10.5+ 32-bit-only installer to build and link with OpenSSL 20791.0.2h. 2080 2081.. 2082 2083.. bpo: 26268 2084.. date: 9465 2085.. nonce: I3-YLh 2086.. section: Build 2087 2088Update Windows builds to use OpenSSL 1.0.2f. 2089 2090.. 2091 2092.. bpo: 25136 2093.. date: 9464 2094.. nonce: Vi-fmO 2095.. section: Build 2096 2097Support Apple Xcode 7's new textual SDK stub libraries. 2098 2099.. 2100 2101.. bpo: 24324 2102.. date: 9463 2103.. nonce: m6DZMx 2104.. section: Build 2105 2106Do not enable unreachable code warnings when using gcc as the option does 2107not work correctly in older versions of gcc and has been silently removed as 2108of gcc-4.5. 2109 2110.. 2111 2112.. bpo: 27053 2113.. date: 9462 2114.. nonce: 1IRbae 2115.. section: Windows 2116 2117Updates make_zip.py to correctly generate library ZIP file. 2118 2119.. 2120 2121.. bpo: 26268 2122.. date: 9461 2123.. nonce: Z-lJEh 2124.. section: Windows 2125 2126Update the prepare_ssl.py script to handle OpenSSL releases that don't 2127include the contents of the include directory (that is, 1.0.2e and later). 2128 2129.. 2130 2131.. bpo: 26071 2132.. date: 9460 2133.. nonce: wLxL2l 2134.. section: Windows 2135 2136bdist_wininst created binaries fail to start and find 32bit Python 2137 2138.. 2139 2140.. bpo: 26073 2141.. date: 9459 2142.. nonce: XwWgHp 2143.. section: Windows 2144 2145Update the list of magic numbers in launcher 2146 2147.. 2148 2149.. bpo: 26065 2150.. date: 9458 2151.. nonce: SkVLJp 2152.. section: Windows 2153 2154Excludes venv from library when generating embeddable distro. 2155 2156.. 2157 2158.. bpo: 26799 2159.. date: 9457 2160.. nonce: gK2VXX 2161.. section: Tools/Demos 2162 2163Fix python-gdb.py: don't get C types once when the Python code is loaded, 2164but get C types on demand. The C types can change if python-gdb.py is loaded 2165before the Python executable. Patch written by Thomas Ilsche. 2166 2167.. 2168 2169.. bpo: 26271 2170.. date: 9456 2171.. nonce: wg-rzr 2172.. section: Tools/Demos 2173 2174Fix the Freeze tool to properly use flags passed through configure. Patch by 2175Daniel Shaulov. 2176 2177.. 2178 2179.. bpo: 26489 2180.. date: 9455 2181.. nonce: rJ_U5S 2182.. section: Tools/Demos 2183 2184Add dictionary unpacking support to Tools/parser/unparse.py. Patch by Guo Ci 2185Teo. 2186 2187.. 2188 2189.. bpo: 26316 2190.. date: 9454 2191.. nonce: QJvVOi 2192.. section: Tools/Demos 2193 2194Fix variable name typo in Argument Clinic. 2195 2196.. 2197 2198.. bpo: 17500 2199.. date: 9453 2200.. nonce: QTZbRV 2201.. section: Windows 2202 2203Remove unused and outdated icons. (See also: 2204https://github.com/python/pythondotorg/issues/945) 2205