1.. release date: 2016-05-16 2.. bpo: 26657 3.. date: 9135 4.. nonce: C_-XFg 5.. original section: Library 6.. section: Security 7 8Fix directory traversal vulnerability with http.server on Windows. This 9fixes a regression that was introduced in 3.3.4rc1 and 3.4.0rc1. Based on 10patch by Philipp Hagemeister. 11 12.. 13 14.. bpo: 26313 15.. date: 9102 16.. nonce: LjZAjy 17.. original section: Library 18.. section: Security 19 20ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch 21by Baji. 22 23.. 24 25.. bpo: 25939 26.. date: 9076 27.. nonce: X49Fqd 28.. original section: Library 29.. section: Security 30 31On Windows open the cert store readonly in ssl.enum_certificates. 32 33.. 34 35.. bpo: 20041 36.. date: 9253 37.. nonce: TypyGp 38.. section: Core and Builtins 39 40Fixed TypeError when frame.f_trace is set to None. Patch by Xavier de Gaye. 41 42.. 43 44.. bpo: 26168 45.. date: 9252 46.. nonce: -nPBL6 47.. section: Core and Builtins 48 49Fixed possible refleaks in failing Py_BuildValue() with the "N" format unit. 50 51.. 52 53.. bpo: 26991 54.. date: 9251 55.. nonce: yWGNhz 56.. section: Core and Builtins 57 58Fix possible refleak when creating a function with annotations. 59 60.. 61 62.. bpo: 27039 63.. date: 9250 64.. nonce: oO-wLV 65.. section: Core and Builtins 66 67Fixed bytearray.remove() for values greater than 127. Based on patch by Joe 68Jevnik. 69 70.. 71 72.. bpo: 23640 73.. date: 9249 74.. nonce: kvNC4c 75.. section: Core and Builtins 76 77int.from_bytes() no longer bypasses constructors for subclasses. 78 79.. 80 81.. bpo: 27005 82.. date: 9248 83.. nonce: ZtcJf- 84.. section: Core and Builtins 85 86Optimized the float.fromhex() class method for exact float. It is now 2 87times faster. 88 89.. 90 91.. bpo: 18531 92.. date: 9247 93.. nonce: PkXgtO 94.. section: Core and Builtins 95 96Single var-keyword argument of dict subtype was passed unscathed to the 97C-defined function. Now it is converted to exact dict. 98 99.. 100 101.. bpo: 26811 102.. date: 9246 103.. nonce: oNzUWt 104.. section: Core and Builtins 105 106gc.get_objects() no longer contains a broken tuple with NULL pointer. 107 108.. 109 110.. bpo: 20120 111.. date: 9245 112.. nonce: c-FZZc 113.. section: Core and Builtins 114 115Use RawConfigParser for .pypirc parsing, removing support for interpolation 116unintentionally added with move to Python 3. Behavior no longer does any 117interpolation in .pypirc files, matching behavior in Python 2.7 and 118Setuptools 19.0. 119 120.. 121 122.. bpo: 26249 123.. date: 9244 124.. nonce: ZbpWF3 125.. section: Core and Builtins 126 127Memory functions of the :c:func:`PyMem_Malloc` domain 128(:c:data:`PYMEM_DOMAIN_MEM`) now use the :ref:`pymalloc allocator 129<pymalloc>` rather than system :c:func:`malloc`. Applications calling 130:c:func:`PyMem_Malloc` without holding the GIL can now crash: use 131``PYTHONMALLOC=debug`` environment variable to validate the usage of memory 132allocators in your application. 133 134.. 135 136.. bpo: 26802 137.. date: 9243 138.. nonce: hWpU4v 139.. section: Core and Builtins 140 141Optimize function calls only using unpacking like ``func(*tuple)`` (no other 142positional argument, no keyword): avoid copying the tuple. Patch written by 143Joe Jevnik. 144 145.. 146 147.. bpo: 26659 148.. date: 9242 149.. nonce: 5PRa83 150.. section: Core and Builtins 151 152Make the builtin slice type support cycle collection. 153 154.. 155 156.. bpo: 26718 157.. date: 9241 158.. nonce: K5PQ8j 159.. section: Core and Builtins 160 161super.__init__ no longer leaks memory if called multiple times. NOTE: A 162direct call of super.__init__ is not endorsed! 163 164.. 165 166.. bpo: 27138 167.. date: 9240 168.. nonce: ifYEro 169.. section: Core and Builtins 170 171Fix the doc comment for FileFinder.find_spec(). 172 173.. 174 175.. bpo: 27147 176.. date: 9239 177.. nonce: tCCgmH 178.. section: Core and Builtins 179 180Mention :pep:`420` in the importlib docs. 181 182.. 183 184.. bpo: 25339 185.. date: 9238 186.. nonce: ZcaC2E 187.. section: Core and Builtins 188 189PYTHONIOENCODING now has priority over locale in setting the error handler 190for stdin and stdout. 191 192.. 193 194.. bpo: 26494 195.. date: 9237 196.. nonce: G6eXIi 197.. section: Core and Builtins 198 199Fixed crash on iterating exhausting iterators. Affected classes are generic 200sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, 201frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator. 202 203.. 204 205.. bpo: 26574 206.. date: 9236 207.. nonce: D2YL_w 208.. section: Core and Builtins 209 210Optimize ``bytes.replace(b'', b'.')`` and ``bytearray.replace(b'', b'.')``. 211Patch written by Josh Snider. 212 213.. 214 215.. bpo: 26581 216.. date: 9235 217.. nonce: yNA7nm 218.. section: Core and Builtins 219 220If coding cookie is specified multiple times on a line in Python source code 221file, only the first one is taken to account. 222 223.. 224 225.. bpo: 19711 226.. date: 9234 227.. nonce: gDDPJE 228.. section: Core and Builtins 229 230Add tests for reloading namespace packages. 231 232.. 233 234.. bpo: 21099 235.. date: 9233 236.. nonce: CuMWZJ 237.. section: Core and Builtins 238 239Switch applicable importlib tests to use :pep:`451` API. 240 241.. 242 243.. bpo: 26563 244.. date: 9232 245.. nonce: lyrB2Q 246.. section: Core and Builtins 247 248Debug hooks on Python memory allocators now raise a fatal error if functions 249of the :c:func:`PyMem_Malloc` family are called without holding the GIL. 250 251.. 252 253.. bpo: 26564 254.. date: 9231 255.. nonce: xeRXaz 256.. section: Core and Builtins 257 258On error, the debug hooks on Python memory allocators now use the 259:mod:`tracemalloc` module to get the traceback where a memory block was 260allocated. 261 262.. 263 264.. bpo: 26558 265.. date: 9230 266.. nonce: s05jz7 267.. section: Core and Builtins 268 269The debug hooks on Python memory allocator :c:func:`PyObject_Malloc` now 270detect when functions are called without holding the GIL. 271 272.. 273 274.. bpo: 26516 275.. date: 9229 276.. nonce: OjekqZ 277.. section: Core and Builtins 278 279Add :envvar:`PYTHONMALLOC` environment variable to set the Python memory 280allocators and/or install debug hooks. 281 282.. 283 284.. bpo: 26516 285.. date: 9228 286.. nonce: chNJuF 287.. section: Core and Builtins 288 289The :c:func:`PyMem_SetupDebugHooks` function can now also be used on Python 290compiled in release mode. 291 292.. 293 294.. bpo: 26516 295.. date: 9227 296.. nonce: q7fu1f 297.. section: Core and Builtins 298 299The :envvar:`PYTHONMALLOCSTATS` environment variable can now also be used on 300Python compiled in release mode. It now has no effect if set to an empty 301string. 302 303.. 304 305.. bpo: 26516 306.. date: 9226 307.. nonce: 2k9k6R 308.. section: Core and Builtins 309 310In debug mode, debug hooks are now also installed on Python memory 311allocators when Python is configured without pymalloc. 312 313.. 314 315.. bpo: 26464 316.. date: 9225 317.. nonce: 7BreGz 318.. section: Core and Builtins 319 320Fix str.translate() when string is ASCII and first replacements removes 321character, but next replacement uses a non-ASCII character or a string 322longer than 1 character. Regression introduced in Python 3.5.0. 323 324.. 325 326.. bpo: 22836 327.. date: 9224 328.. nonce: cimt1y 329.. section: Core and Builtins 330 331Ensure exception reports from PyErr_Display() and PyErr_WriteUnraisable() 332are sensible even when formatting them produces secondary errors. This 333affects the reports produced by sys.__excepthook__() and when __del__() 334raises an exception. 335 336.. 337 338.. bpo: 26302 339.. date: 9223 340.. nonce: UD9XQt 341.. section: Core and Builtins 342 343Correct behavior to reject comma as a legal character for cookie names. 344 345.. 346 347.. bpo: 26136 348.. date: 9222 349.. nonce: eZ0t1K 350.. section: Core and Builtins 351 352Upgrade the warning when a generator raises StopIteration from 353PendingDeprecationWarning to DeprecationWarning. Patch by Anish Shah. 354 355.. 356 357.. bpo: 26204 358.. date: 9221 359.. nonce: x3Zp8E 360.. section: Core and Builtins 361 362The compiler now ignores all constant statements: bytes, str, int, float, 363complex, name constants (None, False, True), Ellipsis and ast.Constant; not 364only str and int. For example, ``1.0`` is now ignored in ``def f(): 1.0``. 365 366.. 367 368.. bpo: 4806 369.. date: 9220 370.. nonce: i9m3hj 371.. section: Core and Builtins 372 373Avoid masking the original TypeError exception when using star (``*``) 374unpacking in function calls. Based on patch by Hagen Fürstenau and Daniel 375Urban. 376 377.. 378 379.. bpo: 26146 380.. date: 9219 381.. nonce: HKrUth 382.. section: Core and Builtins 383 384Add a new kind of AST node: ``ast.Constant``. It can be used by external AST 385optimizers, but the compiler does not emit directly such node. 386 387.. 388 389.. bpo: 23601 390.. date: 9218 391.. nonce: 2E4seG 392.. section: Core and Builtins 393 394Sped-up allocation of dict key objects by using Python's small object 395allocator. (Contributed by Julian Taylor.) 396 397.. 398 399.. bpo: 18018 400.. date: 9217 401.. nonce: XKKap3 402.. section: Core and Builtins 403 404Import raises ImportError instead of SystemError if a relative import is 405attempted without a known parent package. 406 407.. 408 409.. bpo: 25843 410.. date: 9216 411.. nonce: NtJZie 412.. section: Core and Builtins 413 414When compiling code, don't merge constants if they are equal but have a 415different types. For example, ``f1, f2 = lambda: 1, lambda: 1.0`` is now 416correctly compiled to two different functions: ``f1()`` returns ``1`` 417(``int``) and ``f2()`` returns ``1.0`` (``float``), even if ``1`` and 418``1.0`` are equal. 419 420.. 421 422.. bpo: 26107 423.. date: 9215 424.. nonce: q0LBMY 425.. section: Core and Builtins 426 427The format of the ``co_lnotab`` attribute of code objects changes to support 428negative line number delta. 429 430.. 431 432.. bpo: 26154 433.. date: 9214 434.. nonce: MtnRAH 435.. section: Core and Builtins 436 437Add a new private _PyThreadState_UncheckedGet() function to get the current 438Python thread state, but don't issue a fatal error if it is NULL. This new 439function must be used instead of accessing directly the 440_PyThreadState_Current variable. The variable is no more exposed since 441Python 3.5.1 to hide the exact implementation of atomic C types, to avoid 442compiler issues. 443 444.. 445 446.. bpo: 25791 447.. date: 9213 448.. nonce: gllzPw 449.. section: Core and Builtins 450 451If __package__ != __spec__.parent or if neither __package__ or __spec__ are 452defined then ImportWarning is raised. 453 454.. 455 456.. bpo: 22995 457.. date: 9212 458.. nonce: KYNKvs 459.. section: Core and Builtins 460 461[UPDATE] Comment out the one of the pickleability tests in 462_PyObject_GetState() due to regressions observed in Cython-based projects. 463 464.. 465 466.. bpo: 25961 467.. date: 9211 468.. nonce: Hdjjw0 469.. section: Core and Builtins 470 471Disallowed null characters in the type name. 472 473.. 474 475.. bpo: 25973 476.. date: 9210 477.. nonce: Ud__ZP 478.. section: Core and Builtins 479 480Fix segfault when an invalid nonlocal statement binds a name starting with 481two underscores. 482 483.. 484 485.. bpo: 22995 486.. date: 9209 487.. nonce: Wq0E86 488.. section: Core and Builtins 489 490Instances of extension types with a state that aren't subclasses of list or 491dict and haven't implemented any pickle-related methods (__reduce__, 492__reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no 493longer be pickled. Including memoryview. 494 495.. 496 497.. bpo: 20440 498.. date: 9208 499.. nonce: GCwOfH 500.. section: Core and Builtins 501 502Massive replacing unsafe attribute setting code with special macro 503Py_SETREF. 504 505.. 506 507.. bpo: 25766 508.. date: 9207 509.. nonce: jn93Yu 510.. section: Core and Builtins 511 512Special method __bytes__() now works in str subclasses. 513 514.. 515 516.. bpo: 25421 517.. date: 9206 518.. nonce: c47YEL 519.. section: Core and Builtins 520 521__sizeof__ methods of builtin types now use dynamic basic size. This allows 522sys.getsize() to work correctly with their subclasses with __slots__ 523defined. 524 525.. 526 527.. bpo: 25709 528.. date: 9205 529.. nonce: WwGm2k 530.. section: Core and Builtins 531 532Fixed problem with in-place string concatenation and utf-8 cache. 533 534.. 535 536.. bpo: 5319 537.. date: 9204 538.. nonce: HxlGwI 539.. section: Core and Builtins 540 541New Py_FinalizeEx() API allowing Python to set an exit status of 120 on 542failure to flush buffered streams. 543 544.. 545 546.. bpo: 25485 547.. date: 9203 548.. nonce: 9qnaPt 549.. section: Core and Builtins 550 551telnetlib.Telnet is now a context manager. 552 553.. 554 555.. bpo: 24097 556.. date: 9202 557.. nonce: Vt4E-i 558.. section: Core and Builtins 559 560Fixed crash in object.__reduce__() if slot name is freed inside __getattr__. 561 562.. 563 564.. bpo: 24731 565.. date: 9201 566.. nonce: h9-hnz 567.. section: Core and Builtins 568 569Fixed crash on converting objects with special methods __bytes__, __trunc__, 570and __float__ returning instances of subclasses of bytes, int, and float to 571subclasses of bytes, int, and float correspondingly. 572 573.. 574 575.. bpo: 25630 576.. date: 9200 577.. nonce: ZxzcoY 578.. section: Core and Builtins 579 580Fix a possible segfault during argument parsing in functions that accept 581filesystem paths. 582 583.. 584 585.. bpo: 23564 586.. date: 9199 587.. nonce: XHarGG 588.. section: Core and Builtins 589 590Fixed a partially broken sanity check in the _posixsubprocess internals 591regarding how fds_to_pass were passed to the child. The bug had no actual 592impact as subprocess.py already avoided it. 593 594.. 595 596.. bpo: 25388 597.. date: 9198 598.. nonce: zm3uuQ 599.. section: Core and Builtins 600 601Fixed tokenizer crash when processing undecodable source code with a null 602byte. 603 604.. 605 606.. bpo: 25462 607.. date: 9197 608.. nonce: eXDzgO 609.. section: Core and Builtins 610 611The hash of the key now is calculated only once in most operations in C 612implementation of OrderedDict. 613 614.. 615 616.. bpo: 22995 617.. date: 9196 618.. nonce: 90kpuP 619.. section: Core and Builtins 620 621Default implementation of __reduce__ and __reduce_ex__ now rejects builtin 622types with not defined __new__. 623 624.. 625 626.. bpo: 24802 627.. date: 9195 628.. nonce: Qie066 629.. section: Core and Builtins 630 631Avoid buffer overreads when int(), float(), compile(), exec() and eval() are 632passed bytes-like objects. These objects are not necessarily terminated by 633a null byte, but the functions assumed they were. 634 635.. 636 637.. bpo: 25555 638.. date: 9194 639.. nonce: MUpG-j 640.. section: Core and Builtins 641 642Fix parser and AST: fill lineno and col_offset of "arg" node when compiling 643AST from Python objects. 644 645.. 646 647.. bpo: 24726 648.. date: 9193 649.. nonce: AHk4v2 650.. section: Core and Builtins 651 652Fixed a crash and leaking NULL in repr() of OrderedDict that was mutated by 653direct calls of dict methods. 654 655.. 656 657.. bpo: 25449 658.. date: 9192 659.. nonce: VqTOFi 660.. section: Core and Builtins 661 662Iterating OrderedDict with keys with unstable hash now raises KeyError in C 663implementations as well as in Python implementation. 664 665.. 666 667.. bpo: 25395 668.. date: 9191 669.. nonce: htkE3W 670.. section: Core and Builtins 671 672Fixed crash when highly nested OrderedDict structures were garbage 673collected. 674 675.. 676 677.. bpo: 25401 678.. date: 9190 679.. nonce: ofrAtd 680.. section: Core and Builtins 681 682Optimize bytes.fromhex() and bytearray.fromhex(): they are now between 2x 683and 3.5x faster. 684 685.. 686 687.. bpo: 25399 688.. date: 9189 689.. nonce: dNKIhY 690.. section: Core and Builtins 691 692Optimize bytearray % args using the new private _PyBytesWriter API. 693Formatting is now between 2.5 and 5 times faster. 694 695.. 696 697.. bpo: 25274 698.. date: 9188 699.. nonce: QCGvAF 700.. section: Core and Builtins 701 702sys.setrecursionlimit() now raises a RecursionError if the new recursion 703limit is too low depending at the current recursion depth. Modify also the 704"lower-water mark" formula to make it monotonic. This mark is used to decide 705when the overflowed flag of the thread state is reset. 706 707.. 708 709.. bpo: 24402 710.. date: 9187 711.. nonce: MAgi3X 712.. section: Core and Builtins 713 714Fix input() to prompt to the redirected stdout when sys.stdout.fileno() 715fails. 716 717.. 718 719.. bpo: 25349 720.. date: 9186 721.. nonce: 7lBgJ8 722.. section: Core and Builtins 723 724Optimize bytes % args using the new private _PyBytesWriter API. Formatting 725is now up to 2 times faster. 726 727.. 728 729.. bpo: 24806 730.. date: 9185 731.. nonce: Nb0znT 732.. section: Core and Builtins 733 734Prevent builtin types that are not allowed to be subclassed from being 735subclassed through multiple inheritance. 736 737.. 738 739.. bpo: 25301 740.. date: 9184 741.. nonce: hUTCfr 742.. section: Core and Builtins 743 744The UTF-8 decoder is now up to 15 times as fast for error handlers: 745``ignore``, ``replace`` and ``surrogateescape``. 746 747.. 748 749.. bpo: 24848 750.. date: 9183 751.. nonce: HlUSuy 752.. section: Core and Builtins 753 754Fixed a number of bugs in UTF-7 decoding of misformed data. 755 756.. 757 758.. bpo: 25267 759.. date: 9182 760.. nonce: SW8Gs6 761.. section: Core and Builtins 762 763The UTF-8 encoder is now up to 75 times as fast for error handlers: 764``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass``. Patch 765co-written with Serhiy Storchaka. 766 767.. 768 769.. bpo: 25280 770.. date: 9181 771.. nonce: ivTMwd 772.. section: Core and Builtins 773 774Import trace messages emitted in verbose (-v) mode are no longer formatted 775twice. 776 777.. 778 779.. bpo: 25227 780.. date: 9180 781.. nonce: 19v5rp 782.. section: Core and Builtins 783 784Optimize ASCII and latin1 encoders with the ``surrogateescape`` error 785handler: the encoders are now up to 3 times as fast. Initial patch written 786by Serhiy Storchaka. 787 788.. 789 790.. bpo: 25003 791.. date: 9179 792.. nonce: _ban92 793.. section: Core and Builtins 794 795On Solaris 11.3 or newer, os.urandom() now uses the getrandom() function 796instead of the getentropy() function. The getentropy() function is blocking 797to generate very good quality entropy, os.urandom() doesn't need such 798high-quality entropy. 799 800.. 801 802.. bpo: 9232 803.. date: 9178 804.. nonce: pjsmWw 805.. section: Core and Builtins 806 807Modify Python's grammar to allow trailing commas in the argument list of a 808function declaration. For example, "def f(\*, a = 3,): pass" is now legal. 809Patch from Mark Dickinson. 810 811.. 812 813.. bpo: 24965 814.. date: 9177 815.. nonce: wfyxbB 816.. section: Core and Builtins 817 818Implement :pep:`498` "Literal String Interpolation". This allows you to embed 819expressions inside f-strings, which are converted to normal strings at run 820time. Given x=3, then f'value={x}' == 'value=3'. Patch by Eric V. Smith. 821 822.. 823 824.. bpo: 26478 825.. date: 9176 826.. nonce: n0dB8e 827.. section: Core and Builtins 828 829Fix semantic bugs when using binary operators with dictionary views and 830tuples. 831 832.. 833 834.. bpo: 26171 835.. date: 9175 836.. nonce: 8SaQEa 837.. section: Core and Builtins 838 839Fix possible integer overflow and heap corruption in zipimporter.get_data(). 840 841.. 842 843.. bpo: 25660 844.. date: 9174 845.. nonce: 93DzBo 846.. section: Core and Builtins 847 848Fix TAB key behaviour in REPL with readline. 849 850.. 851 852.. bpo: 26288 853.. date: 9173 854.. nonce: f67RLk 855.. section: Core and Builtins 856 857Optimize PyLong_AsDouble. 858 859.. 860 861.. bpo: 26289 862.. date: 9172 863.. nonce: uG9ozG 864.. section: Core and Builtins 865 866Optimize floor and modulo division for single-digit longs. Microbenchmarks 867show 2-2.5x improvement. Built-in 'divmod' function is now also ~10% 868faster. (See also: bpo-26315) 869 870.. 871 872.. bpo: 25887 873.. date: 9171 874.. nonce: PtVIX7 875.. section: Core and Builtins 876 877Raise a RuntimeError when a coroutine object is awaited more than once. 878 879.. 880 881.. bpo: 27057 882.. date: 9170 883.. nonce: YzTA_Q 884.. section: Library 885 886Fix os.set_inheritable() on Android, ioctl() is blocked by SELinux and fails 887with EACCESS. The function now falls back to fcntl(). Patch written by 888Michał Bednarski. 889 890.. 891 892.. bpo: 27014 893.. date: 9169 894.. nonce: ui7Khn 895.. section: Library 896 897Fix infinite recursion using typing.py. Thanks to Kalle Tuure! 898 899.. 900 901.. bpo: 27031 902.. date: 9168 903.. nonce: FtvDPs 904.. section: Library 905 906Removed dummy methods in Tkinter widget classes: tk_menuBar() and 907tk_bindForTraversal(). 908 909.. 910 911.. bpo: 14132 912.. date: 9167 913.. nonce: 5wR9MN 914.. section: Library 915 916Fix urllib.request redirect handling when the target only has a query 917string. Original fix by Ján Janech. 918 919.. 920 921.. bpo: 17214 922.. date: 9166 923.. nonce: lUbZOV 924.. section: Library 925 926The "urllib.request" module now percent-encodes non-ASCII bytes found in 927redirect target URLs. Some servers send Location header fields with 928non-ASCII bytes, but "http.client" requires the request target to be 929ASCII-encodable, otherwise a UnicodeEncodeError is raised. Based on patch by 930Christian Heimes. 931 932.. 933 934.. bpo: 27033 935.. date: 9165 936.. nonce: o4XIPr 937.. section: Library 938 939The default value of the decode_data parameter for smtpd.SMTPChannel and 940smtpd.SMTPServer constructors is changed to False. 941 942.. 943 944.. bpo: 27034 945.. date: 9164 946.. nonce: ptzz_S 947.. section: Library 948 949Removed deprecated class asynchat.fifo. 950 951.. 952 953.. bpo: 26870 954.. date: 9163 955.. nonce: 5tCUlp 956.. section: Library 957 958Added readline.set_auto_history(), which can stop entries being 959automatically added to the history list. Based on patch by Tyler Crompton. 960 961.. 962 963.. bpo: 26039 964.. date: 9162 965.. nonce: JnXjiE 966.. section: Library 967 968zipfile.ZipFile.open() can now be used to write data into a ZIP file, as 969well as for extracting data. Patch by Thomas Kluyver. 970 971.. 972 973.. bpo: 26892 974.. date: 9161 975.. nonce: XIXb0h 976.. section: Library 977 978Honor debuglevel flag in urllib.request.HTTPHandler. Patch contributed by 979Chi Hsuan Yen. 980 981.. 982 983.. bpo: 22274 984.. date: 9160 985.. nonce: 0RHDMN 986.. section: Library 987 988In the subprocess module, allow stderr to be redirected to stdout even when 989stdout is not redirected. Patch by Akira Li. 990 991.. 992 993.. bpo: 26807 994.. date: 9159 995.. nonce: LXSPP6 996.. section: Library 997 998mock_open 'files' no longer error on readline at end of file. Patch from 999Yolanda Robla. 1000 1001.. 1002 1003.. bpo: 25745 1004.. date: 9158 1005.. nonce: -n8acU 1006.. section: Library 1007 1008Fixed leaking a userptr in curses panel destructor. 1009 1010.. 1011 1012.. bpo: 26977 1013.. date: 9157 1014.. nonce: 5G4HtL 1015.. section: Library 1016 1017Removed unnecessary, and ignored, call to sum of squares helper in 1018statistics.pvariance. 1019 1020.. 1021 1022.. bpo: 26002 1023.. date: 9156 1024.. nonce: bVD4pW 1025.. section: Library 1026 1027Use bisect in statistics.median instead of a linear search. Patch by Upendra 1028Kuma. 1029 1030.. 1031 1032.. bpo: 25974 1033.. date: 9155 1034.. nonce: cpOy5R 1035.. section: Library 1036 1037Make use of new Decimal.as_integer_ratio() method in statistics module. 1038Patch by Stefan Krah. 1039 1040.. 1041 1042.. bpo: 26996 1043.. date: 9154 1044.. nonce: LR__VD 1045.. section: Library 1046 1047Add secrets module as described in :pep:`506`. 1048 1049.. 1050 1051.. bpo: 26881 1052.. date: 9153 1053.. nonce: mdiq_L 1054.. section: Library 1055 1056The modulefinder module now supports extended opcode arguments. 1057 1058.. 1059 1060.. bpo: 23815 1061.. date: 9152 1062.. nonce: _krNe8 1063.. section: Library 1064 1065Fixed crashes related to directly created instances of types in _tkinter and 1066curses.panel modules. 1067 1068.. 1069 1070.. bpo: 17765 1071.. date: 9151 1072.. nonce: hiSVS1 1073.. section: Library 1074 1075weakref.ref() no longer silently ignores keyword arguments. Patch by Georg 1076Brandl. 1077 1078.. 1079 1080.. bpo: 26873 1081.. date: 9150 1082.. nonce: cYXRcH 1083.. section: Library 1084 1085xmlrpc now raises ResponseError on unsupported type tags instead of silently 1086return incorrect result. 1087 1088.. 1089 1090.. bpo: 26915 1091.. date: 9149 1092.. nonce: GoQKUL 1093.. section: Library 1094 1095The __contains__ methods in the collections ABCs now check for identity 1096before checking equality. This better matches the behavior of the concrete 1097classes, allows sensible handling of NaNs, and makes it easier to reason 1098about container invariants. 1099 1100.. 1101 1102.. bpo: 26711 1103.. date: 9148 1104.. nonce: Eu85Qw 1105.. section: Library 1106 1107Fixed the comparison of plistlib.Data with other types. 1108 1109.. 1110 1111.. bpo: 24114 1112.. date: 9147 1113.. nonce: RMRMtM 1114.. section: Library 1115 1116Fix an uninitialized variable in `ctypes.util`. 1117The bug only occurs on SunOS when the ctypes implementation searches for the 1118`crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos. 1119 1120.. 1121 1122.. bpo: 26864 1123.. date: 9146 1124.. nonce: 1KgGds 1125.. section: Library 1126 1127In urllib.request, change the proxy bypass host checking against no_proxy to 1128be case-insensitive, and to not match unrelated host names that happen to 1129have a bypassed hostname as a suffix. Patch by Xiang Zhang. 1130 1131.. 1132 1133.. bpo: 24902 1134.. date: 9145 1135.. nonce: bwWpLj 1136.. section: Library 1137 1138Print server URL on http.server startup. Initial patch by Felix Kaiser. 1139 1140.. 1141 1142.. bpo: 25788 1143.. date: 9144 1144.. nonce: 9weIV5 1145.. section: Library 1146 1147fileinput.hook_encoded() now supports an "errors" argument for passing to 1148open. Original patch by Joseph Hackman. 1149 1150.. 1151 1152.. bpo: 26634 1153.. date: 9143 1154.. nonce: FZvsSb 1155.. section: Library 1156 1157recursive_repr() now sets __qualname__ of wrapper. Patch by Xiang Zhang. 1158 1159.. 1160 1161.. bpo: 26804 1162.. date: 9142 1163.. nonce: 9Orp-G 1164.. section: Library 1165 1166urllib.request will prefer lower_case proxy environment variables over 1167UPPER_CASE or Mixed_Case ones. Patch contributed by Hans-Peter Jansen. 1168 1169.. 1170 1171.. bpo: 26837 1172.. date: 9141 1173.. nonce: 2FXGsD 1174.. section: Library 1175 1176assertSequenceEqual() now correctly outputs non-stringified differing items 1177(like bytes in the -b mode). This affects assertListEqual() and 1178assertTupleEqual(). 1179 1180.. 1181 1182.. bpo: 26041 1183.. date: 9140 1184.. nonce: bVem-p 1185.. section: Library 1186 1187Remove "will be removed in Python 3.7" from deprecation messages of 1188platform.dist() and platform.linux_distribution(). Patch by Kumaripaba 1189Miyurusara Athukorala. 1190 1191.. 1192 1193.. bpo: 26822 1194.. date: 9139 1195.. nonce: rYSL4W 1196.. section: Library 1197 1198itemgetter, attrgetter and methodcaller objects no longer silently ignore 1199keyword arguments. 1200 1201.. 1202 1203.. bpo: 26733 1204.. date: 9138 1205.. nonce: YxaJmL 1206.. section: Library 1207 1208Disassembling a class now disassembles class and static methods. Patch by 1209Xiang Zhang. 1210 1211.. 1212 1213.. bpo: 26801 1214.. date: 9137 1215.. nonce: TQGY-7 1216.. section: Library 1217 1218Fix error handling in :func:`shutil.get_terminal_size`, catch 1219:exc:`AttributeError` instead of :exc:`NameError`. Patch written by Emanuel 1220Barry. 1221 1222.. 1223 1224.. bpo: 24838 1225.. date: 9136 1226.. nonce: 3Pfx8T 1227.. section: Library 1228 1229tarfile's ustar and gnu formats now correctly calculate name and link field 1230limits for multibyte character encodings like utf-8. 1231 1232.. 1233 1234.. bpo: 26717 1235.. date: 9134 1236.. nonce: jngTdu 1237.. section: Library 1238 1239Stop encoding Latin-1-ized WSGI paths with UTF-8. Patch by Anthony Sottile. 1240 1241.. 1242 1243.. bpo: 26782 1244.. date: 9133 1245.. nonce: JWLPrH 1246.. section: Library 1247 1248Add STARTUPINFO to subprocess.__all__ on Windows. 1249 1250.. 1251 1252.. bpo: 26404 1253.. date: 9132 1254.. nonce: hXw7Bs 1255.. section: Library 1256 1257Add context manager to socketserver. Patch by Aviv Palivoda. 1258 1259.. 1260 1261.. bpo: 26735 1262.. date: 9131 1263.. nonce: riSl3b 1264.. section: Library 1265 1266Fix :func:`os.urandom` on Solaris 11.3 and newer when reading more than 12671,024 bytes: call ``getrandom()`` multiple times with a limit of 1024 bytes 1268per call. 1269 1270.. 1271 1272.. bpo: 26585 1273.. date: 9130 1274.. nonce: kfb749 1275.. section: Library 1276 1277Eliminate http.server._quote_html() and use html.escape(quote=False). Patch 1278by Xiang Zhang. 1279 1280.. 1281 1282.. bpo: 26685 1283.. date: 9129 1284.. nonce: sI_1Ff 1285.. section: Library 1286 1287Raise OSError if closing a socket fails. 1288 1289.. 1290 1291.. bpo: 16329 1292.. date: 9128 1293.. nonce: nuXD8W 1294.. section: Library 1295 1296Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'. 1297 1298.. 1299 1300.. bpo: 13952 1301.. date: 9127 1302.. nonce: SOoTVE 1303.. section: Library 1304 1305Add .csv to mimetypes.types_map. Patch by Geoff Wilson. 1306 1307.. 1308 1309.. bpo: 26587 1310.. date: 9126 1311.. nonce: Qo-B6C 1312.. section: Library 1313 1314the site module now allows .pth files to specify files to be added to 1315sys.path (e.g. zip files). 1316 1317.. 1318 1319.. bpo: 25609 1320.. date: 9125 1321.. nonce: t1ydQM 1322.. section: Library 1323 1324Introduce contextlib.AbstractContextManager and typing.ContextManager. 1325 1326.. 1327 1328.. bpo: 26709 1329.. date: 9124 1330.. nonce: luOPbP 1331.. section: Library 1332 1333Fixed Y2038 problem in loading binary PLists. 1334 1335.. 1336 1337.. bpo: 23735 1338.. date: 9123 1339.. nonce: Y5oQ9r 1340.. section: Library 1341 1342Handle terminal resizing with Readline 6.3+ by installing our own SIGWINCH 1343handler. Patch by Eric Price. 1344 1345.. 1346 1347.. bpo: 25951 1348.. date: 9122 1349.. nonce: 1CUASJ 1350.. section: Library 1351 1352Change SSLSocket.sendall() to return None, as explicitly documented for 1353plain socket objects. Patch by Aviv Palivoda. 1354 1355.. 1356 1357.. bpo: 26586 1358.. date: 9121 1359.. nonce: V5pZNa 1360.. section: Library 1361 1362In http.server, respond with "413 Request header fields too large" if there 1363are too many header fields to parse, rather than killing the connection and 1364raising an unhandled exception. Patch by Xiang Zhang. 1365 1366.. 1367 1368.. bpo: 26676 1369.. date: 9120 1370.. nonce: zLRFed 1371.. section: Library 1372 1373Added missing XMLPullParser to ElementTree.__all__. 1374 1375.. 1376 1377.. bpo: 22854 1378.. date: 9119 1379.. nonce: K3rMEH 1380.. section: Library 1381 1382Change BufferedReader.writable() and BufferedWriter.readable() to always 1383return False. 1384 1385.. 1386 1387.. bpo: 26492 1388.. date: 9118 1389.. nonce: YN18iz 1390.. section: Library 1391 1392Exhausted iterator of array.array now conforms with the behavior of 1393iterators of other mutable sequences: it lefts exhausted even if iterated 1394array is extended. 1395 1396.. 1397 1398.. bpo: 26641 1399.. date: 9117 1400.. nonce: 1ICQz0 1401.. section: Library 1402 1403doctest.DocFileTest and doctest.testfile() now support packages (module 1404splitted into multiple directories) for the package parameter. 1405 1406.. 1407 1408.. bpo: 25195 1409.. date: 9116 1410.. nonce: EOc4Po 1411.. section: Library 1412 1413Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset 14143603bae63c13 only works for classes) so we need to implement __ne__ 1415ourselves. Patch by Andrew Plummer. 1416 1417.. 1418 1419.. bpo: 26644 1420.. date: 9115 1421.. nonce: 7tt1tk 1422.. section: Library 1423 1424Raise ValueError rather than SystemError when a negative length is passed to 1425SSLSocket.recv() or read(). 1426 1427.. 1428 1429.. bpo: 23804 1430.. date: 9114 1431.. nonce: PP63Ff 1432.. section: Library 1433 1434Fix SSL recv(0) and read(0) methods to return zero bytes instead of up to 14351024. 1436 1437.. 1438 1439.. bpo: 26616 1440.. date: 9113 1441.. nonce: v3QwdD 1442.. section: Library 1443 1444Fixed a bug in datetime.astimezone() method. 1445 1446.. 1447 1448.. bpo: 26637 1449.. date: 9112 1450.. nonce: ttiUf7 1451.. section: Library 1452 1453The :mod:`importlib` module now emits an :exc:`ImportError` rather than a 1454:exc:`TypeError` if :func:`__import__` is tried during the Python shutdown 1455process but :data:`sys.path` is already cleared (set to ``None``). 1456 1457.. 1458 1459.. bpo: 21925 1460.. date: 9111 1461.. nonce: xFz-hR 1462.. section: Library 1463 1464:func:`warnings.formatwarning` now catches exceptions when calling 1465:func:`linecache.getline` and :func:`tracemalloc.get_object_traceback` to be 1466able to log :exc:`ResourceWarning` emitted late during the Python shutdown 1467process. 1468 1469.. 1470 1471.. bpo: 23848 1472.. date: 9110 1473.. nonce: RkKqPi 1474.. section: Library 1475 1476On Windows, faulthandler.enable() now also installs an exception handler to 1477dump the traceback of all Python threads on any Windows exception, not only 1478on UNIX signals (SIGSEGV, SIGFPE, SIGABRT). 1479 1480.. 1481 1482.. bpo: 26530 1483.. date: 9109 1484.. nonce: RWN1jR 1485.. section: Library 1486 1487Add C functions :c:func:`_PyTraceMalloc_Track` and 1488:c:func:`_PyTraceMalloc_Untrack` to track memory blocks using the 1489:mod:`tracemalloc` module. Add :c:func:`_PyTraceMalloc_GetTraceback` to get 1490the traceback of an object. 1491 1492.. 1493 1494.. bpo: 26588 1495.. date: 9108 1496.. nonce: uen0XP 1497.. section: Library 1498 1499The _tracemalloc now supports tracing memory allocations of multiple address 1500spaces (domains). 1501 1502.. 1503 1504.. bpo: 24266 1505.. date: 9107 1506.. nonce: YZgVyM 1507.. section: Library 1508 1509Ctrl+C during Readline history search now cancels the search mode when 1510compiled with Readline 7. 1511 1512.. 1513 1514.. bpo: 26590 1515.. date: 9106 1516.. nonce: qEy91x 1517.. section: Library 1518 1519Implement a safe finalizer for the _socket.socket type. It now releases the 1520GIL to close the socket. 1521 1522.. 1523 1524.. bpo: 18787 1525.. date: 9105 1526.. nonce: rWyzgA 1527.. section: Library 1528 1529spwd.getspnam() now raises a PermissionError if the user doesn't have 1530privileges. 1531 1532.. 1533 1534.. bpo: 26560 1535.. date: 9104 1536.. nonce: A4WXNz 1537.. section: Library 1538 1539Avoid potential ValueError in BaseHandler.start_response. Initial patch by 1540Peter Inglesby. 1541 1542.. 1543 1544.. bpo: 26567 1545.. date: 9103 1546.. nonce: kcC99B 1547.. section: Library 1548 1549Add a new function :c:func:`PyErr_ResourceWarning` function to pass the 1550destroyed object. Add a *source* attribute to 1551:class:`warnings.WarningMessage`. Add warnings._showwarnmsg() which uses 1552tracemalloc to get the traceback where source object was allocated. 1553 1554.. 1555 1556.. bpo: 26569 1557.. date: 9101 1558.. nonce: EX8vF1 1559.. section: Library 1560 1561Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex` to support 1562importing packages. 1563 1564.. 1565 1566.. bpo: 26499 1567.. date: 9100 1568.. nonce: NP08PI 1569.. section: Library 1570 1571Account for remaining Content-Length in HTTPResponse.readline() and read1(). 1572Based on patch by Silent Ghost. Also document that HTTPResponse now supports 1573these methods. 1574 1575.. 1576 1577.. bpo: 25320 1578.. date: 9099 1579.. nonce: V96LIy 1580.. section: Library 1581 1582Handle sockets in directories unittest discovery is scanning. Patch from 1583Victor van den Elzen. 1584 1585.. 1586 1587.. bpo: 16181 1588.. date: 9098 1589.. nonce: P7lLvo 1590.. section: Library 1591 1592cookiejar.http2time() now returns None if year is higher than 1593datetime.MAXYEAR. 1594 1595.. 1596 1597.. bpo: 26513 1598.. date: 9097 1599.. nonce: HoPepy 1600.. section: Library 1601 1602Fixes platform module detection of Windows Server 1603 1604.. 1605 1606.. bpo: 23718 1607.. date: 9096 1608.. nonce: AMPC0o 1609.. section: Library 1610 1611Fixed parsing time in week 0 before Jan 1. Original patch by Tamás Bence 1612Gedai. 1613 1614.. 1615 1616.. bpo: 26323 1617.. date: 9095 1618.. nonce: KkZqEj 1619.. section: Library 1620 1621Add Mock.assert_called() and Mock.assert_called_once() methods to 1622unittest.mock. Patch written by Amit Saha. 1623 1624.. 1625 1626.. bpo: 20589 1627.. date: 9094 1628.. nonce: NsQ_I1 1629.. section: Library 1630 1631Invoking Path.owner() and Path.group() on Windows now raise 1632NotImplementedError instead of ImportError. 1633 1634.. 1635 1636.. bpo: 26177 1637.. date: 9093 1638.. nonce: HlSWer 1639.. section: Library 1640 1641Fixed the keys() method for Canvas and Scrollbar widgets. 1642 1643.. 1644 1645.. bpo: 15068 1646.. date: 9092 1647.. nonce: xokEVC 1648.. section: Library 1649 1650Got rid of excessive buffering in fileinput. The bufsize parameter is now 1651deprecated and ignored. 1652 1653.. 1654 1655.. bpo: 19475 1656.. date: 9091 1657.. nonce: MH2HH9 1658.. section: Library 1659 1660Added an optional argument timespec to the datetime isoformat() method to 1661choose the precision of the time component. 1662 1663.. 1664 1665.. bpo: 2202 1666.. date: 9090 1667.. nonce: dk9sd0 1668.. section: Library 1669 1670Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls. 1671Initial patch by Mathieu Dupuy. 1672 1673.. 1674 1675.. bpo: 26167 1676.. date: 9089 1677.. nonce: 3F-d12 1678.. section: Library 1679 1680Minimized overhead in copy.copy() and copy.deepcopy(). Optimized copying and 1681deepcopying bytearrays, NotImplemented, slices, short lists, tuples, dicts, 1682sets. 1683 1684.. 1685 1686.. bpo: 25718 1687.. date: 9088 1688.. nonce: 4EjZyv 1689.. section: Library 1690 1691Fixed pickling and copying the accumulate() iterator with total is None. 1692 1693.. 1694 1695.. bpo: 26475 1696.. date: 9087 1697.. nonce: JXVccY 1698.. section: Library 1699 1700Fixed debugging output for regular expressions with the (?x) flag. 1701 1702.. 1703 1704.. bpo: 26482 1705.. date: 9086 1706.. nonce: d635gW 1707.. section: Library 1708 1709Allowed pickling recursive dequeues. 1710 1711.. 1712 1713.. bpo: 26335 1714.. date: 9085 1715.. nonce: iXw5Yb 1716.. section: Library 1717 1718Make mmap.write() return the number of bytes written like other write 1719methods. Patch by Jakub Stasiak. 1720 1721.. 1722 1723.. bpo: 26457 1724.. date: 9084 1725.. nonce: Xe6Clh 1726.. section: Library 1727 1728Fixed the subnets() methods in IP network classes for the case when 1729resulting prefix length is equal to maximal prefix length. Based on patch by 1730Xiang Zhang. 1731 1732.. 1733 1734.. bpo: 26385 1735.. date: 9083 1736.. nonce: 50bDXm 1737.. section: Library 1738 1739Remove the file if the internal open() call in NamedTemporaryFile() fails. 1740Patch by Silent Ghost. 1741 1742.. 1743 1744.. bpo: 26402 1745.. date: 9082 1746.. nonce: k7DVuU 1747.. section: Library 1748 1749Fix XML-RPC client to retry when the server shuts down a persistent 1750connection. This was a regression related to the new 1751http.client.RemoteDisconnected exception in 3.5.0a4. 1752 1753.. 1754 1755.. bpo: 25913 1756.. date: 9081 1757.. nonce: 5flb95 1758.. section: Library 1759 1760Leading ``<~`` is optional now in base64.a85decode() with adobe=True. Patch 1761by Swati Jaiswal. 1762 1763.. 1764 1765.. bpo: 26186 1766.. date: 9080 1767.. nonce: R9rfiL 1768.. section: Library 1769 1770Remove an invalid type check in importlib.util.LazyLoader. 1771 1772.. 1773 1774.. bpo: 26367 1775.. date: 9079 1776.. nonce: Qct-9S 1777.. section: Library 1778 1779importlib.__import__() raises ImportError like builtins.__import__() when 1780``level`` is specified but without an accompanying package specified. 1781 1782.. 1783 1784.. bpo: 26309 1785.. date: 9078 1786.. nonce: ubEeiz 1787.. section: Library 1788 1789In the "socketserver" module, shut down the request (closing the connected 1790socket) when verify_request() returns false. Patch by Aviv Palivoda. 1791 1792.. 1793 1794.. bpo: 23430 1795.. date: 9077 1796.. nonce: s_mLiA 1797.. section: Library 1798 1799Change the socketserver module to only catch exceptions raised from a 1800request handler that are derived from Exception (instead of BaseException). 1801Therefore SystemExit and KeyboardInterrupt no longer trigger the 1802handle_error() method, and will now to stop a single-threaded server. 1803 1804.. 1805 1806.. bpo: 25995 1807.. date: 9075 1808.. nonce: NfcimP 1809.. section: Library 1810 1811os.walk() no longer uses FDs proportional to the tree depth. 1812 1813.. 1814 1815.. bpo: 25994 1816.. date: 9074 1817.. nonce: ga9rT- 1818.. section: Library 1819 1820Added the close() method and the support of the context manager protocol for 1821the os.scandir() iterator. 1822 1823.. 1824 1825.. bpo: 23992 1826.. date: 9073 1827.. nonce: O0Hhvc 1828.. section: Library 1829 1830multiprocessing: make MapResult not fail-fast upon exception. 1831 1832.. 1833 1834.. bpo: 26243 1835.. date: 9072 1836.. nonce: 41WSpF 1837.. section: Library 1838 1839Support keyword arguments to zlib.compress(). Patch by Aviv Palivoda. 1840 1841.. 1842 1843.. bpo: 26117 1844.. date: 9071 1845.. nonce: ne6p11 1846.. section: Library 1847 1848The os.scandir() iterator now closes file descriptor not only when the 1849iteration is finished, but when it was failed with error. 1850 1851.. 1852 1853.. bpo: 25949 1854.. date: 9070 1855.. nonce: -Lh9vz 1856.. section: Library 1857 1858__dict__ for an OrderedDict instance is now created only when needed. 1859 1860.. 1861 1862.. bpo: 25911 1863.. date: 9069 1864.. nonce: d4Zadh 1865.. section: Library 1866 1867Restored support of bytes paths in os.walk() on Windows. 1868 1869.. 1870 1871.. bpo: 26045 1872.. date: 9068 1873.. nonce: WmzUrX 1874.. section: Library 1875 1876Add UTF-8 suggestion to error message when posting a non-Latin-1 string with 1877http.client. 1878 1879.. 1880 1881.. bpo: 26039 1882.. date: 9067 1883.. nonce: a5Bxm4 1884.. section: Library 1885 1886Added zipfile.ZipInfo.from_file() and zipinfo.ZipInfo.is_dir(). Patch by 1887Thomas Kluyver. 1888 1889.. 1890 1891.. bpo: 12923 1892.. date: 9066 1893.. nonce: HPAu-B 1894.. section: Library 1895 1896Reset FancyURLopener's redirect counter even if there is an exception. 1897Based on patches by Brian Brazil and Daniel Rocco. 1898 1899.. 1900 1901.. bpo: 25945 1902.. date: 9065 1903.. nonce: guNgNM 1904.. section: Library 1905 1906Fixed a crash when unpickle the functools.partial object with wrong state. 1907Fixed a leak in failed functools.partial constructor. "args" and "keywords" 1908attributes of functools.partial have now always types tuple and dict 1909correspondingly. 1910 1911.. 1912 1913.. bpo: 26202 1914.. date: 9064 1915.. nonce: LPIXLg 1916.. section: Library 1917 1918copy.deepcopy() now correctly copies range() objects with non-atomic 1919attributes. 1920 1921.. 1922 1923.. bpo: 23076 1924.. date: 9063 1925.. nonce: 8rphoP 1926.. section: Library 1927 1928Path.glob() now raises a ValueError if it's called with an invalid pattern. 1929Patch by Thomas Nyberg. 1930 1931.. 1932 1933.. bpo: 19883 1934.. date: 9062 1935.. nonce: z9TsO6 1936.. section: Library 1937 1938Fixed possible integer overflows in zipimport. 1939 1940.. 1941 1942.. bpo: 26227 1943.. date: 9061 1944.. nonce: Fe6oiB 1945.. section: Library 1946 1947On Windows, getnameinfo(), gethostbyaddr() and gethostbyname_ex() functions 1948of the socket module now decode the hostname from the ANSI code page rather 1949than UTF-8. 1950 1951.. 1952 1953.. bpo: 26099 1954.. date: 9060 1955.. nonce: CH5jer 1956.. section: Library 1957 1958The site module now writes an error into stderr if sitecustomize module can 1959be imported but executing the module raise an ImportError. Same change for 1960usercustomize. 1961 1962.. 1963 1964.. bpo: 26147 1965.. date: 9059 1966.. nonce: i-Jc01 1967.. section: Library 1968 1969xmlrpc now works with strings not encodable with used non-UTF-8 encoding. 1970 1971.. 1972 1973.. bpo: 25935 1974.. date: 9058 1975.. nonce: cyni91 1976.. section: Library 1977 1978Garbage collector now breaks reference loops with OrderedDict. 1979 1980.. 1981 1982.. bpo: 16620 1983.. date: 9057 1984.. nonce: rxpn_Y 1985.. section: Library 1986 1987Fixed AttributeError in msilib.Directory.glob(). 1988 1989.. 1990 1991.. bpo: 26013 1992.. date: 9056 1993.. nonce: 93RKNz 1994.. section: Library 1995 1996Added compatibility with broken protocol 2 pickles created in old Python 3 1997versions (3.4.3 and lower). 1998 1999.. 2000 2001.. bpo: 26129 2002.. date: 9055 2003.. nonce: g4RQZd 2004.. section: Library 2005 2006Deprecated accepting non-integers in grp.getgrgid(). 2007 2008.. 2009 2010.. bpo: 25850 2011.. date: 9054 2012.. nonce: jwFPxj 2013.. section: Library 2014 2015Use cross-compilation by default for 64-bit Windows. 2016 2017.. 2018 2019.. bpo: 25822 2020.. date: 9053 2021.. nonce: 0Eafyi 2022.. section: Library 2023 2024Add docstrings to the fields of urllib.parse results. Patch contributed by 2025Swati Jaiswal. 2026 2027.. 2028 2029.. bpo: 22642 2030.. date: 9052 2031.. nonce: PEgS9F 2032.. section: Library 2033 2034Convert trace module option parsing mechanism to argparse. Patch contributed 2035by SilentGhost. 2036 2037.. 2038 2039.. bpo: 24705 2040.. date: 9051 2041.. nonce: IZYwjR 2042.. section: Library 2043 2044Fix sysconfig._parse_makefile not expanding ${} vars appearing before $() 2045vars. 2046 2047.. 2048 2049.. bpo: 26069 2050.. date: 9050 2051.. nonce: NaF4lN 2052.. section: Library 2053 2054Remove the deprecated apis in the trace module. 2055 2056.. 2057 2058.. bpo: 22138 2059.. date: 9049 2060.. nonce: nRNYkc 2061.. section: Library 2062 2063Fix mock.patch behavior when patching descriptors. Restore original values 2064after patching. Patch contributed by Sean McCully. 2065 2066.. 2067 2068.. bpo: 25672 2069.. date: 9048 2070.. nonce: fw9RJP 2071.. section: Library 2072 2073In the ssl module, enable the SSL_MODE_RELEASE_BUFFERS mode option if it is 2074safe to do so. 2075 2076.. 2077 2078.. bpo: 26012 2079.. date: 9047 2080.. nonce: IFSXNm 2081.. section: Library 2082 2083Don't traverse into symlinks for ``**`` pattern in pathlib.Path.[r]glob(). 2084 2085.. 2086 2087.. bpo: 24120 2088.. date: 9046 2089.. nonce: Yiwa0h 2090.. section: Library 2091 2092Ignore PermissionError when traversing a tree with pathlib.Path.[r]glob(). 2093Patch by Ulrich Petri. 2094 2095.. 2096 2097.. bpo: 21815 2098.. date: 9045 2099.. nonce: h7-UY8 2100.. section: Library 2101 2102Accept ] characters in the data portion of imap responses, in order to 2103handle the flags with square brackets accepted and produced by servers such 2104as gmail. 2105 2106.. 2107 2108.. bpo: 25447 2109.. date: 9044 2110.. nonce: -4m4xO 2111.. section: Library 2112 2113fileinput now uses sys.stdin as-is if it does not have a buffer attribute 2114(restores backward compatibility). 2115 2116.. 2117 2118.. bpo: 25971 2119.. date: 9043 2120.. nonce: vhMeG0 2121.. section: Library 2122 2123Optimized creating Fractions from floats by 2 times and from Decimals by 3 2124times. 2125 2126.. 2127 2128.. bpo: 25802 2129.. date: 9042 2130.. nonce: Y2KOnA 2131.. section: Library 2132 2133Document as deprecated the remaining implementations of 2134importlib.abc.Loader.load_module(). 2135 2136.. 2137 2138.. bpo: 25928 2139.. date: 9041 2140.. nonce: JsQfKK 2141.. section: Library 2142 2143Add Decimal.as_integer_ratio(). 2144 2145.. 2146 2147.. bpo: 25447 2148.. date: 9040 2149.. nonce: ajPRDy 2150.. section: Library 2151 2152Copying the lru_cache() wrapper object now always works, independently from 2153the type of the wrapped object (by returning the original object unchanged). 2154 2155.. 2156 2157.. bpo: 25768 2158.. date: 9039 2159.. nonce: GDj2ip 2160.. section: Library 2161 2162Have the functions in compileall return booleans instead of ints and add 2163proper documentation and tests for the return values. 2164 2165.. 2166 2167.. bpo: 24103 2168.. date: 9038 2169.. nonce: WufqrQ 2170.. section: Library 2171 2172Fixed possible use after free in ElementTree.XMLPullParser. 2173 2174.. 2175 2176.. bpo: 25860 2177.. date: 9037 2178.. nonce: 0hActb 2179.. section: Library 2180 2181os.fwalk() no longer skips remaining directories when error occurs. 2182Original patch by Samson Lee. 2183 2184.. 2185 2186.. bpo: 25914 2187.. date: 9036 2188.. nonce: h0V61F 2189.. section: Library 2190 2191Fixed and simplified OrderedDict.__sizeof__. 2192 2193.. 2194 2195.. bpo: 25869 2196.. date: 9035 2197.. nonce: eAnRH5 2198.. section: Library 2199 2200Optimized deepcopying ElementTree; it is now 20 times faster. 2201 2202.. 2203 2204.. bpo: 25873 2205.. date: 9034 2206.. nonce: L4Fgjm 2207.. section: Library 2208 2209Optimized iterating ElementTree. Iterating elements Element.iter() is now 221040% faster, iterating text Element.itertext() is now up to 2.5 times faster. 2211 2212.. 2213 2214.. bpo: 25902 2215.. date: 9033 2216.. nonce: 6t2FmH 2217.. section: Library 2218 2219Fixed various refcount issues in ElementTree iteration. 2220 2221.. 2222 2223.. bpo: 22227 2224.. date: 9032 2225.. nonce: 5utM-Q 2226.. section: Library 2227 2228The TarFile iterator is reimplemented using generator. This implementation 2229is simpler that using class. 2230 2231.. 2232 2233.. bpo: 25638 2234.. date: 9031 2235.. nonce: yitRj4 2236.. section: Library 2237 2238Optimized ElementTree.iterparse(); it is now 2x faster. Optimized 2239ElementTree parsing; it is now 10% faster. 2240 2241.. 2242 2243.. bpo: 25761 2244.. date: 9030 2245.. nonce: JGgMOP 2246.. section: Library 2247 2248Improved detecting errors in broken pickle data. 2249 2250.. 2251 2252.. bpo: 25717 2253.. date: 9029 2254.. nonce: 0_xjaK 2255.. section: Library 2256 2257Restore the previous behaviour of tolerating most fstat() errors when 2258opening files. This was a regression in 3.5a1, and stopped anonymous 2259temporary files from working in special cases. 2260 2261.. 2262 2263.. bpo: 24903 2264.. date: 9028 2265.. nonce: 3LBdzb 2266.. section: Library 2267 2268Fix regression in number of arguments compileall accepts when '-d' is 2269specified. The check on the number of arguments has been dropped completely 2270as it never worked correctly anyway. 2271 2272.. 2273 2274.. bpo: 25764 2275.. date: 9027 2276.. nonce: 7WWG07 2277.. section: Library 2278 2279In the subprocess module, preserve any exception caused by fork() failure 2280when preexec_fn is used. 2281 2282.. 2283 2284.. bpo: 25771 2285.. date: 9026 2286.. nonce: It-7Qf 2287.. section: Library 2288 2289Tweak the exception message for importlib.util.resolve_name() when 'package' 2290isn't specified but necessary. 2291 2292.. 2293 2294.. bpo: 6478 2295.. date: 9025 2296.. nonce: -Bi9Hb 2297.. section: Library 2298 2299_strptime's regexp cache now is reset after changing timezone with 2300time.tzset(). 2301 2302.. 2303 2304.. bpo: 14285 2305.. date: 9024 2306.. nonce: UyG8Hj 2307.. section: Library 2308 2309When executing a package with the "python -m package" option, and package 2310initialization fails, a proper traceback is now reported. The "runpy" 2311module now lets exceptions from package initialization pass back to the 2312caller, rather than raising ImportError. 2313 2314.. 2315 2316.. bpo: 19771 2317.. date: 9023 2318.. nonce: 5NG-bg 2319.. section: Library 2320 2321Also in runpy and the "-m" option, omit the irrelevant message ". . . is a 2322package and cannot be directly executed" if the package could not even be 2323initialized (e.g. due to a bad ``*.pyc`` file). 2324 2325.. 2326 2327.. bpo: 25177 2328.. date: 9022 2329.. nonce: aNR4Ha 2330.. section: Library 2331 2332Fixed problem with the mean of very small and very large numbers. As a side 2333effect, statistics.mean and statistics.variance should be significantly 2334faster. 2335 2336.. 2337 2338.. bpo: 25718 2339.. date: 9021 2340.. nonce: D9mHZF 2341.. section: Library 2342 2343Fixed copying object with state with boolean value is false. 2344 2345.. 2346 2347.. bpo: 10131 2348.. date: 9020 2349.. nonce: a7tptz 2350.. section: Library 2351 2352Fixed deep copying of minidom documents. Based on patch by Marian Ganisin. 2353 2354.. 2355 2356.. bpo: 7990 2357.. date: 9019 2358.. nonce: fpvQxH 2359.. section: Library 2360 2361dir() on ElementTree.Element now lists properties: "tag", "text", "tail" and 2362"attrib". Original patch by Santoso Wijaya. 2363 2364.. 2365 2366.. bpo: 25725 2367.. date: 9018 2368.. nonce: XIKv3R 2369.. section: Library 2370 2371Fixed a reference leak in pickle.loads() when unpickling invalid data 2372including tuple instructions. 2373 2374.. 2375 2376.. bpo: 25663 2377.. date: 9017 2378.. nonce: Ofwfqa 2379.. section: Library 2380 2381In the Readline completer, avoid listing duplicate global names, and search 2382the global namespace before searching builtins. 2383 2384.. 2385 2386.. bpo: 25688 2387.. date: 9016 2388.. nonce: 8P1HOv 2389.. section: Library 2390 2391Fixed file leak in ElementTree.iterparse() raising an error. 2392 2393.. 2394 2395.. bpo: 23914 2396.. date: 9015 2397.. nonce: 1sEz4J 2398.. section: Library 2399 2400Fixed SystemError raised by unpickler on broken pickle data. 2401 2402.. 2403 2404.. bpo: 25691 2405.. date: 9014 2406.. nonce: ZEaapY 2407.. section: Library 2408 2409Fixed crash on deleting ElementTree.Element attributes. 2410 2411.. 2412 2413.. bpo: 25624 2414.. date: 9013 2415.. nonce: ed-fM0 2416.. section: Library 2417 2418ZipFile now always writes a ZIP_STORED header for directory entries. Patch 2419by Dingyuan Wang. 2420 2421.. 2422 2423.. bpo: 25626 2424.. date: 9012 2425.. nonce: TQ3fvb 2426.. section: Library 2427 2428Change three zlib functions to accept sizes that fit in Py_ssize_t, but 2429internally cap those sizes to UINT_MAX. This resolves a regression in 3.5 2430where GzipFile.read() failed to read chunks larger than 2 or 4 GiB. The 2431change affects the zlib.Decompress.decompress() max_length parameter, the 2432zlib.decompress() bufsize parameter, and the zlib.Decompress.flush() length 2433parameter. 2434 2435.. 2436 2437.. bpo: 25583 2438.. date: 9011 2439.. nonce: Gk-cim 2440.. section: Library 2441 2442Avoid incorrect errors raised by os.makedirs(exist_ok=True) when the OS 2443gives priority to errors such as EACCES over EEXIST. 2444 2445.. 2446 2447.. bpo: 25593 2448.. date: 9010 2449.. nonce: 56uegI 2450.. section: Library 2451 2452Change semantics of EventLoop.stop() in asyncio. 2453 2454.. 2455 2456.. bpo: 6973 2457.. date: 9009 2458.. nonce: nl5cHt 2459.. section: Library 2460 2461When we know a subprocess.Popen process has died, do not allow the 2462send_signal(), terminate(), or kill() methods to do anything as they could 2463potentially signal a different process. 2464 2465.. 2466 2467.. bpo: 23883 2468.. date: 9008 2469.. nonce: OQS5sS 2470.. section: Library 2471 2472Added missing APIs to __all__ to match the documented APIs for the following 2473modules: calendar, csv, enum, fileinput, ftplib, logging, optparse, tarfile, 2474threading and wave. Also added a test.support.check__all__() helper. 2475Patches by Jacek Kołodziej, Mauro S. M. Rodrigues and Joel Taddei. 2476 2477.. 2478 2479.. bpo: 25590 2480.. date: 9007 2481.. nonce: KPcnfv 2482.. section: Library 2483 2484In the Readline completer, only call getattr() once per attribute. Also 2485complete names of attributes such as properties and slots which are listed 2486by dir() but not yet created on an instance. 2487 2488.. 2489 2490.. bpo: 25498 2491.. date: 9006 2492.. nonce: AvqEBl 2493.. section: Library 2494 2495Fix a crash when garbage-collecting ctypes objects created by wrapping a 2496memoryview. This was a regression made in 3.5a1. Based on patch by 2497Eryksun. 2498 2499.. 2500 2501.. bpo: 25584 2502.. date: 9005 2503.. nonce: 124mYw 2504.. section: Library 2505 2506Added "escape" to the __all__ list in the glob module. 2507 2508.. 2509 2510.. bpo: 25584 2511.. date: 9004 2512.. nonce: ZeWX0J 2513.. section: Library 2514 2515Fixed recursive glob() with patterns starting with ``**``. 2516 2517.. 2518 2519.. bpo: 25446 2520.. date: 9003 2521.. nonce: k1DByx 2522.. section: Library 2523 2524Fix regression in smtplib's AUTH LOGIN support. 2525 2526.. 2527 2528.. bpo: 18010 2529.. date: 9002 2530.. nonce: Azyf1C 2531.. section: Library 2532 2533Fix the pydoc web server's module search function to handle exceptions from 2534importing packages. 2535 2536.. 2537 2538.. bpo: 25554 2539.. date: 9001 2540.. nonce: UM9MlR 2541.. section: Library 2542 2543Got rid of circular references in regular expression parsing. 2544 2545.. 2546 2547.. bpo: 18973 2548.. date: 9000 2549.. nonce: Am9jFL 2550.. section: Library 2551 2552Command-line interface of the calendar module now uses argparse instead of 2553optparse. 2554 2555.. 2556 2557.. bpo: 25510 2558.. date: 8999 2559.. nonce: 79g7LA 2560.. section: Library 2561 2562fileinput.FileInput.readline() now returns b'' instead of '' at the end if 2563the FileInput was opened with binary mode. Patch by Ryosuke Ito. 2564 2565.. 2566 2567.. bpo: 25503 2568.. date: 8998 2569.. nonce: Zea0Y7 2570.. section: Library 2571 2572Fixed inspect.getdoc() for inherited docstrings of properties. Original 2573patch by John Mark Vandenberg. 2574 2575.. 2576 2577.. bpo: 25515 2578.. date: 8997 2579.. nonce: fQsyYG 2580.. section: Library 2581 2582Always use os.urandom as a source of randomness in uuid.uuid4. 2583 2584.. 2585 2586.. bpo: 21827 2587.. date: 8996 2588.. nonce: k2oreR 2589.. section: Library 2590 2591Fixed textwrap.dedent() for the case when largest common whitespace is a 2592substring of smallest leading whitespace. Based on patch by Robert Li. 2593 2594.. 2595 2596.. bpo: 25447 2597.. date: 8995 2598.. nonce: eDYc4t 2599.. section: Library 2600 2601The lru_cache() wrapper objects now can be copied and pickled (by returning 2602the original object unchanged). 2603 2604.. 2605 2606.. bpo: 25390 2607.. date: 8994 2608.. nonce: 6mSgRq 2609.. section: Library 2610 2611typing: Don't crash on Union[str, Pattern]. 2612 2613.. 2614 2615.. bpo: 25441 2616.. date: 8993 2617.. nonce: d7zph6 2618.. section: Library 2619 2620asyncio: Raise error from drain() when socket is closed. 2621 2622.. 2623 2624.. bpo: 25410 2625.. date: 8992 2626.. nonce: QAs_3B 2627.. section: Library 2628 2629Cleaned up and fixed minor bugs in C implementation of OrderedDict. 2630 2631.. 2632 2633.. bpo: 25411 2634.. date: 8991 2635.. nonce: qsJTCb 2636.. section: Library 2637 2638Improved Unicode support in SMTPHandler through better use of the email 2639package. Thanks to user simon04 for the patch. 2640 2641.. 2642 2643.. bpo: 0 2644.. date: 8990 2645.. nonce: pFHJ0i 2646.. section: Library 2647 2648Move the imp module from a PendingDeprecationWarning to DeprecationWarning. 2649 2650.. 2651 2652.. bpo: 25407 2653.. date: 8989 2654.. nonce: ukNt1D 2655.. section: Library 2656 2657Remove mentions of the formatter module being removed in Python 3.6. 2658 2659.. 2660 2661.. bpo: 25406 2662.. date: 8988 2663.. nonce: 5MZKU_ 2664.. section: Library 2665 2666Fixed a bug in C implementation of OrderedDict.move_to_end() that caused 2667segmentation fault or hang in iterating after moving several items to the 2668start of ordered dict. 2669 2670.. 2671 2672.. bpo: 25382 2673.. date: 8987 2674.. nonce: XQ44yE 2675.. section: Library 2676 2677pickletools.dis() now outputs implicit memo index for the MEMOIZE opcode. 2678 2679.. 2680 2681.. bpo: 25357 2682.. date: 8986 2683.. nonce: ebqGy- 2684.. section: Library 2685 2686Add an optional newline parameter to binascii.b2a_base64(). base64.b64encode() 2687uses it to avoid a memory copy. 2688 2689.. 2690 2691.. bpo: 24164 2692.. date: 8985 2693.. nonce: oi6H3E 2694.. section: Library 2695 2696Objects that need calling ``__new__`` with keyword arguments, can now be 2697pickled using pickle protocols older than protocol version 4. 2698 2699.. 2700 2701.. bpo: 25364 2702.. date: 8984 2703.. nonce: u_1Wi6 2704.. section: Library 2705 2706zipfile now works in threads disabled builds. 2707 2708.. 2709 2710.. bpo: 25328 2711.. date: 8983 2712.. nonce: Rja1Xg 2713.. section: Library 2714 2715smtpd's SMTPChannel now correctly raises a ValueError if both decode_data 2716and enable_SMTPUTF8 are set to true. 2717 2718.. 2719 2720.. bpo: 16099 2721.. date: 8982 2722.. nonce: _MTt3k 2723.. section: Library 2724 2725RobotFileParser now supports Crawl-delay and Request-rate extensions. Patch 2726by Nikolay Bogoychev. 2727 2728.. 2729 2730.. bpo: 25316 2731.. date: 8981 2732.. nonce: dHQHWI 2733.. section: Library 2734 2735distutils raises OSError instead of DistutilsPlatformError when MSVC is not 2736installed. 2737 2738.. 2739 2740.. bpo: 25380 2741.. date: 8980 2742.. nonce: sKZ6-I 2743.. section: Library 2744 2745Fixed protocol for the STACK_GLOBAL opcode in pickletools.opcodes. 2746 2747.. 2748 2749.. bpo: 23972 2750.. date: 8979 2751.. nonce: s2g30g 2752.. section: Library 2753 2754Updates asyncio datagram create method allowing reuseport and reuseaddr 2755socket options to be set prior to binding the socket. Mirroring the existing 2756asyncio create_server method the reuseaddr option for datagram sockets 2757defaults to True if the O/S is 'posix' (except if the platform is Cygwin). 2758Patch by Chris Laws. 2759 2760.. 2761 2762.. bpo: 25304 2763.. date: 8978 2764.. nonce: CsmLyI 2765.. section: Library 2766 2767Add asyncio.run_coroutine_threadsafe(). This lets you submit a coroutine to 2768a loop from another thread, returning a concurrent.futures.Future. By 2769Vincent Michel. 2770 2771.. 2772 2773.. bpo: 25232 2774.. date: 8977 2775.. nonce: KhKjCE 2776.. section: Library 2777 2778Fix CGIRequestHandler to split the query from the URL at the first question 2779mark (?) rather than the last. Patch from Xiang Zhang. 2780 2781.. 2782 2783.. bpo: 24657 2784.. date: 8976 2785.. nonce: h2Ag7y 2786.. section: Library 2787 2788Prevent CGIRequestHandler from collapsing slashes in the query part of the 2789URL as if it were a path. Patch from Xiang Zhang. 2790 2791.. 2792 2793.. bpo: 25287 2794.. date: 8975 2795.. nonce: KhzzMW 2796.. section: Library 2797 2798Don't add crypt.METHOD_CRYPT to crypt.methods if it's not supported. Check 2799if it is supported, it may not be supported on OpenBSD for example. 2800 2801.. 2802 2803.. bpo: 23600 2804.. date: 8974 2805.. nonce: 7J_RD5 2806.. section: Library 2807 2808Default implementation of tzinfo.fromutc() was returning wrong results in 2809some cases. 2810 2811.. 2812 2813.. bpo: 25203 2814.. date: 8973 2815.. nonce: IgDEbt 2816.. section: Library 2817 2818Failed readline.set_completer_delims() no longer left the module in 2819inconsistent state. 2820 2821.. 2822 2823.. bpo: 25011 2824.. date: 8972 2825.. nonce: VcaCd6 2826.. section: Library 2827 2828rlcompleter now omits private and special attribute names unless the prefix 2829starts with underscores. 2830 2831.. 2832 2833.. bpo: 25209 2834.. date: 8971 2835.. nonce: WxKcdJ 2836.. section: Library 2837 2838rlcompleter now can add a space or a colon after completed keyword. 2839 2840.. 2841 2842.. bpo: 22241 2843.. date: 8970 2844.. nonce: a-Mtw2 2845.. section: Library 2846 2847timezone.utc name is now plain 'UTC', not 'UTC-00:00'. 2848 2849.. 2850 2851.. bpo: 23517 2852.. date: 8969 2853.. nonce: 0ABp8q 2854.. section: Library 2855 2856fromtimestamp() and utcfromtimestamp() methods of datetime.datetime now 2857round microseconds to nearest with ties going to nearest even integer 2858(ROUND_HALF_EVEN), as round(float), instead of rounding towards -Infinity 2859(ROUND_FLOOR). 2860 2861.. 2862 2863.. bpo: 23552 2864.. date: 8968 2865.. nonce: I0T-M- 2866.. section: Library 2867 2868Timeit now warns when there is substantial (4x) variance between best and 2869worst times. Patch from Serhiy Storchaka. 2870 2871.. 2872 2873.. bpo: 24633 2874.. date: 8967 2875.. nonce: 6Unn9B 2876.. section: Library 2877 2878site-packages/README -> README.txt. 2879 2880.. 2881 2882.. bpo: 24879 2883.. date: 8966 2884.. nonce: YUzg_z 2885.. section: Library 2886 2887help() and pydoc can now list named tuple fields in the order they were 2888defined rather than alphabetically. The ordering is determined by the 2889_fields attribute if present. 2890 2891.. 2892 2893.. bpo: 24874 2894.. date: 8965 2895.. nonce: luBfgA 2896.. section: Library 2897 2898Improve speed of itertools.cycle() and make its pickle more compact. 2899 2900.. 2901 2902.. bpo: 0 2903.. date: 8964 2904.. nonce: mD-_3v 2905.. section: Library 2906 2907Fix crash in itertools.cycle.__setstate__() when the first argument wasn't a 2908list. 2909 2910.. 2911 2912.. bpo: 20059 2913.. date: 8963 2914.. nonce: SHv0Ji 2915.. section: Library 2916 2917urllib.parse raises ValueError on all invalid ports. Patch by Martin Panter. 2918 2919.. 2920 2921.. bpo: 24360 2922.. date: 8962 2923.. nonce: 5RwH-e 2924.. section: Library 2925 2926Improve __repr__ of argparse.Namespace() for invalid identifiers. Patch by 2927Matthias Bussonnier. 2928 2929.. 2930 2931.. bpo: 23426 2932.. date: 8961 2933.. nonce: PUV-Cx 2934.. section: Library 2935 2936run_setup was broken in distutils. Patch from Alexander Belopolsky. 2937 2938.. 2939 2940.. bpo: 13938 2941.. date: 8960 2942.. nonce: e5NSE1 2943.. section: Library 2944 29452to3 converts StringTypes to a tuple. Patch from Mark Hammond. 2946 2947.. 2948 2949.. bpo: 2091 2950.. date: 8959 2951.. nonce: bp56pO 2952.. section: Library 2953 2954open() accepted a 'U' mode string containing '+', but 'U' can only be used 2955with 'r'. Patch from Jeff Balogh and John O'Connor. 2956 2957.. 2958 2959.. bpo: 8585 2960.. date: 8958 2961.. nonce: 78hPc2 2962.. section: Library 2963 2964improved tests for zipimporter2. Patch from Mark Lawrence. 2965 2966.. 2967 2968.. bpo: 18622 2969.. date: 8957 2970.. nonce: i6nCCW 2971.. section: Library 2972 2973unittest.mock.mock_open().reset_mock would recurse infinitely. Patch from 2974Nicola Palumbo and Laurent De Buyst. 2975 2976.. 2977 2978.. bpo: 24426 2979.. date: 8956 2980.. nonce: yCtQfT 2981.. section: Library 2982 2983Fast searching optimization in regular expressions now works for patterns 2984that starts with capturing groups. Fast searching optimization now can't be 2985disabled at compile time. 2986 2987.. 2988 2989.. bpo: 23661 2990.. date: 8955 2991.. nonce: 5VHJmh 2992.. section: Library 2993 2994unittest.mock side_effects can now be exceptions again. This was a 2995regression vs Python 3.4. Patch from Ignacio Rossi 2996 2997.. 2998 2999.. bpo: 13248 3000.. date: 8954 3001.. nonce: SA2hvu 3002.. section: Library 3003 3004Remove deprecated inspect.getmoduleinfo function. 3005 3006.. 3007 3008.. bpo: 25578 3009.. date: 8953 3010.. nonce: G6S-ft 3011.. section: Library 3012 3013Fix (another) memory leak in SSLSocket.getpeercer(). 3014 3015.. 3016 3017.. bpo: 25530 3018.. date: 8952 3019.. nonce: hDFkwu 3020.. section: Library 3021 3022Disable the vulnerable SSLv3 protocol by default when creating 3023ssl.SSLContext. 3024 3025.. 3026 3027.. bpo: 25569 3028.. date: 8951 3029.. nonce: CfvQjK 3030.. section: Library 3031 3032Fix memory leak in SSLSocket.getpeercert(). 3033 3034.. 3035 3036.. bpo: 25471 3037.. date: 8950 3038.. nonce: T0A02M 3039.. section: Library 3040 3041Sockets returned from accept() shouldn't appear to be nonblocking. 3042 3043.. 3044 3045.. bpo: 25319 3046.. date: 8949 3047.. nonce: iyuglv 3048.. section: Library 3049 3050When threading.Event is reinitialized, the underlying condition should use a 3051regular lock rather than a recursive lock. 3052 3053.. 3054 3055.. bpo: 0 3056.. date: 8948 3057.. nonce: rtZyid 3058.. section: Library 3059 3060Skip getaddrinfo if host is already resolved. Patch by A. Jesse Jiryu Davis. 3061 3062.. 3063 3064.. bpo: 26050 3065.. date: 8947 3066.. nonce: sclyvk 3067.. section: Library 3068 3069Add asyncio.StreamReader.readuntil() method. Patch by Марк Коренберг. 3070 3071.. 3072 3073.. bpo: 25924 3074.. date: 8946 3075.. nonce: Uxr2vt 3076.. section: Library 3077 3078Avoid unnecessary serialization of getaddrinfo(3) calls on OS X versions 307910.5 or higher. Original patch by A. Jesse Jiryu Davis. 3080 3081.. 3082 3083.. bpo: 26406 3084.. date: 8945 3085.. nonce: ihvhF4 3086.. section: Library 3087 3088Avoid unnecessary serialization of getaddrinfo(3) calls on current versions 3089of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis. 3090 3091.. 3092 3093.. bpo: 26848 3094.. date: 8944 3095.. nonce: ChBOpQ 3096.. section: Library 3097 3098Fix asyncio/subprocess.communicate() to handle empty input. Patch by Jack 3099O'Connor. 3100 3101.. 3102 3103.. bpo: 27040 3104.. date: 8943 3105.. nonce: UASyCC 3106.. section: Library 3107 3108Add loop.get_exception_handler method 3109 3110.. 3111 3112.. bpo: 27041 3113.. date: 8942 3114.. nonce: p3893U 3115.. section: Library 3116 3117asyncio: Add loop.create_future method 3118 3119.. 3120 3121.. bpo: 20640 3122.. date: 8941 3123.. nonce: PmI-G8 3124.. section: IDLE 3125 3126Add tests for idlelib.configHelpSourceEdit. Patch by Saimadhav Heblikar. 3127 3128.. 3129 3130.. bpo: 0 3131.. date: 8940 3132.. nonce: _YJfG7 3133.. section: IDLE 3134 3135In the 'IDLE-console differences' section of the IDLE doc, clarify how 3136running with IDLE affects sys.modules and the standard streams. 3137 3138.. 3139 3140.. bpo: 25507 3141.. date: 8939 3142.. nonce: i8bNpk 3143.. section: IDLE 3144 3145fix incorrect change in IOBinding that prevented printing. Augment IOBinding 3146htest to include all major IOBinding functions. 3147 3148.. 3149 3150.. bpo: 25905 3151.. date: 8938 3152.. nonce: FzNb3B 3153.. section: IDLE 3154 3155Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION MARK in 3156README.txt and open this and NEWS.txt with 'ascii'. Re-encode CREDITS.txt to 3157utf-8 and open it with 'utf-8'. 3158 3159.. 3160 3161.. bpo: 15348 3162.. date: 8937 3163.. nonce: d1Fg01 3164.. section: IDLE 3165 3166Stop the debugger engine (normally in a user process) before closing the 3167debugger window (running in the IDLE process). This prevents the 3168RuntimeErrors that were being caught and ignored. 3169 3170.. 3171 3172.. bpo: 24455 3173.. date: 8936 3174.. nonce: x6YqtE 3175.. section: IDLE 3176 3177Prevent IDLE from hanging when a) closing the shell while the debugger is 3178active (15347); b) closing the debugger with the [X] button (15348); and c) 3179activating the debugger when already active (24455). The patch by Mark 3180Roseman does this by making two changes. 1. Suspend and resume the 3181gui.interaction method with the tcl vwait mechanism intended for this 3182purpose (instead of root.mainloop & .quit). 2. In gui.run, allow any 3183existing interaction to terminate first. 3184 3185.. 3186 3187.. bpo: 0 3188.. date: 8935 3189.. nonce: Yp9LRY 3190.. section: IDLE 3191 3192Change 'The program' to 'Your program' in an IDLE 'kill program?' message to 3193make it clearer that the program referred to is the currently running user 3194program, not IDLE itself. 3195 3196.. 3197 3198.. bpo: 24750 3199.. date: 8934 3200.. nonce: xgsi-K 3201.. section: IDLE 3202 3203Improve the appearance of the IDLE editor window status bar. Patch by Mark 3204Roseman. 3205 3206.. 3207 3208.. bpo: 25313 3209.. date: 8933 3210.. nonce: xMXHpO 3211.. section: IDLE 3212 3213Change the handling of new built-in text color themes to better address the 3214compatibility problem introduced by the addition of IDLE Dark. Consistently 3215use the revised idleConf.CurrentTheme everywhere in idlelib. 3216 3217.. 3218 3219.. bpo: 24782 3220.. date: 8932 3221.. nonce: RgIPYE 3222.. section: IDLE 3223 3224Extension configuration is now a tab in the IDLE Preferences dialog rather 3225than a separate dialog. The former tabs are now a sorted list. Patch by 3226Mark Roseman. 3227 3228.. 3229 3230.. bpo: 22726 3231.. date: 8931 3232.. nonce: x8T0dA 3233.. section: IDLE 3234 3235Re-activate the config dialog help button with some content about the other 3236buttons and the new IDLE Dark theme. 3237 3238.. 3239 3240.. bpo: 24820 3241.. date: 8930 3242.. nonce: TFPJhr 3243.. section: IDLE 3244 3245IDLE now has an 'IDLE Dark' built-in text color theme. It is more or less 3246IDLE Classic inverted, with a cobalt blue background. Strings, comments, 3247keywords, ... are still green, red, orange, ... . To use it with IDLEs 3248released before November 2015, hit the 'Save as New Custom Theme' button and 3249enter a new name, such as 'Custom Dark'. The custom theme will work with 3250any IDLE release, and can be modified. 3251 3252.. 3253 3254.. bpo: 25224 3255.. date: 8929 3256.. nonce: 5Llwo4 3257.. section: IDLE 3258 3259README.txt is now an idlelib index for IDLE developers and curious users. 3260The previous user content is now in the IDLE doc chapter. 'IDLE' now means 3261'Integrated Development and Learning Environment'. 3262 3263.. 3264 3265.. bpo: 24820 3266.. date: 8928 3267.. nonce: ZUz9Fn 3268.. section: IDLE 3269 3270Users can now set breakpoint colors in Settings -> Custom Highlighting. 3271Original patch by Mark Roseman. 3272 3273.. 3274 3275.. bpo: 24972 3276.. date: 8927 3277.. nonce: uc0uNo 3278.. section: IDLE 3279 3280Inactive selection background now matches active selection background, as 3281configured by users, on all systems. Found items are now always highlighted 3282on Windows. Initial patch by Mark Roseman. 3283 3284.. 3285 3286.. bpo: 24570 3287.. date: 8926 3288.. nonce: s3EkNn 3289.. section: IDLE 3290 3291Idle: make calltip and completion boxes appear on Macs affected by a tk 3292regression. Initial patch by Mark Roseman. 3293 3294.. 3295 3296.. bpo: 24988 3297.. date: 8925 3298.. nonce: tXqq4T 3299.. section: IDLE 3300 3301Idle ScrolledList context menus (used in debugger) now work on Mac Aqua. 3302Patch by Mark Roseman. 3303 3304.. 3305 3306.. bpo: 24801 3307.. date: 8924 3308.. nonce: -bj_Ou 3309.. section: IDLE 3310 3311Make right-click for context menu work on Mac Aqua. Patch by Mark Roseman. 3312 3313.. 3314 3315.. bpo: 25173 3316.. date: 8923 3317.. nonce: EZzrPg 3318.. section: IDLE 3319 3320Associate tkinter messageboxes with a specific widget. For Mac OSX, make 3321them a 'sheet'. Patch by Mark Roseman. 3322 3323.. 3324 3325.. bpo: 25198 3326.. date: 8922 3327.. nonce: -j_BV7 3328.. section: IDLE 3329 3330Enhance the initial html viewer now used for Idle Help. Properly indent 3331fixed-pitch text (patch by Mark Roseman). Give code snippet a very 3332Sphinx-like light blueish-gray background. Re-use initial width and height set by 3333users for shell and editor. When the Table of Contents (TOC) menu is used, 3334put the section header at the top of the screen. 3335 3336.. 3337 3338.. bpo: 25225 3339.. date: 8921 3340.. nonce: 9pvdq6 3341.. section: IDLE 3342 3343Condense and rewrite Idle doc section on text colors. 3344 3345.. 3346 3347.. bpo: 21995 3348.. date: 8920 3349.. nonce: C5Rmzx 3350.. section: IDLE 3351 3352Explain some differences between IDLE and console Python. 3353 3354.. 3355 3356.. bpo: 22820 3357.. date: 8919 3358.. nonce: hix_8X 3359.. section: IDLE 3360 3361Explain need for *print* when running file from Idle editor. 3362 3363.. 3364 3365.. bpo: 25224 3366.. date: 8918 3367.. nonce: UVMYQq 3368.. section: IDLE 3369 3370Doc: augment Idle feature list and no-subprocess section. 3371 3372.. 3373 3374.. bpo: 25219 3375.. date: 8917 3376.. nonce: 8_9DYg 3377.. section: IDLE 3378 3379Update doc for Idle command line options. Some were missing and notes were 3380not correct. 3381 3382.. 3383 3384.. bpo: 24861 3385.. date: 8916 3386.. nonce: Ecg2yT 3387.. section: IDLE 3388 3389Most of idlelib is private and subject to change. Use idleib.idle.* to start 3390Idle. See idlelib.__init__.__doc__. 3391 3392.. 3393 3394.. bpo: 25199 3395.. date: 8915 3396.. nonce: ih7yY3 3397.. section: IDLE 3398 3399Idle: add synchronization comments for future maintainers. 3400 3401.. 3402 3403.. bpo: 16893 3404.. date: 8914 3405.. nonce: uIi1oB 3406.. section: IDLE 3407 3408Replace help.txt with help.html for Idle doc display. The new 3409idlelib/help.html is rstripped Doc/build/html/library/idle.html. It looks 3410better than help.txt and will better document Idle as released. The tkinter 3411html viewer that works for this file was written by Rose Roseman. The now 3412unused EditorWindow.HelpDialog class and helt.txt file are deprecated. 3413 3414.. 3415 3416.. bpo: 24199 3417.. date: 8913 3418.. nonce: VKnZEv 3419.. section: IDLE 3420 3421Deprecate unused idlelib.idlever with possible removal in 3.6. 3422 3423.. 3424 3425.. bpo: 24790 3426.. date: 8912 3427.. nonce: hD1hlj 3428.. section: IDLE 3429 3430Remove extraneous code (which also create 2 & 3 conflicts). 3431 3432.. 3433 3434.. bpo: 26736 3435.. date: 8911 3436.. nonce: U_Hyqo 3437.. section: Documentation 3438 3439Used HTTPS for external links in the documentation if possible. 3440 3441.. 3442 3443.. bpo: 6953 3444.. date: 8910 3445.. nonce: Zk6rno 3446.. section: Documentation 3447 3448Rework the Readline module documentation to group related functions 3449together, and add more details such as what underlying Readline functions 3450and variables are accessed. 3451 3452.. 3453 3454.. bpo: 23606 3455.. date: 8909 3456.. nonce: 9MhIso 3457.. section: Documentation 3458 3459Adds note to ctypes documentation regarding cdll.msvcrt. 3460 3461.. 3462 3463.. bpo: 24952 3464.. date: 8908 3465.. nonce: RHhFPE 3466.. section: Documentation 3467 3468Clarify the default size argument of stack_size() in the "threading" and 3469"_thread" modules. Patch from Mattip. 3470 3471.. 3472 3473.. bpo: 26014 3474.. date: 8907 3475.. nonce: ptdZ_I 3476.. section: Documentation 3477 3478Update 3.x packaging documentation: * "See also" links to the new docs are 3479now provided in the legacy pages * links to setuptools documentation have 3480been updated 3481 3482.. 3483 3484.. bpo: 21916 3485.. date: 8906 3486.. nonce: muwCyp 3487.. section: Tests 3488 3489Added tests for the turtle module. Patch by ingrid, Gregory Loyse and Jelle 3490Zijlstra. 3491 3492.. 3493 3494.. bpo: 26295 3495.. date: 8905 3496.. nonce: sYBtj5 3497.. section: Tests 3498 3499When using "python3 -m test --testdir=TESTDIR", regrtest doesn't add "test." 3500prefix to test module names. 3501 3502.. 3503 3504.. bpo: 26523 3505.. date: 8904 3506.. nonce: em_Uzt 3507.. section: Tests 3508 3509The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested. 3510 3511.. 3512 3513.. bpo: 26015 3514.. date: 8903 3515.. nonce: p3oWK3 3516.. section: Tests 3517 3518Added new tests for pickling iterators of mutable sequences. 3519 3520.. 3521 3522.. bpo: 26325 3523.. date: 8902 3524.. nonce: KOUc82 3525.. section: Tests 3526 3527Added test.support.check_no_resource_warning() to check that no 3528ResourceWarning is emitted. 3529 3530.. 3531 3532.. bpo: 25940 3533.. date: 8901 3534.. nonce: MvBwSe 3535.. section: Tests 3536 3537Changed test_ssl to use its internal local server more. This avoids relying 3538on svn.python.org, which recently changed root certificate. 3539 3540.. 3541 3542.. bpo: 25616 3543.. date: 8900 3544.. nonce: Qr-60p 3545.. section: Tests 3546 3547Tests for OrderedDict are extracted from test_collections into separate file 3548test_ordered_dict. 3549 3550.. 3551 3552.. bpo: 25449 3553.. date: 8899 3554.. nonce: MP6KNs 3555.. section: Tests 3556 3557Added tests for OrderedDict subclasses. 3558 3559.. 3560 3561.. bpo: 25188 3562.. date: 8898 3563.. nonce: lnLnIW 3564.. section: Tests 3565 3566Add -P/--pgo to test.regrtest to suppress error output when running the test 3567suite for the purposes of a PGO build. Initial patch by Alecsandru Patrascu. 3568 3569.. 3570 3571.. bpo: 22806 3572.. date: 8897 3573.. nonce: _QHyyV 3574.. section: Tests 3575 3576Add ``python -m test --list-tests`` command to list tests. 3577 3578.. 3579 3580.. bpo: 18174 3581.. date: 8896 3582.. nonce: TzH9d_ 3583.. section: Tests 3584 3585``python -m test --huntrleaks ...`` now also checks for leak of file 3586descriptors. Patch written by Richard Oudkerk. 3587 3588.. 3589 3590.. bpo: 25260 3591.. date: 8895 3592.. nonce: jw3p83 3593.. section: Tests 3594 3595Fix ``python -m test --coverage`` on Windows. Remove the list of ignored 3596directories. 3597 3598.. 3599 3600.. bpo: 0 3601.. date: 8894 3602.. nonce: X-Bk5l 3603.. section: Tests 3604 3605``PCbuild\rt.bat`` now accepts an unlimited number of arguments to pass 3606along to regrtest.py. Previously there was a limit of 9. 3607 3608.. 3609 3610.. bpo: 26583 3611.. date: 8893 3612.. nonce: Up7hTl 3613.. section: Tests 3614 3615Skip test_timestamp_overflow in test_import if bytecode files cannot be 3616written. 3617 3618.. 3619 3620.. bpo: 21277 3621.. date: 8892 3622.. nonce: 7y1j9a 3623.. section: Build 3624 3625Don't try to link _ctypes with a ffi_convenience library. 3626 3627.. 3628 3629.. bpo: 26884 3630.. date: 8891 3631.. nonce: O8-azL 3632.. section: Build 3633 3634Fix linking extension modules for cross builds. Patch by Xavier de Gaye. 3635 3636.. 3637 3638.. bpo: 26932 3639.. date: 8890 3640.. nonce: 5kzaG9 3641.. section: Build 3642 3643Fixed support of RTLD_* constants defined as enum values, not via macros (in 3644particular on Android). Patch by Chi Hsuan Yen. 3645 3646.. 3647 3648.. bpo: 22359 3649.. date: 8889 3650.. nonce: HDjM4s 3651.. section: Build 3652 3653Disable the rules for running _freeze_importlib and pgen when 3654cross-compiling. The output of these programs is normally saved with the source 3655code anyway, and is still regenerated when doing a native build. Patch by 3656Xavier de Gaye. 3657 3658.. 3659 3660.. bpo: 21668 3661.. date: 8888 3662.. nonce: qWwBui 3663.. section: Build 3664 3665Link audioop, _datetime, _ctypes_test modules to libm, except on Mac OS X. 3666Patch written by Chi Hsuan Yen. 3667 3668.. 3669 3670.. bpo: 25702 3671.. date: 8887 3672.. nonce: ipxyJs 3673.. section: Build 3674 3675A --with-lto configure option has been added that will enable link time 3676optimizations at build time during a make profile-opt. Some compilers and 3677toolchains are known to not produce stable code when using LTO, be sure to 3678test things thoroughly before relying on it. It can provide a few % speed up 3679over profile-opt alone. 3680 3681.. 3682 3683.. bpo: 26624 3684.. date: 8886 3685.. nonce: 4fGrTl 3686.. section: Build 3687 3688Adds validation of ucrtbase[d].dll version with warning for old versions. 3689 3690.. 3691 3692.. bpo: 17603 3693.. date: 8885 3694.. nonce: 102DA- 3695.. section: Build 3696 3697Avoid error about nonexistent fileblocks.o file by using a lower-level check 3698for st_blocks in struct stat. 3699 3700.. 3701 3702.. bpo: 26079 3703.. date: 8884 3704.. nonce: mEzW0O 3705.. section: Build 3706 3707Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern Thiel. 3708 3709.. 3710 3711.. bpo: 26465 3712.. date: 8883 3713.. nonce: _YR608 3714.. section: Build 3715 3716Update Windows builds to use OpenSSL 1.0.2g. 3717 3718.. 3719 3720.. bpo: 25348 3721.. date: 8882 3722.. nonce: FLSPfp 3723.. section: Build 3724 3725Added ``--pgo`` and ``--pgo-job`` arguments to ``PCbuild\build.bat`` for 3726building with Profile-Guided Optimization. The old 3727``PCbuild\build_pgo.bat`` script is removed. 3728 3729.. 3730 3731.. bpo: 25827 3732.. date: 8881 3733.. nonce: yg3DMM 3734.. section: Build 3735 3736Add support for building with ICC to ``configure``, including a new 3737``--with-icc`` flag. 3738 3739.. 3740 3741.. bpo: 25696 3742.. date: 8880 3743.. nonce: 2R_wIv 3744.. section: Build 3745 3746Fix installation of Python on UNIX with make -j9. 3747 3748.. 3749 3750.. bpo: 24986 3751.. date: 8879 3752.. nonce: 1WyXeU 3753.. section: Build 3754 3755It is now possible to build Python on Windows without errors when external 3756libraries are not available. 3757 3758.. 3759 3760.. bpo: 24421 3761.. date: 8878 3762.. nonce: 2zY7vM 3763.. section: Build 3764 3765Compile Modules/_math.c once, before building extensions. Previously it 3766could fail to compile properly if the math and cmath builds were concurrent. 3767 3768.. 3769 3770.. bpo: 26465 3771.. date: 8877 3772.. nonce: PkIaV8 3773.. section: Build 3774 3775Update OS X 10.5+ 32-bit-only installer to build and link with OpenSSL 37761.0.2g. 3777 3778.. 3779 3780.. bpo: 26268 3781.. date: 8876 3782.. nonce: I3-YLh 3783.. section: Build 3784 3785Update Windows builds to use OpenSSL 1.0.2f. 3786 3787.. 3788 3789.. bpo: 25136 3790.. date: 8875 3791.. nonce: Vi-fmO 3792.. section: Build 3793 3794Support Apple Xcode 7's new textual SDK stub libraries. 3795 3796.. 3797 3798.. bpo: 24324 3799.. date: 8874 3800.. nonce: m6DZMx 3801.. section: Build 3802 3803Do not enable unreachable code warnings when using gcc as the option does 3804not work correctly in older versions of gcc and has been silently removed as 3805of gcc-4.5. 3806 3807.. 3808 3809.. bpo: 27053 3810.. date: 8873 3811.. nonce: 1IRbae 3812.. section: Windows 3813 3814Updates make_zip.py to correctly generate library ZIP file. 3815 3816.. 3817 3818.. bpo: 26268 3819.. date: 8872 3820.. nonce: Z-lJEh 3821.. section: Windows 3822 3823Update the prepare_ssl.py script to handle OpenSSL releases that don't 3824include the contents of the include directory (that is, 1.0.2e and later). 3825 3826.. 3827 3828.. bpo: 26071 3829.. date: 8871 3830.. nonce: wLxL2l 3831.. section: Windows 3832 3833bdist_wininst created binaries fail to start and find 32bit Python 3834 3835.. 3836 3837.. bpo: 26073 3838.. date: 8870 3839.. nonce: XwWgHp 3840.. section: Windows 3841 3842Update the list of magic numbers in launcher 3843 3844.. 3845 3846.. bpo: 26065 3847.. date: 8869 3848.. nonce: SkVLJp 3849.. section: Windows 3850 3851Excludes venv from library when generating embeddable distro. 3852 3853.. 3854 3855.. bpo: 25022 3856.. date: 8868 3857.. nonce: vAt_zr 3858.. section: Windows 3859 3860Removed very outdated PC/example_nt/ directory. 3861 3862.. 3863 3864.. bpo: 26799 3865.. date: 8867 3866.. nonce: gK2VXX 3867.. section: Tools/Demos 3868 3869Fix python-gdb.py: don't get C types once when the Python code is loaded, 3870but get C types on demand. The C types can change if python-gdb.py is loaded 3871before the Python executable. Patch written by Thomas Ilsche. 3872 3873.. 3874 3875.. bpo: 26271 3876.. date: 8866 3877.. nonce: wg-rzr 3878.. section: Tools/Demos 3879 3880Fix the Freeze tool to properly use flags passed through configure. Patch by 3881Daniel Shaulov. 3882 3883.. 3884 3885.. bpo: 26489 3886.. date: 8865 3887.. nonce: rJ_U5S 3888.. section: Tools/Demos 3889 3890Add dictionary unpacking support to Tools/parser/unparse.py. Patch by Guo Ci 3891Teo. 3892 3893.. 3894 3895.. bpo: 26316 3896.. date: 8864 3897.. nonce: QJvVOi 3898.. section: Tools/Demos 3899 3900Fix variable name typo in Argument Clinic. 3901 3902.. 3903 3904.. bpo: 25440 3905.. date: 8863 3906.. nonce: 5xhyGr 3907.. section: Tools/Demos 3908 3909Fix output of python-config --extension-suffix. 3910 3911.. 3912 3913.. bpo: 25154 3914.. date: 8862 3915.. nonce: yLO-r4 3916.. section: Tools/Demos 3917 3918The pyvenv script has been deprecated in favour of `python3 -m venv`. 3919 3920.. 3921 3922.. bpo: 26312 3923.. date: 8861 3924.. nonce: h1T61B 3925.. section: C API 3926 3927SystemError is now raised in all programming bugs with using 3928PyArg_ParseTupleAndKeywords(). RuntimeError did raised before in some 3929programming bugs. 3930 3931.. 3932 3933.. bpo: 26198 3934.. date: 8860 3935.. nonce: lVn1HX 3936.. section: C API 3937 3938ValueError is now raised instead of TypeError on buffer overflow in parsing 3939"es#" and "et#" format units. SystemError is now raised instead of 3940TypeError on programmatical error in parsing format string. 3941