1 .. bpo: 27066 2 .. date: 9673 3 .. nonce: SNExZi 4 .. release date: 2016-06-12 5 .. section: Core and Builtins 6 7 Fixed SystemError if a custom opener (for open()) returns a negative number 8 without setting an exception. 9 10 .. 11 12 .. bpo: 20041 13 .. date: 9672 14 .. nonce: TypyGp 15 .. section: Core and Builtins 16 17 Fixed 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 26 Fixed 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 35 Fix 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 44 Fixed 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 53 int.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 62 gc.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 71 Use RawConfigParser for .pypirc parsing, removing support for interpolation 72 unintentionally added with move to Python 3. Behavior no longer does any 73 interpolation in .pypirc files, matching behavior in Python 2.7 and 74 Setuptools 19.0. 75 76 .. 77 78 .. bpo: 26659 79 .. date: 9665 80 .. nonce: 5PRa83 81 .. section: Core and Builtins 82 83 Make 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 92 super.__init__ no longer leaks memory if called multiple times. NOTE: A 93 direct 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 102 PYTHONIOENCODING now has priority over locale in setting the error handler 103 for stdin and stdout. 104 105 .. 106 107 .. bpo: 26494 108 .. date: 9662 109 .. nonce: G6eXIi 110 .. section: Core and Builtins 111 112 Fixed crash on iterating exhausting iterators. Affected classes are generic 113 sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, 114 frozenset, 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 123 If coding cookie is specified multiple times on a line in Python source code 124 file, 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 133 Fix str.translate() when string is ASCII and first replacements removes 134 character, but next replacement uses a non-ASCII character or a string 135 longer 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 144 Ensure exception reports from PyErr_Display() and PyErr_WriteUnraisable() 145 are sensible even when formatting them produces secondary errors. This 146 affects the reports produced by sys.__excepthook__() and when __del__() 147 raises an exception. 148 149 .. 150 151 .. bpo: 26302 152 .. date: 9658 153 .. nonce: UD9XQt 154 .. section: Core and Builtins 155 156 Correct 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 165 Avoid masking the original TypeError exception when using star (``*``) 166 unpacking in function calls. Based on patch by Hagen Frstenau and Daniel 167 Urban. 168 169 .. 170 171 .. bpo: 27138 172 .. date: 9656 173 .. nonce: ifYEro 174 .. section: Core and Builtins 175 176 Fix 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 185 Add a new private _PyThreadState_UncheckedGet() function to get the current 186 Python thread state, but don't issue a fatal error if it is NULL. This new 187 function must be used instead of accessing directly the 188 _PyThreadState_Current variable. The variable is no more exposed since 189 Python 3.5.1 to hide the exact implementation of atomic C types, to avoid 190 compiler issues. 191 192 .. 193 194 .. bpo: 26194 195 .. date: 9654 196 .. nonce: j9zand 197 .. section: Core and Builtins 198 199 Deque.insert() gave odd results for bounded deques that had reached their 200 maximum size. Now an IndexError will be raised when attempting to insert 201 into a full deque. 202 203 .. 204 205 .. bpo: 25843 206 .. date: 9653 207 .. nonce: t2kGug 208 .. section: Core and Builtins 209 210 When compiling code, don't merge constants if they are equal but have a 211 different types. For example, ``f1, f2 = lambda: 1, lambda: 1.0`` is now 212 correctly compiled to two different functions: ``f1()`` returns ``1`` 213 (``int``) and ``f2()`` returns ``1.0`` (``int``), even if ``1`` and ``1.0`` 214 are 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 233 Disallowed 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 242 Fix segfault when an invalid nonlocal statement binds a name starting with 243 two underscores. 244 245 .. 246 247 .. bpo: 22995 248 .. date: 9649 249 .. nonce: Wq0E86 250 .. section: Core and Builtins 251 252 Instances of extension types with a state that aren't subclasses of list or 253 dict and haven't implemented any pickle-related methods (__reduce__, 254 __reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no 255 longer be pickled. Including memoryview. 256 257 .. 258 259 .. bpo: 20440 260 .. date: 9648 261 .. nonce: GCwOfH 262 .. section: Core and Builtins 263 264 Massive replacing unsafe attribute setting code with special macro 265 Py_SETREF. 266 267 .. 268 269 .. bpo: 25766 270 .. date: 9647 271 .. nonce: jn93Yu 272 .. section: Core and Builtins 273 274 Special 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 284 sys.getsize() to work correctly with their subclasses with __slots__ 285 defined. 286 287 .. 288 289 .. bpo: 25709 290 .. date: 9645 291 .. nonce: WwGm2k 292 .. section: Core and Builtins 293 294 Fixed 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 303 Mention 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 312 Fixed 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 321 Fixed crash on converting objects with special methods __bytes__, __trunc__, 322 and __float__ returning instances of subclasses of bytes, int, and float to 323 subclasses of bytes, int, and float correspondingly. 324 325 .. 326 327 .. bpo: 26478 328 .. date: 9641 329 .. nonce: n0dB8e 330 .. section: Core and Builtins 331 332 Fix semantic bugs when using binary operators with dictionary views and 333 tuples. 334 335 .. 336 337 .. bpo: 26171 338 .. date: 9640 339 .. nonce: 8SaQEa 340 .. section: Core and Builtins 341 342 Fix 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 351 Fix 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 360 Raise 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 369 Update the __aiter__ protocol: instead of returning an awaitable that 370 resolves to an asynchronous iterator, the asynchronous iterator should be 371 returned directly. Doing the former will trigger a 372 PendingDeprecationWarning. 373 374 .. 375 376 .. bpo: 26556 377 .. date: 9636 378 .. nonce: v5j2uL 379 .. original section: Library 380 .. section: Security 381 382 Update 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 392 Fix TLS stripping vulnerability in smtplib, CVE-2016-0772. Reported by Team 393 Oststrom 394 395 .. 396 397 .. bpo: 21386 398 .. date: 9634 399 .. nonce: DjV72U 400 .. section: Library 401 402 Implement missing IPv4Address.is_global property. It was documented since 403 07a5610bae9d. Initial patch by Roger Luethi. 404 405 .. 406 407 .. bpo: 20900 408 .. date: 9633 409 .. nonce: H5YQPR 410 .. section: Library 411 412 distutils register command now decodes HTTP responses correctly. Initial 413 patch by ingrid. 414 415 .. 416 417 .. bpo: 0 418 .. date: 9632 419 .. nonce: iYIeng 420 .. section: Library 421 422 A new version of typing.py provides several new classes and features: 423 @overload outside stubs, Reversible, DefaultDict, Text, ContextManager, 424 Type[], NewType(), TYPE_CHECKING, and numerous bug fixes (note that some of 425 the new features are not yet implemented in mypy or other static analyzers). 426 Also classes for PEP 492 (Awaitable, AsyncIterable, AsyncIterator) have been 427 added (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 436 Stop http.server.BaseHTTPRequestHandler.send_error() from sending a message 437 body for 205 Reset Content. Also, don't send Content header fields in 438 responses 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 447 Fix the "platform" module to tolerate when sys.version contains truncated 448 build information. 449 450 .. 451 452 .. bpo: 26839 453 .. date: 9629 454 .. nonce: yVvy7R 455 .. original section: Library 456 .. section: Security 457 458 On Linux, :func:`os.urandom` now calls ``getrandom()`` with 459 ``GRND_NONBLOCK`` to fall back on reading ``/dev/urandom`` if the urandom 460 entropy 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 469 In the zlib module, allow decompressing raw Deflate streams with a 470 predefined zdict. Based on patch by Xiang Zhang. 471 472 .. 473 474 .. bpo: 24291 475 .. date: 9627 476 .. nonce: Ac6HvL 477 .. section: Library 478 479 Fix wsgiref.simple_server.WSGIRequestHandler to completely write data to the 480 client. Previously it could do partial writes and truncate data. Also, 481 wsgiref.handler.ServerHandler can now handle stdout doing partial writes, 482 but this is deprecated. 483 484 .. 485 486 .. bpo: 26809 487 .. date: 9626 488 .. nonce: ya7JMb 489 .. section: Library 490 491 Add ``__all__`` to :mod:`string`. Patch by Emanuel Barry. 492 493 .. 494 495 .. bpo: 26373 496 .. date: 9625 497 .. nonce: P6qz6o 498 .. section: Library 499 500 subprocess.Popen.communicate now correctly ignores BrokenPipeError when the 501 child process dies before .communicate() is called in more/all 502 circumstances. 503 504 .. 505 506 .. bpo: 21776 507 .. date: 9624 508 .. nonce: 04eQfa 509 .. section: Library 510 511 distutils.upload now correctly handles HTTPError. Initial patch by Claudiu 512 Popa. 513 514 .. 515 516 .. bpo: 27114 517 .. date: 9623 518 .. nonce: bGCuAM 519 .. section: Library 520 521 Fix 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 530 Avoid creating duplicate filters when using filterwarnings and simplefilter. 531 Based on patch by Alex Shkop. 532 533 .. 534 535 .. bpo: 27057 536 .. date: 9621 537 .. nonce: YzTA_Q 538 .. section: Library 539 540 Fix os.set_inheritable() on Android, ioctl() is blocked by SELinux and fails 541 with EACCESS. The function now falls back to fcntl(). Patch written by 542 Micha Bednarski. 543 544 .. 545 546 .. bpo: 27014 547 .. date: 9620 548 .. nonce: ui7Khn 549 .. section: Library 550 551 Fix 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 560 Fix urllib.request redirect handling when the target only has a query 561 string. Original fix by Jn Janech. 562 563 .. 564 565 .. bpo: 17214 566 .. date: 9618 567 .. nonce: lUbZOV 568 .. section: Library 569 570 The "urllib.request" module now percent-encodes non-ASCII bytes found in 571 redirect target URLs. Some servers send Location header fields with 572 non-ASCII bytes, but "http.client" requires the request target to be 573 ASCII-encodable, otherwise a UnicodeEncodeError is raised. Based on patch by 574 Christian Heimes. 575 576 .. 577 578 .. bpo: 26892 579 .. date: 9617 580 .. nonce: XIXb0h 581 .. section: Library 582 583 Honor debuglevel flag in urllib.request.HTTPHandler. Patch contributed by 584 Chi Hsuan Yen. 585 586 .. 587 588 .. bpo: 22274 589 .. date: 9616 590 .. nonce: 0RHDMN 591 .. section: Library 592 593 In the subprocess module, allow stderr to be redirected to stdout even when 594 stdout is not redirected. Patch by Akira Li. 595 596 .. 597 598 .. bpo: 26807 599 .. date: 9615 600 .. nonce: LXSPP6 601 .. section: Library 602 603 mock_open 'files' no longer error on readline at end of file. Patch from 604 Yolanda Robla. 605 606 .. 607 608 .. bpo: 25745 609 .. date: 9614 610 .. nonce: -n8acU 611 .. section: Library 612 613 Fixed leaking a userptr in curses panel destructor. 614 615 .. 616 617 .. bpo: 26977 618 .. date: 9613 619 .. nonce: 5G4HtL 620 .. section: Library 621 622 Removed unnecessary, and ignored, call to sum of squares helper in 623 statistics.pvariance. 624 625 .. 626 627 .. bpo: 26881 628 .. date: 9612 629 .. nonce: mdiq_L 630 .. section: Library 631 632 The modulefinder module now supports extended opcode arguments. 633 634 .. 635 636 .. bpo: 23815 637 .. date: 9611 638 .. nonce: _krNe8 639 .. section: Library 640 641 Fixed crashes related to directly created instances of types in _tkinter and 642 curses.panel modules. 643 644 .. 645 646 .. bpo: 17765 647 .. date: 9610 648 .. nonce: hiSVS1 649 .. section: Library 650 651 weakref.ref() no longer silently ignores keyword arguments. Patch by Georg 652 Brandl. 653 654 .. 655 656 .. bpo: 26873 657 .. date: 9609 658 .. nonce: cYXRcH 659 .. section: Library 660 661 xmlrpc now raises ResponseError on unsupported type tags instead of silently 662 return incorrect result. 663 664 .. 665 666 .. bpo: 26711 667 .. date: 9608 668 .. nonce: Eu85Qw 669 .. section: Library 670 671 Fixed the comparison of plistlib.Data with other types. 672 673 .. 674 675 .. bpo: 24114 676 .. date: 9607 677 .. nonce: RMRMtM 678 .. section: Library 679 680 Fix an uninitialized variable in `ctypes.util`. 681 682 The 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 692 In urllib.request, change the proxy bypass host checking against no_proxy to 693 be case-insensitive, and to not match unrelated host names that happen to 694 have 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 703 recursive_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 712 urllib.request will prefer lower_case proxy environment variables over 713 UPPER_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 722 assertSequenceEqual() now correctly outputs non-stringified differing items 723 (like bytes in the -b mode). This affects assertListEqual() and 724 assertTupleEqual(). 725 726 .. 727 728 .. bpo: 26041 729 .. date: 9602 730 .. nonce: bVem-p 731 .. section: Library 732 733 Remove "will be removed in Python 3.7" from deprecation messages of 734 platform.dist() and platform.linux_distribution(). Patch by Kumaripaba 735 Miyurusara Athukorala. 736 737 .. 738 739 .. bpo: 26822 740 .. date: 9601 741 .. nonce: rYSL4W 742 .. section: Library 743 744 itemgetter, attrgetter and methodcaller objects no longer silently ignore 745 keyword arguments. 746 747 .. 748 749 .. bpo: 26733 750 .. date: 9600 751 .. nonce: YxaJmL 752 .. section: Library 753 754 Disassembling a class now disassembles class and static methods. Patch by 755 Xiang Zhang. 756 757 .. 758 759 .. bpo: 26801 760 .. date: 9599 761 .. nonce: TQGY-7 762 .. section: Library 763 764 Fix error handling in :func:`shutil.get_terminal_size`, catch 765 :exc:`AttributeError` instead of :exc:`NameError`. Patch written by Emanuel 766 Barry. 767 768 .. 769 770 .. bpo: 24838 771 .. date: 9598 772 .. nonce: 3Pfx8T 773 .. section: Library 774 775 tarfile's ustar and gnu formats now correctly calculate name and link field 776 limits 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 786 Fix directory traversal vulnerability with http.server on Windows. This 787 fixes a regression that was introduced in 3.3.4rc1 and 3.4.0rc1. Based on 788 patch by Philipp Hagemeister. 789 790 .. 791 792 .. bpo: 26717 793 .. date: 9596 794 .. nonce: jngTdu 795 .. section: Library 796 797 Stop 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 806 Fix :func:`os.urandom` on Solaris 11.3 and newer when reading more than 807 1,024 bytes: call ``getrandom()`` multiple times with a limit of 1024 bytes 808 per call. 809 810 .. 811 812 .. bpo: 16329 813 .. date: 9594 814 .. nonce: nuXD8W 815 .. section: Library 816 817 Add .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 826 Add .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 835 Fixed Y2038 problem in loading binary PLists. 836 837 .. 838 839 .. bpo: 23735 840 .. date: 9591 841 .. nonce: Y5oQ9r 842 .. section: Library 843 844 Handle terminal resizing with Readline 6.3+ by installing our own SIGWINCH 845 handler. Patch by Eric Price. 846 847 .. 848 849 .. bpo: 26586 850 .. date: 9590 851 .. nonce: V5pZNa 852 .. section: Library 853 854 In http.server, respond with "413 Request header fields too large" if there 855 are too many header fields to parse, rather than killing the connection and 856 raising an unhandled exception. Patch by Xiang Zhang. 857 858 .. 859 860 .. bpo: 22854 861 .. date: 9589 862 .. nonce: K3rMEH 863 .. section: Library 864 865 Change BufferedReader.writable() and BufferedWriter.readable() to always 866 return False. 867 868 .. 869 870 .. bpo: 25195 871 .. date: 9588 872 .. nonce: EOc4Po 873 .. section: Library 874 875 Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset 876 3603bae63c13 only works for classes) so we need to implement __ne__ 877 ourselves. Patch by Andrew Plummer. 878 879 .. 880 881 .. bpo: 26644 882 .. date: 9587 883 .. nonce: 7tt1tk 884 .. section: Library 885 886 Raise ValueError rather than SystemError when a negative length is passed to 887 SSLSocket.recv() or read(). 888 889 .. 890 891 .. bpo: 23804 892 .. date: 9586 893 .. nonce: PP63Ff 894 .. section: Library 895 896 Fix SSL recv(0) and read(0) methods to return zero bytes instead of up to 897 1024. 898 899 .. 900 901 .. bpo: 26616 902 .. date: 9585 903 .. nonce: v3QwdD 904 .. section: Library 905 906 Fixed 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 917 late during the Python shutdown process. 918 919 .. 920 921 .. bpo: 24266 922 .. date: 9583 923 .. nonce: YZgVyM 924 .. section: Library 925 926 Ctrl+C during Readline history search now cancels the search mode when 927 compiled with Readline 7. 928 929 .. 930 931 .. bpo: 26560 932 .. date: 9582 933 .. nonce: A4WXNz 934 .. section: Library 935 936 Avoid potential ValueError in BaseHandler.start_response. Initial patch by 937 Peter Inglesby. 938 939 .. 940 941 .. bpo: 26313 942 .. date: 9581 943 .. nonce: LjZAjy 944 .. original section: Library 945 .. section: Security 946 947 ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch 948 by Baji. 949 950 .. 951 952 .. bpo: 26569 953 .. date: 9580 954 .. nonce: EX8vF1 955 .. section: Library 956 957 Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex` to support 958 importing packages. 959 960 .. 961 962 .. bpo: 26499 963 .. date: 9579 964 .. nonce: NP08PI 965 .. section: Library 966 967 Account for remaining Content-Length in HTTPResponse.readline() and read1(). 968 Based on patch by Silent Ghost. Also document that HTTPResponse now supports 969 these methods. 970 971 .. 972 973 .. bpo: 25320 974 .. date: 9578 975 .. nonce: V96LIy 976 .. section: Library 977 978 Handle sockets in directories unittest discovery is scanning. Patch from 979 Victor van den Elzen. 980 981 .. 982 983 .. bpo: 16181 984 .. date: 9577 985 .. nonce: P7lLvo 986 .. section: Library 987 988 cookiejar.http2time() now returns None if year is higher than 989 datetime.MAXYEAR. 990 991 .. 992 993 .. bpo: 26513 994 .. date: 9576 995 .. nonce: HoPepy 996 .. section: Library 997 998 Fixes platform module detection of Windows Server 999 1000 .. 1001 1002 .. bpo: 23718 1003 .. date: 9575 1004 .. nonce: AMPC0o 1005 .. section: Library 1006 1007 Fixed parsing time in week 0 before Jan 1. Original patch by Tams Bence 1008 Gedai. 1009 1010 .. 1011 1012 .. bpo: 20589 1013 .. date: 9574 1014 .. nonce: NsQ_I1 1015 .. section: Library 1016 1017 Invoking Path.owner() and Path.group() on Windows now raise 1018 NotImplementedError instead of ImportError. 1019 1020 .. 1021 1022 .. bpo: 26177 1023 .. date: 9573 1024 .. nonce: HlSWer 1025 .. section: Library 1026 1027 Fixed the keys() method for Canvas and Scrollbar widgets. 1028 1029 .. 1030 1031 .. bpo: 15068 1032 .. date: 9572 1033 .. nonce: bcHtiw 1034 .. section: Library 1035 1036 Got rid of excessive buffering in the fileinput module. The bufsize 1037 parameter is no longer used. 1038 1039 .. 1040 1041 .. bpo: 2202 1042 .. date: 9571 1043 .. nonce: dk9sd0 1044 .. section: Library 1045 1046 Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls. 1047 Initial patch by Mathieu Dupuy. 1048 1049 .. 1050 1051 .. bpo: 25718 1052 .. date: 9570 1053 .. nonce: 4EjZyv 1054 .. section: Library 1055 1056 Fixed 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 1065 Fixed 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 1074 Fixed the subnets() methods in IP network classes for the case when 1075 resulting prefix length is equal to maximal prefix length. Based on patch by 1076 Xiang Zhang. 1077 1078 .. 1079 1080 .. bpo: 26385 1081 .. date: 9567 1082 .. nonce: 50bDXm 1083 .. section: Library 1084 1085 Remove the file if the internal open() call in NamedTemporaryFile() fails. 1086 Patch by Silent Ghost. 1087 1088 .. 1089 1090 .. bpo: 26402 1091 .. date: 9566 1092 .. nonce: k7DVuU 1093 .. section: Library 1094 1095 Fix XML-RPC client to retry when the server shuts down a persistent 1096 connection. This was a regression related to the new 1097 http.client.RemoteDisconnected exception in 3.5.0a4. 1098 1099 .. 1100 1101 .. bpo: 25913 1102 .. date: 9565 1103 .. nonce: 5flb95 1104 .. section: Library 1105 1106 Leading ``<~`` is optional now in base64.a85decode() with adobe=True. Patch 1107 by Swati Jaiswal. 1108 1109 .. 1110 1111 .. bpo: 26186 1112 .. date: 9564 1113 .. nonce: R9rfiL 1114 .. section: Library 1115 1116 Remove an invalid type check in importlib.util.LazyLoader. 1117 1118 .. 1119 1120 .. bpo: 26367 1121 .. date: 9563 1122 .. nonce: ckpNeU 1123 .. section: Library 1124 1125 importlib.__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 1135 In the "socketserver" module, shut down the request (closing the connected 1136 socket) 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 1146 On 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 1155 os.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 1164 The os.scandir() iterator now closes file descriptor not only when the 1165 iteration 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 1174 Restored 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 1183 Add UTF-8 suggestion to error message when posting a non-Latin-1 string with 1184 http.client. 1185 1186 .. 1187 1188 .. bpo: 12923 1189 .. date: 9556 1190 .. nonce: HPAu-B 1191 .. section: Library 1192 1193 Reset FancyURLopener's redirect counter even if there is an exception. 1194 Based on patches by Brian Brazil and Daniel Rocco. 1195 1196 .. 1197 1198 .. bpo: 25945 1199 .. date: 9555 1200 .. nonce: guNgNM 1201 .. section: Library 1202 1203 Fixed a crash when unpickle the functools.partial object with wrong state. 1204 Fixed a leak in failed functools.partial constructor. "args" and "keywords" 1205 attributes of functools.partial have now always types tuple and dict 1206 correspondingly. 1207 1208 .. 1209 1210 .. bpo: 26202 1211 .. date: 9554 1212 .. nonce: LPIXLg 1213 .. section: Library 1214 1215 copy.deepcopy() now correctly copies range() objects with non-atomic 1216 attributes. 1217 1218 .. 1219 1220 .. bpo: 23076 1221 .. date: 9553 1222 .. nonce: 8rphoP 1223 .. section: Library 1224 1225 Path.glob() now raises a ValueError if it's called with an invalid pattern. 1226 Patch by Thomas Nyberg. 1227 1228 .. 1229 1230 .. bpo: 19883 1231 .. date: 9552 1232 .. nonce: z9TsO6 1233 .. section: Library 1234 1235 Fixed possible integer overflows in zipimport. 1236 1237 .. 1238 1239 .. bpo: 26227 1240 .. date: 9551 1241 .. nonce: Fe6oiB 1242 .. section: Library 1243 1244 On Windows, getnameinfo(), gethostbyaddr() and gethostbyname_ex() functions 1245 of the socket module now decode the hostname from the ANSI code page rather 1246 than UTF-8. 1247 1248 .. 1249 1250 .. bpo: 26147 1251 .. date: 9550 1252 .. nonce: i-Jc01 1253 .. section: Library 1254 1255 xmlrpc 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 1264 Garbage collector now breaks reference loops with OrderedDict. 1265 1266 .. 1267 1268 .. bpo: 16620 1269 .. date: 9548 1270 .. nonce: rxpn_Y 1271 .. section: Library 1272 1273 Fixed AttributeError in msilib.Directory.glob(). 1274 1275 .. 1276 1277 .. bpo: 26013 1278 .. date: 9547 1279 .. nonce: 93RKNz 1280 .. section: Library 1281 1282 Added compatibility with broken protocol 2 pickles created in old Python 3 1283 versions (3.4.3 and lower). 1284 1285 .. 1286 1287 .. bpo: 25850 1288 .. date: 9546 1289 .. nonce: jwFPxj 1290 .. section: Library 1291 1292 Use cross-compilation by default for 64-bit Windows. 1293 1294 .. 1295 1296 .. bpo: 17633 1297 .. date: 9545 1298 .. nonce: 9mpbUO 1299 .. section: Library 1300 1301 Improve zipimport's support for namespace packages. 1302 1303 .. 1304 1305 .. bpo: 24705 1306 .. date: 9544 1307 .. nonce: IZYwjR 1308 .. section: Library 1309 1310 Fix sysconfig._parse_makefile not expanding ${} vars appearing before $() 1311 vars. 1312 1313 .. 1314 1315 .. bpo: 22138 1316 .. date: 9543 1317 .. nonce: nRNYkc 1318 .. section: Library 1319 1320 Fix mock.patch behavior when patching descriptors. Restore original values 1321 after patching. Patch contributed by Sean McCully. 1322 1323 .. 1324 1325 .. bpo: 25672 1326 .. date: 9542 1327 .. nonce: fw9RJP 1328 .. section: Library 1329 1330 In the ssl module, enable the SSL_MODE_RELEASE_BUFFERS mode option if it is 1331 safe to do so. 1332 1333 .. 1334 1335 .. bpo: 26012 1336 .. date: 9541 1337 .. nonce: IFSXNm 1338 .. section: Library 1339 1340 Don'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 1349 Ignore PermissionError when traversing a tree with pathlib.Path.[r]glob(). 1350 Patch by Ulrich Petri. 1351 1352 .. 1353 1354 .. bpo: 25447 1355 .. date: 9539 1356 .. nonce: -4m4xO 1357 .. section: Library 1358 1359 fileinput 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 1369 Copying the lru_cache() wrapper object now always works, independently from 1370 the 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 1379 Fixed possible use after free in ElementTree.XMLPullParser. 1380 1381 .. 1382 1383 .. bpo: 25860 1384 .. date: 9536 1385 .. nonce: 0hActb 1386 .. section: Library 1387 1388 os.fwalk() no longer skips remaining directories when error occurs. 1389 Original patch by Samson Lee. 1390 1391 .. 1392 1393 .. bpo: 25914 1394 .. date: 9535 1395 .. nonce: h0V61F 1396 .. section: Library 1397 1398 Fixed and simplified OrderedDict.__sizeof__. 1399 1400 .. 1401 1402 .. bpo: 25902 1403 .. date: 9534 1404 .. nonce: 6t2FmH 1405 .. section: Library 1406 1407 Fixed various refcount issues in ElementTree iteration. 1408 1409 .. 1410 1411 .. bpo: 25717 1412 .. date: 9533 1413 .. nonce: 0_xjaK 1414 .. section: Library 1415 1416 Restore the previous behaviour of tolerating most fstat() errors when 1417 opening files. This was a regression in 3.5a1, and stopped anonymous 1418 temporary files from working in special cases. 1419 1420 .. 1421 1422 .. bpo: 24903 1423 .. date: 9532 1424 .. nonce: 3LBdzb 1425 .. section: Library 1426 1427 Fix regression in number of arguments compileall accepts when '-d' is 1428 specified. The check on the number of arguments has been dropped completely 1429 as it never worked correctly anyway. 1430 1431 .. 1432 1433 .. bpo: 25764 1434 .. date: 9531 1435 .. nonce: 7WWG07 1436 .. section: Library 1437 1438 In the subprocess module, preserve any exception caused by fork() failure 1439 when 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 1449 time.tzset(). 1450 1451 .. 1452 1453 .. bpo: 14285 1454 .. date: 9529 1455 .. nonce: UyG8Hj 1456 .. section: Library 1457 1458 When executing a package with the "python -m package" option, and package 1459 initialization fails, a proper traceback is now reported. The "runpy" 1460 module now lets exceptions from package initialization pass back to the 1461 caller, rather than raising ImportError. 1462 1463 .. 1464 1465 .. bpo: 19771 1466 .. date: 9528 1467 .. nonce: 5NG-bg 1468 .. section: Library 1469 1470 Also in runpy and the "-m" option, omit the irrelevant message ". . . is a 1471 package and cannot be directly executed" if the package could not even be 1472 initialized (e.g. due to a bad ``*.pyc`` file). 1473 1474 .. 1475 1476 .. bpo: 25177 1477 .. date: 9527 1478 .. nonce: aNR4Ha 1479 .. section: Library 1480 1481 Fixed problem with the mean of very small and very large numbers. As a side 1482 effect, statistics.mean and statistics.variance should be significantly 1483 faster. 1484 1485 .. 1486 1487 .. bpo: 25718 1488 .. date: 9526 1489 .. nonce: D9mHZF 1490 .. section: Library 1491 1492 Fixed 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 1501 Fixed 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 1510 Fixed a reference leak in pickle.loads() when unpickling invalid data 1511 including tuple instructions. 1512 1513 .. 1514 1515 .. bpo: 25663 1516 .. date: 9523 1517 .. nonce: Ofwfqa 1518 .. section: Library 1519 1520 In the Readline completer, avoid listing duplicate global names, and search 1521 the global namespace before searching builtins. 1522 1523 .. 1524 1525 .. bpo: 25688 1526 .. date: 9522 1527 .. nonce: 8P1HOv 1528 .. section: Library 1529 1530 Fixed file leak in ElementTree.iterparse() raising an error. 1531 1532 .. 1533 1534 .. bpo: 23914 1535 .. date: 9521 1536 .. nonce: 1sEz4J 1537 .. section: Library 1538 1539 Fixed SystemError raised by unpickler on broken pickle data. 1540 1541 .. 1542 1543 .. bpo: 25691 1544 .. date: 9520 1545 .. nonce: ZEaapY 1546 .. section: Library 1547 1548 Fixed crash on deleting ElementTree.Element attributes. 1549 1550 .. 1551 1552 .. bpo: 25624 1553 .. date: 9519 1554 .. nonce: ed-fM0 1555 .. section: Library 1556 1557 ZipFile now always writes a ZIP_STORED header for directory entries. Patch 1558 by Dingyuan Wang. 1559 1560 .. 1561 1562 .. bpo: 0 1563 .. date: 9518 1564 .. nonce: rtZyid 1565 .. section: Library 1566 1567 Skip 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 1576 Add asyncio.StreamReader.readuntil() method. Patch by . 1577 1578 .. 1579 1580 .. bpo: 25924 1581 .. date: 9516 1582 .. nonce: Uxr2vt 1583 .. section: Library 1584 1585 Avoid unnecessary serialization of getaddrinfo(3) calls on OS X versions 1586 10.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 1595 Avoid unnecessary serialization of getaddrinfo(3) calls on current versions 1596 of 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 1605 Fix asyncio/subprocess.communicate() to handle empty input. Patch by Jack 1606 O'Connor. 1607 1608 .. 1609 1610 .. bpo: 27040 1611 .. date: 9513 1612 .. nonce: UASyCC 1613 .. section: Library 1614 1615 Add loop.get_exception_handler method 1616 1617 .. 1618 1619 .. bpo: 27041 1620 .. date: 9512 1621 .. nonce: p3893U 1622 .. section: Library 1623 1624 asyncio: Add loop.create_future method 1625 1626 .. 1627 1628 .. bpo: 27223 1629 .. date: 9511 1630 .. nonce: PRf4I6 1631 .. section: Library 1632 1633 asyncio: 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 1643 asyncio: 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 1652 Paste with text selected now replaces the selection on X11. This matches how 1653 paste works on Windows, Mac, most modern Linux apps, and ttk widgets. 1654 Original patch by Serhiy Storchaka. 1655 1656 .. 1657 1658 .. bpo: 24759 1659 .. date: 9508 1660 .. nonce: ccmySu 1661 .. section: IDLE 1662 1663 Make clear in idlelib.idle_test.__init__ that the directory is a private 1664 implementation of test.test_idle and tool for maintainers. 1665 1666 .. 1667 1668 .. bpo: 27196 1669 .. date: 9507 1670 .. nonce: 3yp8TF 1671 .. section: IDLE 1672 1673 Stop 'ThemeChanged' warnings when running IDLE tests. These persisted after 1674 other warnings were suppressed in #20567. Apply Serhiy Storchaka's 1675 update_idletasks solution to four test files. Record this additional advice 1676 in idle_test/README.txt 1677 1678 .. 1679 1680 .. bpo: 20567 1681 .. date: 9506 1682 .. nonce: hhT32b 1683 .. section: IDLE 1684 1685 Revise idle_test/README.txt with advice about avoiding tk warning messages 1686 from tests. Apply advice to several IDLE tests. 1687 1688 .. 1689 1690 .. bpo: 27117 1691 .. date: 9505 1692 .. nonce: YrLPf4 1693 .. section: IDLE 1694 1695 Make colorizer htest and turtledemo work with dark themes. Move code for 1696 configuring text widget colors to a new function. 1697 1698 .. 1699 1700 .. bpo: 26673 1701 .. date: 9504 1702 .. nonce: dh0_Ij 1703 .. section: IDLE 1704 1705 When tk reports font size as 0, change to size 10. Such fonts on Linux 1706 prevented the configuration dialog from opening. 1707 1708 .. 1709 1710 .. bpo: 21939 1711 .. date: 9503 1712 .. nonce: pWz-OK 1713 .. section: IDLE 1714 1715 Add 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 1724 Add 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 1733 Add test for IDLE's search dialog. Original patch by Westley Martnez. 1734 1735 .. 1736 1737 .. bpo: 21703 1738 .. date: 9500 1739 .. nonce: BAZfDM 1740 .. section: IDLE 1741 1742 Add 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 1751 Add ConfigDialog.remove_var_callbacks to stop memory leaks. 1752 1753 .. 1754 1755 .. bpo: 23977 1756 .. date: 9498 1757 .. nonce: miDjj8 1758 .. section: IDLE 1759 1760 Add more asserts to test_delegator. 1761 1762 .. 1763 1764 .. bpo: 20640 1765 .. date: 9497 1766 .. nonce: PmI-G8 1767 .. section: IDLE 1768 1769 Add tests for idlelib.configHelpSourceEdit. Patch by Saimadhav Heblikar. 1770 1771 .. 1772 1773 .. bpo: 0 1774 .. date: 9496 1775 .. nonce: _YJfG7 1776 .. section: IDLE 1777 1778 In the 'IDLE-console differences' section of the IDLE doc, clarify how 1779 running 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 1788 fix incorrect change in IOBinding that prevented printing. Augment IOBinding 1789 htest to include all major IOBinding functions. 1790 1791 .. 1792 1793 .. bpo: 25905 1794 .. date: 9494 1795 .. nonce: FzNb3B 1796 .. section: IDLE 1797 1798 Revert unwanted conversion of ' to RIGHT SINGLE QUOTATION MARK in 1799 README.txt and open this and NEWS.txt with 'ascii'. Re-encode CREDITS.txt to 1800 utf-8 and open it with 'utf-8'. 1801 1802 .. 1803 1804 .. bpo: 19489 1805 .. date: 9493 1806 .. nonce: jvzuO7 1807 .. section: Documentation 1808 1809 Moved the search box from the sidebar to the header and footer of each page. 1810 Patch by Ammar Askar. 1811 1812 .. 1813 1814 .. bpo: 24136 1815 .. date: 9492 1816 .. nonce: MUK0zK 1817 .. section: Documentation 1818 1819 Document 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 1828 Used 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 1837 Rework the Readline module documentation to group related functions 1838 together, and add more details such as what underlying Readline functions 1839 and variables are accessed. 1840 1841 .. 1842 1843 .. bpo: 23606 1844 .. date: 9489 1845 .. nonce: 9MhIso 1846 .. section: Documentation 1847 1848 Adds note to ctypes documentation regarding cdll.msvcrt. 1849 1850 .. 1851 1852 .. bpo: 25500 1853 .. date: 9488 1854 .. nonce: AV47eF 1855 .. section: Documentation 1856 1857 Fix documentation to not claim that __import__ is searched for in the global 1858 scope. 1859 1860 .. 1861 1862 .. bpo: 26014 1863 .. date: 9487 1864 .. nonce: ptdZ_I 1865 .. section: Documentation 1866 1867 Update 3.x packaging documentation: * "See also" links to the new docs are 1868 now provided in the legacy pages * links to setuptools documentation have 1869 been updated 1870 1871 .. 1872 1873 .. bpo: 21916 1874 .. date: 9486 1875 .. nonce: muwCyp 1876 .. section: Tests 1877 1878 Added tests for the turtle module. Patch by ingrid, Gregory Loyse and Jelle 1879 Zijlstra. 1880 1881 .. 1882 1883 .. bpo: 26523 1884 .. date: 9485 1885 .. nonce: em_Uzt 1886 .. section: Tests 1887 1888 The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested. 1889 1890 .. 1891 1892 .. bpo: 26015 1893 .. date: 9484 1894 .. nonce: p3oWK3 1895 .. section: Tests 1896 1897 Added new tests for pickling iterators of mutable sequences. 1898 1899 .. 1900 1901 .. bpo: 26325 1902 .. date: 9483 1903 .. nonce: KOUc82 1904 .. section: Tests 1905 1906 Added test.support.check_no_resource_warning() to check that no 1907 ResourceWarning is emitted. 1908 1909 .. 1910 1911 .. bpo: 25940 1912 .. date: 9482 1913 .. nonce: PgiLVN 1914 .. section: Tests 1915 1916 Changed test_ssl to use self-signed.pythontest.net. This avoids relying on 1917 svn.python.org, which recently changed root certificate. 1918 1919 .. 1920 1921 .. bpo: 25616 1922 .. date: 9481 1923 .. nonce: Qr-60p 1924 .. section: Tests 1925 1926 Tests for OrderedDict are extracted from test_collections into separate file 1927 test_ordered_dict. 1928 1929 .. 1930 1931 .. bpo: 26583 1932 .. date: 9480 1933 .. nonce: Up7hTl 1934 .. section: Tests 1935 1936 Skip test_timestamp_overflow in test_import if bytecode files cannot be 1937 written. 1938 1939 .. 1940 1941 .. bpo: 26884 1942 .. date: 9479 1943 .. nonce: O8-azL 1944 .. section: Build 1945 1946 Fix 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 1955 Disable the rules for running _freeze_importlib and pgen when 1956 cross-compiling. The output of these programs is normally saved with the 1957 source code anyway, and is still regenerated when doing a native build. 1958 Patch by Xavier de Gaye. 1959 1960 .. 1961 1962 .. bpo: 27229 1963 .. date: 9477 1964 .. nonce: C2NDch 1965 .. section: Build 1966 1967 Fix the cross-compiling pgen rule for in-tree builds. Patch by Xavier de 1968 Gaye. 1969 1970 .. 1971 1972 .. bpo: 21668 1973 .. date: 9476 1974 .. nonce: 4sMAa1 1975 .. section: Build 1976 1977 Link audioop, _datetime, _ctypes_test modules to libm, except on Mac OS X. 1978 Patch written by Xavier de Gaye. 1979 1980 .. 1981 1982 .. bpo: 25702 1983 .. date: 9475 1984 .. nonce: ipxyJs 1985 .. section: Build 1986 1987 A --with-lto configure option has been added that will enable link time 1988 optimizations at build time during a make profile-opt. Some compilers and 1989 toolchains are known to not produce stable code when using LTO, be sure to 1990 test things thoroughly before relying on it. It can provide a few % speed up 1991 over profile-opt alone. 1992 1993 .. 1994 1995 .. bpo: 26624 1996 .. date: 9474 1997 .. nonce: 4fGrTl 1998 .. section: Build 1999 2000 Adds 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 2009 Avoid error about nonexistant fileblocks.o file by using a lower-level check 2010 for st_blocks in struct stat. 2011 2012 .. 2013 2014 .. bpo: 26079 2015 .. date: 9472 2016 .. nonce: mEzW0O 2017 .. section: Build 2018 2019 Fixing 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 2028 Update Windows builds to use OpenSSL 1.0.2g. 2029 2030 .. 2031 2032 .. bpo: 24421 2033 .. date: 9470 2034 .. nonce: 2zY7vM 2035 .. section: Build 2036 2037 Compile Modules/_math.c once, before building extensions. Previously it 2038 could 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 2047 Added ``--pgo`` and ``--pgo-job`` arguments to ``PCbuild\build.bat`` for 2048 building 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 2059 Add 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 2069 Fix installation of Python on UNIX with make -j9. 2070 2071 .. 2072 2073 .. bpo: 26930 2074 .. date: 9466 2075 .. nonce: Sqz2O3 2076 .. section: Build 2077 2078 Update OS X 10.5+ 32-bit-only installer to build and link with OpenSSL 2079 1.0.2h. 2080 2081 .. 2082 2083 .. bpo: 26268 2084 .. date: 9465 2085 .. nonce: I3-YLh 2086 .. section: Build 2087 2088 Update 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 2097 Support 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 2106 Do not enable unreachable code warnings when using gcc as the option does 2107 not work correctly in older versions of gcc and has been silently removed as 2108 of gcc-4.5. 2109 2110 .. 2111 2112 .. bpo: 27053 2113 .. date: 9462 2114 .. nonce: 1IRbae 2115 .. section: Windows 2116 2117 Updates 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 2126 Update the prepare_ssl.py script to handle OpenSSL releases that don't 2127 include 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 2136 bdist_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 2145 Update the list of magic numbers in launcher 2146 2147 .. 2148 2149 .. bpo: 26065 2150 .. date: 9458 2151 .. nonce: SkVLJp 2152 .. section: Windows 2153 2154 Excludes venv from library when generating embeddable distro. 2155 2156 .. 2157 2158 .. bpo: 26799 2159 .. date: 9457 2160 .. nonce: gK2VXX 2161 .. section: Tools/Demos 2162 2163 Fix python-gdb.py: don't get C types once when the Python code is loaded, 2164 but get C types on demand. The C types can change if python-gdb.py is loaded 2165 before 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 2174 Fix the Freeze tool to properly use flags passed through configure. Patch by 2175 Daniel Shaulov. 2176 2177 .. 2178 2179 .. bpo: 26489 2180 .. date: 9455 2181 .. nonce: rJ_U5S 2182 .. section: Tools/Demos 2183 2184 Add dictionary unpacking support to Tools/parser/unparse.py. Patch by Guo Ci 2185 Teo. 2186 2187 .. 2188 2189 .. bpo: 26316 2190 .. date: 9454 2191 .. nonce: QJvVOi 2192 .. section: Tools/Demos 2193 2194 Fix variable name typo in Argument Clinic. 2195 2196 .. 2197 2198 .. bpo: 17500 2199 .. date: 9453 2200 .. nonce: QTZbRV 2201 .. section: Windows 2202 2203 Remove unused and outdated icons. (See also: 2204 https://github.com/python/pythondotorg/issues/945) 2205