1.. date: 2022-06-15-20-09-23 2.. gh-issue: 87389 3.. nonce: QVaC3f 4.. release date: 2022-07-11 5.. section: Security 6 7:mod:`http.server`: Fix an open redirection vulnerability in the HTTP server 8when an URI path starts with ``//``. Vulnerability discovered, and initial 9fix proposed, by Hamza Avvan. 10 11.. 12 13.. date: 2022-06-03-12-52-53 14.. gh-issue: 79096 15.. nonce: YVoxgC 16.. section: Security 17 18LWPCookieJar and MozillaCookieJar create files with file mode 600 instead of 19644 (Microsoft Windows is not affected) 20 21.. 22 23.. date: 2022-05-19-08-53-07 24.. gh-issue: 92888 25.. nonce: TLtR9W 26.. section: Security 27 28Fix ``memoryview`` use after free when accessing the backing buffer in 29certain cases. 30 31.. 32 33.. date: 2022-04-27-18-25-30 34.. gh-issue: 68966 35.. nonce: gjS8zs 36.. section: Security 37 38The deprecated mailcap module now refuses to inject unsafe text (filenames, 39MIME types, parameters) into shell commands. Instead of using such text, it 40will warn and act as if a match was not found (or for test commands, as if 41the test failed). 42 43.. 44 45.. date: 2022-07-08-16-44-11 46.. gh-issue: 94694 47.. nonce: VkL2CM 48.. section: Core and Builtins 49 50Fix an issue that could cause code with multi-line method lookups to have 51misleading or incorrect column offset information. In some cases (when 52compiling a hand-built AST) this could have resulted in a hard crash of the 53interpreter. 54 55.. 56 57.. date: 2022-07-08-11-44-45 58.. gh-issue: 93252 59.. nonce: i2358c 60.. section: Core and Builtins 61 62Fix an issue that caused internal frames to outlive failed Python function 63calls, possibly resulting in memory leaks or hard interpreter crashes. 64 65.. 66 67.. date: 2022-07-07-21-13-25 68.. gh-issue: 94215 69.. nonce: _Sv9Ms 70.. section: Core and Builtins 71 72Fix an issue where exceptions raised by line-tracing events would cause 73frames to be left in an invalid state, possibly resulting in a hard crash of 74the interpreter. 75 76.. 77 78.. date: 2022-07-06-14-02-26 79.. gh-issue: 92228 80.. nonce: 44Cbly 81.. section: Core and Builtins 82 83Disable the compiler's inline-small-exit-blocks optimization for exit blocks 84that are associated with source code lines. This fixes a bug where the 85debugger cannot tell where an exception handler ends and the following code 86block begins. 87 88.. 89 90.. date: 2022-07-01-20-00-19 91.. gh-issue: 94485 92.. nonce: mo5st7 93.. section: Core and Builtins 94 95Line number of a module's ``RESUME`` instruction is set to 0 as specified in 96:pep:`626`. 97 98.. 99 100.. date: 2022-06-30-15-07-26 101.. gh-issue: 94438 102.. nonce: btzHSk 103.. section: Core and Builtins 104 105Account for instructions that can push NULL to the stack when setting line 106number in a frame. Prevents some (unlikely) crashes. 107 108.. 109 110.. date: 2022-06-29-22-18-36 111.. gh-issue: 91719 112.. nonce: 3APYYI 113.. section: Core and Builtins 114 115Reload ``opcode`` when raising ``unknown opcode error`` in the interpreter 116main loop, for C compilers to generate dispatching code independently. 117 118.. 119 120.. date: 2022-06-29-15-45-04 121.. gh-issue: 94329 122.. nonce: olUQyk 123.. section: Core and Builtins 124 125Compile and run code with unpacking of extremely large sequences (1000s of 126elements). Such code failed to compile. It now compiles and runs correctly. 127 128.. 129 130.. date: 2022-06-28-14-20-36 131.. gh-issue: 94360 132.. nonce: DiEnen 133.. section: Core and Builtins 134 135Fixed a tokenizer crash when reading encoded files with syntax errors from 136``stdin`` with non utf-8 encoded text. Patch by Pablo Galindo 137 138.. 139 140.. date: 2022-06-28-12-41-17 141.. gh-issue: 88116 142.. nonce: A7fEl_ 143.. section: Core and Builtins 144 145Fix an issue when reading line numbers from code objects if the encoded line 146numbers are close to ``INT_MIN``. Patch by Pablo Galindo 147 148.. 149 150.. date: 2022-06-28-10-08-06 151.. gh-issue: 94262 152.. nonce: m-HWUZ 153.. section: Core and Builtins 154 155Don't create frame objects for incomplete frames. Prevents the creation of 156generators and closures from being observable to Python and C extensions, 157restoring the behavior of 3.10 and earlier. 158 159.. 160 161.. date: 2022-06-26-14-37-03 162.. gh-issue: 94192 163.. nonce: ab7tn7 164.. section: Core and Builtins 165 166Fix error for dictionary literals with invalid expression as value. 167 168.. 169 170.. date: 2022-06-24-14-06-20 171.. gh-issue: 93883 172.. nonce: 8jVQQ4 173.. section: Core and Builtins 174 175Revise the display strategy of traceback enhanced error locations. The 176indicators are only shown when the location doesn't span the whole line. 177 178.. 179 180.. date: 2022-06-20-13-48-57 181.. gh-issue: 94021 182.. nonce: o78q3G 183.. section: Core and Builtins 184 185Fix unreachable code warning in ``Python/specialize.c``. 186 187.. 188 189.. date: 2022-06-13-13-55-34 190.. gh-issue: 93516 191.. nonce: HILrDl 192.. section: Core and Builtins 193 194Store offset of first traceable instruction in code object to avoid having 195to recompute it for each instruction when tracing. 196 197.. 198 199.. date: 2022-06-13-10-48-09 200.. gh-issue: 93516 201.. nonce: yJSait 202.. section: Core and Builtins 203 204Lazily create a table mapping bytecode offsets to line numbers to speed up 205calculation of line numbers when tracing. 206 207.. 208 209.. date: 2022-06-12-19-31-56 210.. gh-issue: 89828 211.. nonce: bq02M7 212.. section: Core and Builtins 213 214:class:`types.GenericAlias` no longer relays the ``__class__`` attribute. 215For example, ``isinstance(list[int], type)`` no longer returns ``True``. 216 217.. 218 219.. date: 2022-06-10-12-03-17 220.. gh-issue: 93671 221.. nonce: idkQqG 222.. section: Core and Builtins 223 224Fix some exponential backtrace case happening with deeply nested sequence 225patterns in match statements. Patch by Pablo Galindo 226 227.. 228 229.. date: 2022-06-10-10-31-18 230.. gh-issue: 93662 231.. nonce: -7RSC1 232.. section: Core and Builtins 233 234Make sure that the end column offsets are correct in multi-line method 235calls. Previously, the end column could precede the column offset. 236 237.. 238 239.. date: 2022-06-09-19-19-02 240.. gh-issue: 93461 241.. nonce: 5DqP1e 242.. section: Core and Builtins 243 244:func:`importlib.invalidate_caches` now drops entries from 245:data:`sys.path_importer_cache` with a relative path as name. This solves a 246caching issue when a process changes its current working directory. 247 248``FileFinder`` no longer inserts a dot in the path, e.g. ``/egg/./spam`` is 249now ``/egg/spam``. 250 251.. 252 253.. date: 2022-06-01-17-47-40 254.. gh-issue: 93418 255.. nonce: 24dJuc 256.. section: Core and Builtins 257 258Fixed an assert where an f-string has an equal sign '=' following an 259expression, but there's no trailing brace. For example, f"{i=". 260 261.. 262 263.. date: 2022-05-31-16-36-30 264.. gh-issue: 93382 265.. nonce: Jf6gAj 266.. section: Core and Builtins 267 268Cache the result of :c:func:`PyCode_GetCode` function to restore the O(1) 269lookup of the :attr:`~types.CodeType.co_code` attribute. 270 271.. 272 273.. date: 2022-05-30-15-35-42 274.. gh-issue: 93354 275.. nonce: RZk8gs 276.. section: Core and Builtins 277 278Use exponential backoff for specialization counters in the interpreter. Can 279reduce the number of failed specializations significantly and avoid slowdown 280for those parts of a program that are not suitable for specialization. 281 282.. 283 284.. date: 2022-05-20-09-25-34 285.. gh-issue: 93021 286.. nonce: k3Aji2 287.. section: Core and Builtins 288 289Fix the :attr:`__text_signature__` for :meth:`__get__` methods implemented 290in C. Patch by Jelle Zijlstra. 291 292.. 293 294.. date: 2022-05-18-18-34-45 295.. gh-issue: 92930 296.. nonce: kpYPOb 297.. section: Core and Builtins 298 299Fixed a crash in ``_pickle.c`` from mutating collections during 300``__reduce__`` or ``persistent_id``. 301 302.. 303 304.. date: 2022-05-18-08-32-33 305.. gh-issue: 92914 306.. nonce: tJUeTD 307.. section: Core and Builtins 308 309Always round the allocated size for lists up to the nearest even number. 310 311.. 312 313.. date: 2022-05-17-20-41-43 314.. gh-issue: 92858 315.. nonce: eIXJTn 316.. section: Core and Builtins 317 318Improve error message for some suites with syntax error before ':' 319 320.. 321 322.. bpo: 46142 323.. date: 2022-01-02-14-53-59 324.. nonce: WayjgT 325.. section: Core and Builtins 326 327Make ``--help`` output shorter by moving some info to the new ``--help-env`` 328and ``--help-xoptions`` command-line options. Also add ``--help-all`` option 329to print complete usage. 330 331.. 332 333.. date: 2022-07-11-10-41-48 334.. gh-issue: 94736 335.. nonce: EbsgeK 336.. section: Library 337 338Fix crash when deallocating an instance of a subclass of 339``_multiprocessing.SemLock``. Patch by Kumar Aditya. 340 341.. 342 343.. date: 2022-07-07-15-46-55 344.. gh-issue: 94637 345.. nonce: IYEiUM 346.. section: Library 347 348:meth:`SSLContext.set_default_verify_paths` now releases the GIL around 349``SSL_CTX_set_default_verify_paths`` call. The function call performs I/O 350and CPU intensive work. 351 352.. 353 354.. date: 2022-07-06-16-01-08 355.. gh-issue: 94607 356.. nonce: Q6RYfz 357.. section: Library 358 359Fix subclassing complex generics with type variables in :mod:`typing`. 360Previously an error message saying ``Some type variables ... are not listed 361in Generic[...]`` was shown. :mod:`typing` no longer populates 362``__parameters__`` with the ``__parameters__`` of a Python class. 363 364.. 365 366.. date: 2022-07-06-14-45-12 367.. gh-issue: 93910 368.. nonce: iZcp67 369.. section: Library 370 371The ability to access the other values of an enum on an enum (e.g. 372``Color.RED.BLUE``) has been restored in order to fix a performance 373regression. 374 375.. 376 377.. date: 2022-07-06-06-02-02 378.. gh-issue: 93896 379.. nonce: vIgWGr 380.. section: Library 381 382Fix :func:`asyncio.run` and :class:`unittest.IsolatedAsyncioTestCase` to 383always the set event loop as it was done in Python 3.10 and earlier. Patch 384by Kumar Aditya. 385 386.. 387 388.. date: 2022-07-02-19-46-30 389.. gh-issue: 94510 390.. nonce: xOatDC 391.. section: Library 392 393Re-entrant calls to :func:`sys.setprofile` and :func:`sys.settrace` now 394raise :exc:`RuntimeError`. Patch by Pablo Galindo. 395 396.. 397 398.. date: 2022-06-29-09-48-37 399.. gh-issue: 92336 400.. nonce: otA6c6 401.. section: Library 402 403Fix bug where :meth:`linecache.getline` fails on bad files with 404:exc:`UnicodeDecodeError` or :exc:`SyntaxError`. It now returns an empty 405string as per the documentation. 406 407.. 408 409.. date: 2022-06-29-04-42-56 410.. gh-issue: 94398 411.. nonce: YOq_bJ 412.. section: Library 413 414Once a :class:`asyncio.TaskGroup` has started shutting down (i.e., at least 415one task has failed and the task group has started cancelling the remaining 416tasks), it should not be possible to add new tasks to the task group. 417 418.. 419 420.. date: 2022-06-25-16-27-02 421.. gh-issue: 94254 422.. nonce: beP16v 423.. section: Library 424 425Fixed types of :mod:`struct` module to be immutable. Patch by Kumar Aditya. 426 427.. 428 429.. date: 2022-06-24-19-23-59 430.. gh-issue: 94207 431.. nonce: VhS1eS 432.. section: Library 433 434Made :class:`_struct.Struct` GC-tracked in order to fix a reference leak in 435the :mod:`_struct` module. 436 437.. 438 439.. date: 2022-06-23-13-12-05 440.. gh-issue: 91742 441.. nonce: sNytVX 442.. section: Library 443 444Fix :mod:`pdb` crash after jump caused by a null pointer dereference. Patch 445by Kumar Aditya. 446 447.. 448 449.. date: 2022-06-22-11-16-11 450.. gh-issue: 94101 451.. nonce: V9vDG8 452.. section: Library 453 454Manual instantiation of :class:`ssl.SSLSession` objects is no longer allowed 455as it lead to misconfigured instances that crashed the interpreter when 456attributes where accessed on them. 457 458.. 459 460.. date: 2022-06-21-11-40-31 461.. gh-issue: 84753 462.. nonce: FW1pxO 463.. section: Library 464 465:func:`inspect.iscoroutinefunction`, :func:`inspect.isgeneratorfunction`, 466and :func:`inspect.isasyncgenfunction` now properly return ``True`` for 467duck-typed function-like objects like instances of 468:class:`unittest.mock.AsyncMock`. 469 470This makes :func:`inspect.iscoroutinefunction` consistent with the behavior 471of :func:`asyncio.iscoroutinefunction`. Patch by Mehdi ABAAKOUK. 472 473.. 474 475.. date: 2022-06-20-23-14-43 476.. gh-issue: 94028 477.. nonce: UofEcX 478.. section: Library 479 480Fix a regression in the :mod:`sqlite3` where statement objects were not 481properly cleared and reset after use in cursor iters. The regression was 482introduced by PR 27884 in Python 3.11a1. Patch by Erlend E. Aasland. 483 484.. 485 486.. date: 2022-06-16-11-16-53 487.. gh-issue: 93820 488.. nonce: 00X0Y5 489.. section: Library 490 491Pickle :class:`enum.Flag` by name. 492 493.. 494 495.. date: 2022-06-16-09-24-50 496.. gh-issue: 93847 497.. nonce: kuv8bN 498.. section: Library 499 500Fix repr of enum of generic aliases. 501 502.. 503 504.. date: 2022-06-15-21-35-11 505.. gh-issue: 91404 506.. nonce: 39TZzW 507.. section: Library 508 509Revert the :mod:`re` memory leak when a match is terminated by a signal or 510memory allocation failure as the implemented fix caused a major performance 511regression. 512 513.. 514 515.. date: 2022-06-15-21-28-16 516.. gh-issue: 83499 517.. nonce: u3DQJ- 518.. section: Library 519 520Fix double closing of file description in :mod:`tempfile`. 521 522.. 523 524.. date: 2022-06-15-21-20-02 525.. gh-issue: 93820 526.. nonce: FAMLY8 527.. section: Library 528 529Fixed a regression when :func:`copy.copy`-ing :class:`enum.Flag` with 530multiple flag members. 531 532.. 533 534.. date: 2022-06-11-13-32-17 535.. gh-issue: 79512 536.. nonce: A1KTDr 537.. section: Library 538 539Fixed names and ``__module__`` value of :mod:`weakref` classes 540:class:`~weakref.ReferenceType`, :class:`~weakref.ProxyType`, 541:class:`~weakref.CallableProxyType`. It makes them pickleable. 542 543.. 544 545.. date: 2022-06-09-17-15-26 546.. gh-issue: 91389 547.. nonce: OE4vS5 548.. section: Library 549 550Fix an issue where :mod:`dis` utilities could report missing or incorrect 551position information in the presence of ``CACHE`` entries. 552 553.. 554 555.. date: 2022-06-09-14-44-21 556.. gh-issue: 93626 557.. nonce: sfghs46 558.. section: Library 559 560Set ``__future__.annotations`` to have a ``None`` mandatoryRelease to 561indicate that it is currently 'TBD'. 562 563.. 564 565.. date: 2022-06-09-10-12-55 566.. gh-issue: 90473 567.. nonce: 683m_C 568.. section: Library 569 570Emscripten and WASI have no home directory and cannot provide :pep:`370` 571user site directory. 572 573.. 574 575.. date: 2022-06-08-20-11-02 576.. gh-issue: 90494 577.. nonce: LIZT85 578.. section: Library 579 580:func:`copy.copy` and :func:`copy.deepcopy` now always raise a TypeError if 581``__reduce__()`` returns a tuple with length 6 instead of silently ignore 582the 6th item or produce incorrect result. 583 584.. 585 586.. date: 2022-06-07-14-53-46 587.. gh-issue: 90549 588.. nonce: T4FMKY 589.. section: Library 590 591Fix a multiprocessing bug where a global named resource (such as a 592semaphore) could leak when a child process is spawned (as opposed to 593forked). 594 595.. 596 597.. date: 2022-06-06-13-19-43 598.. gh-issue: 93521 599.. nonce: _vE8m9 600.. section: Library 601 602Fixed a case where dataclasses would try to add ``__weakref__`` into the 603``__slots__`` for a dataclass that specified ``weakref_slot=True`` when it 604was already defined in one of its bases. This resulted in a ``TypeError`` 605upon the new class being created. 606 607.. 608 609.. date: 2022-06-06-12-58-27 610.. gh-issue: 79579 611.. nonce: e8rB-M 612.. section: Library 613 614:mod:`sqlite3` now correctly detects DML queries with leading comments. 615Patch by Erlend E. Aasland. 616 617.. 618 619.. date: 2022-06-05-22-22-42 620.. gh-issue: 93421 621.. nonce: 43UO_8 622.. section: Library 623 624Update :data:`sqlite3.Cursor.rowcount` when a DML statement has run to 625completion. This fixes the row count for SQL queries like ``UPDATE ... 626RETURNING``. Patch by Erlend E. Aasland. 627 628.. 629 630.. date: 2022-06-01-11-24-13 631.. gh-issue: 91162 632.. nonce: NxvU_u 633.. section: Library 634 635Support splitting of unpacked arbitrary-length tuple over ``TypeVar`` and 636``TypeVarTuple`` parameters. For example: 637 638* ``A[T, *Ts][*tuple[int, ...]]`` -> ``A[int, *tuple[int, ...]]`` 639* ``A[*Ts, T][*tuple[int, ...]]`` -> ``A[*tuple[int, ...], int]`` 640 641.. 642 643.. date: 2022-05-31-14-58-40 644.. gh-issue: 93353 645.. nonce: 9Hvm6o 646.. section: Library 647 648Fix the :func:`importlib.resources.as_file` context manager to remove the 649temporary file if destroyed late during Python finalization: keep a local 650reference to the :func:`os.remove` function. Patch by Victor Stinner. 651 652.. 653 654.. date: 2022-05-30-21-42-50 655.. gh-issue: 83658 656.. nonce: 01Ntx0 657.. section: Library 658 659Make :class:`multiprocessing.Pool` raise an exception if 660``maxtasksperchild`` is not ``None`` or a positive int. 661 662.. 663 664.. date: 2022-05-26-23-10-55 665.. gh-issue: 93156 666.. nonce: 4XfDVN 667.. section: Library 668 669Accessing the :attr:`pathlib.PurePath.parents` sequence of an absolute path 670using negative index values produced incorrect results. 671 672.. 673 674.. date: 2022-05-24-11-19-04 675.. gh-issue: 74696 676.. nonce: -cnf-A 677.. section: Library 678 679:func:`shutil.make_archive` no longer temporarily changes the current 680working directory during creation of standard ``.zip`` or tar archives. 681 682.. 683 684.. date: 2022-05-22-16-08-01 685.. gh-issue: 89973 686.. nonce: jc-Q4g 687.. section: Library 688 689Fix :exc:`re.error` raised in :mod:`fnmatch` if the pattern contains a 690character range with upper bound lower than lower bound (e.g. ``[c-a]``). 691Now such ranges are interpreted as empty ranges. 692 693.. 694 695.. date: 2022-05-19-17-49-58 696.. gh-issue: 92932 697.. nonce: o2peTh 698.. section: Library 699 700Now :func:`~dis.dis` and :func:`~dis.get_instructions` handle operand values 701for instructions prefixed by ``EXTENDED_ARG_QUICK``. Patch by Sam Gross and 702Dong-hee Na. 703 704.. 705 706.. date: 2022-04-15-17-38-55 707.. gh-issue: 91577 708.. nonce: Ah7cLL 709.. section: Library 710 711Move imports in :class:`~multiprocessing.SharedMemory` methods to module 712level so that they can be executed late in python finalization. 713 714.. 715 716.. date: 2022-04-11-16-55-41 717.. gh-issue: 91456 718.. nonce: DK3KKl 719.. section: Library 720 721Deprecate current default auto() behavior: In 3.13 the default will be for 722for auto() to always return the largest member value incremented by 1, and 723to raise if incompatible value types are used. 724 725.. 726 727.. bpo: 47231 728.. date: 2022-04-08-22-12-11 729.. nonce: lvyglt 730.. section: Library 731 732Fixed an issue with inconsistent trailing slashes in tarfile longname 733directories. 734 735.. 736 737.. bpo: 46755 738.. date: 2022-02-15-12-40-48 739.. nonce: zePJfx 740.. section: Library 741 742In :class:`QueueHandler`, clear ``stack_info`` from :class:`LogRecord` to 743prevent stack trace from being written twice. 744 745.. 746 747.. bpo: 46197 748.. date: 2022-01-03-15-07-06 749.. nonce: Z0djv6 750.. section: Library 751 752Fix :mod:`ensurepip` environment isolation for subprocess running ``pip``. 753 754.. 755 756.. bpo: 45924 757.. date: 2021-12-27-15-32-15 758.. nonce: 0ZpHX2 759.. section: Library 760 761Fix :mod:`asyncio` incorrect traceback when future's exception is raised 762multiple times. Patch by Kumar Aditya. 763 764.. 765 766.. bpo: 34828 767.. date: 2018-09-28-22-18-03 768.. nonce: 5Zyi_S 769.. section: Library 770 771:meth:`sqlite3.Connection.iterdump` now handles databases that use 772``AUTOINCREMENT`` in one or more tables. 773 774.. 775 776.. date: 2022-07-07-08-42-05 777.. gh-issue: 94321 778.. nonce: pmCIPb 779.. section: Documentation 780 781Document the :pep:`246` style protocol type 782:class:`sqlite3.PrepareProtocol`. 783 784.. 785 786.. date: 2022-06-16-10-10-59 787.. gh-issue: 61162 788.. nonce: 1ypkG8 789.. section: Documentation 790 791Clarify :mod:`sqlite3` behavior when 792:ref:`sqlite3-connection-context-manager`. 793 794.. 795 796.. date: 2022-06-15-12-12-49 797.. gh-issue: 87260 798.. nonce: epyI7D 799.. section: Documentation 800 801Align :mod:`sqlite3` argument specs with the actual implementation. 802 803.. 804 805.. date: 2022-05-29-21-22-54 806.. gh-issue: 86986 807.. nonce: lFXw8j 808.. section: Documentation 809 810The minimum Sphinx version required to build the documentation is now 3.2. 811 812.. 813 814.. date: 2022-05-26-14-51-25 815.. gh-issue: 88831 816.. nonce: 5Cccr5 817.. section: Documentation 818 819Augmented documentation of asyncio.create_task(). Clarified the need to keep 820strong references to tasks and added a code snippet detailing how to to 821this. 822 823.. 824 825.. bpo: 47161 826.. date: 2022-03-30-17-56-01 827.. nonce: gesHfS 828.. section: Documentation 829 830Document that :class:`pathlib.PurePath` does not collapse initial double 831slashes because they denote UNC paths. 832 833.. 834 835.. date: 2022-07-05-17-53-13 836.. gh-issue: 91330 837.. nonce: Qys5IL 838.. section: Tests 839 840Added more tests for :mod:`dataclasses` to cover behavior with data 841descriptor-based fields. 842 843.. 844 845.. date: 2022-06-27-21-27-20 846.. gh-issue: 94208 847.. nonce: VR6HX- 848.. section: Tests 849 850``test_ssl`` is now checking for supported TLS version and protocols in more 851tests. 852 853.. 854 855.. date: 2022-06-27-08-53-40 856.. gh-issue: 94315 857.. nonce: MoZT9t 858.. section: Tests 859 860Tests now check for DAC override capability instead of relying on 861:func:`os.geteuid`. 862 863.. 864 865.. date: 2022-06-17-15-20-09 866.. gh-issue: 93951 867.. nonce: CW1Vv4 868.. section: Tests 869 870In test_bdb.StateTestCase.test_skip, avoid including auxiliary importers. 871 872.. 873 874.. date: 2022-06-17-13-55-11 875.. gh-issue: 93957 876.. nonce: X4ovYV 877.. section: Tests 878 879Provide nicer error reporting from subprocesses in 880test_venv.EnsurePipTest.test_with_pip. 881 882.. 883 884.. date: 2022-06-10-21-18-14 885.. gh-issue: 84461 886.. nonce: 9TAb26 887.. section: Tests 888 889``run_tests.py`` now handles cross compiling env vars correctly and pass 890``HOSTRUNNER`` to regression tests. 891 892.. 893 894.. date: 2022-06-08-22-32-56 895.. gh-issue: 93616 896.. nonce: e5Kkx2 897.. section: Tests 898 899``test_modulefinder`` now creates a temporary directory in 900``ModuleFinderTest.setUp()`` instead of module scope. 901 902.. 903 904.. date: 2022-06-08-14-17-59 905.. gh-issue: 93575 906.. nonce: Xb2LNB 907.. section: Tests 908 909Fix issue with test_unicode test_raiseMemError. The test case now use 910``test.support.calcobjsize`` to calculate size of PyUnicode structs. 911:func:`sys.getsizeof` may return different size when string has UTF-8 912memory. 913 914.. 915 916.. date: 2022-06-05-10-16-45 917.. gh-issue: 90473 918.. nonce: QMu7A8 919.. section: Tests 920 921WASI does not have a ``chmod(2)`` syscall. :func:`os.chmod` is now a dummy 922function on WASI. Skip all tests that depend on working :func:`os.chmod`. 923 924.. 925 926.. date: 2022-06-04-12-05-31 927.. gh-issue: 90473 928.. nonce: RSpjF7 929.. section: Tests 930 931Skip tests on WASI that require symlinks with absolute paths. 932 933.. 934 935.. date: 2022-06-03-16-26-04 936.. gh-issue: 57539 937.. nonce: HxWgYO 938.. section: Tests 939 940Increase calendar test coverage for 941:meth:`calendar.LocaleTextCalendar.formatweekday`. 942 943.. 944 945.. date: 2022-06-03-14-18-37 946.. gh-issue: 90473 947.. nonce: 7iXVRK 948.. section: Tests 949 950Skip symlink tests on WASI. wasmtime uses ``openat2(2)`` with 951``RESOLVE_BENEATH`` flag, which prevents symlinks with absolute paths. 952 953.. 954 955.. date: 2022-06-03-12-22-44 956.. gh-issue: 89858 957.. nonce: ftBvjE 958.. section: Tests 959 960Fix ``test_embed`` for out-of-tree builds. Patch by Kumar Aditya. 961 962.. 963 964.. date: 2022-05-25-23-07-15 965.. gh-issue: 92886 966.. nonce: Aki63_ 967.. section: Tests 968 969Fixing tests that fail when running with optimizations (``-O``) in 970``test_imaplib.py``. 971 972.. 973 974.. date: 2022-05-25-23-00-35 975.. gh-issue: 92886 976.. nonce: Y-vrWj 977.. section: Tests 978 979Fixing tests that fail when running with optimizations (``-O``) in 980``test_zipimport.py`` 981 982.. 983 984.. bpo: 47016 985.. date: 2022-03-14-23-28-17 986.. nonce: K-t2QX 987.. section: Tests 988 989Create a GitHub Actions workflow for verifying bundled pip and setuptools. 990Patch by Illia Volochii and Adam Turner. 991 992.. 993 994.. date: 2022-06-29-08-58-31 995.. gh-issue: 94404 996.. nonce: 3MadM6 997.. section: Build 998 999``makesetup`` now works around an issue with sed on macOS and uses correct 1000CFLAGS for object files that end up in a shared extension. Module CFLAGS are 1001used before PY_STDMODULE_CFLAGS to avoid clashes with system headers. 1002 1003.. 1004 1005.. date: 2022-06-08-14-28-03 1006.. gh-issue: 93584 1007.. nonce: 0xfHOK 1008.. section: Build 1009 1010Address race condition in ``Makefile`` when installing a PGO build. All 1011``test`` and ``install`` targets now depend on ``all`` target. 1012 1013.. 1014 1015.. date: 2022-06-04-12-53-53 1016.. gh-issue: 93491 1017.. nonce: ehM211 1018.. section: Build 1019 1020``configure`` now detects and reports :pep:`11` support tiers. 1021 1022.. 1023 1024.. date: 2022-06-15-01-03-52 1025.. gh-issue: 93824 1026.. nonce: mR4mxu 1027.. section: Windows 1028 1029Drag and drop of files onto Python files in Windows Explorer has been 1030enabled for Windows ARM64. 1031 1032.. 1033 1034.. bpo: 42658 1035.. date: 2022-03-20-15-47-35 1036.. nonce: 16eXtb 1037.. section: Windows 1038 1039Support native Windows case-insensitive path comparisons by using 1040``LCMapStringEx`` instead of :func:`str.lower` in :func:`ntpath.normcase`. 1041Add ``LCMapStringEx`` to the :mod:`_winapi` module. 1042 1043.. 1044 1045.. date: 2022-07-04-01-37-42 1046.. gh-issue: 94538 1047.. nonce: 1rgy1Y 1048.. section: Tools/Demos 1049 1050Fix Argument Clinic output to custom file destinations. Patch by Erlend E. 1051Aasland. 1052 1053.. 1054 1055.. date: 2022-06-29-22-47-11 1056.. gh-issue: 94430 1057.. nonce: hdov8L 1058.. section: Tools/Demos 1059 1060Allow parameters named ``module`` and ``self`` with custom C names in 1061Argument Clinic. Patch by Erlend E. Aasland 1062 1063.. 1064 1065.. date: 2022-06-17-13-41-38 1066.. gh-issue: 93937 1067.. nonce: uKVTEh 1068.. section: C API 1069 1070The following frame functions and type are now directly available with 1071``#include <Python.h>``, it's no longer needed to add ``#include 1072<frameobject.h>``: 1073 1074* :c:func:`PyFrame_Check` 1075* :c:func:`PyFrame_GetBack` 1076* :c:func:`PyFrame_GetBuiltins` 1077* :c:func:`PyFrame_GetGenerator` 1078* :c:func:`PyFrame_GetGlobals` 1079* :c:func:`PyFrame_GetLasti` 1080* :c:func:`PyFrame_GetLocals` 1081* :c:type:`PyFrame_Type` 1082 1083Patch by Victor Stinner. 1084 1085.. 1086 1087.. date: 2022-06-13-21-37-31 1088.. gh-issue: 91321 1089.. nonce: DgJFvS 1090.. section: C API 1091 1092Fix the compatibility of the Python C API with C++ older than C++11. Patch 1093by Victor Stinner. 1094 1095.. 1096 1097.. date: 2022-06-10-23-41-48 1098.. gh-issue: 91731 1099.. nonce: fhYUQG 1100.. section: C API 1101 1102Avoid defining the ``static_assert`` when compiling with C++ 11, where this 1103is a keyword and redefining it can lead to undefined behavior. Patch by 1104Pablo Galindo 1105 1106.. 1107 1108.. date: 2022-06-04-13-15-41 1109.. gh-issue: 93442 1110.. nonce: 4M4NDb 1111.. section: C API 1112 1113Add C++ overloads for _Py_CAST_impl() to handle 0/NULL. This will allow C++ 1114extensions that pass 0 or NULL to macros using _Py_CAST() to continue to 1115compile. 1116