1.. date: 2022-07-31-13-23-12 2.. gh-issue: 95150 3.. nonce: 67FXVo 4.. release date: 2022-08-05 5.. section: Core and Builtins 6 7Update code object hashing and equality to consider all debugging and 8exception handling tables. This fixes an issue where certain non-identical 9code objects could be "deduplicated" during compilation. 10 11.. 12 13.. date: 2022-07-28-08-33-31 14.. gh-issue: 95355 15.. nonce: yN4XVk 16.. section: Core and Builtins 17 18``_PyPegen_Parser_New`` now properly detects token memory allocation errors. 19Patch by Honglin Zhu. 20 21.. 22 23.. date: 2022-07-27-14-21-57 24.. gh-issue: 90081 25.. nonce: HVAS5x 26.. section: Core and Builtins 27 28Run Python code in tracer/profiler function at full speed. Fixes slowdown in 29earlier versions of 3.11. 30 31.. 32 33.. date: 2022-07-27-14-05-07 34.. gh-issue: 95324 35.. nonce: 28Q5u7 36.. section: Core and Builtins 37 38Emit a warning in debug mode if an object does not call 39:c:func:`PyObject_GC_UnTrack` before deallocation. Patch by Pablo Galindo. 40 41.. 42 43.. date: 2022-07-24-00-27-47 44.. gh-issue: 95185 45.. nonce: ghYTZx 46.. section: Core and Builtins 47 48Prevented crashes in the AST constructor when compiling some absurdly long 49expressions like ``"+0"*1000000``. :exc:`RecursionError` is now raised 50instead. Patch by Pablo Galindo 51 52.. 53 54.. date: 2022-07-23-19-16-25 55.. gh-issue: 93351 56.. nonce: 0Jyvu- 57.. section: Core and Builtins 58 59:class:`ast.AST` node positions are now validated when provided to 60:func:`compile` and other related functions. If invalid positions are 61detected, a :exc:`ValueError` will be raised. 62 63.. 64 65.. date: 2022-07-19-09-41-55 66.. gh-issue: 94938 67.. nonce: xYBlM7 68.. section: Core and Builtins 69 70Fix error detection in some builtin functions when keyword argument name is 71an instance of a str subclass with overloaded ``__eq__`` and ``__hash__``. 72Previously it could cause SystemError or other undesired behavior. 73 74.. 75 76.. date: 2022-08-03-21-01-17 77.. gh-issue: 95609 78.. nonce: xxyjyX 79.. section: Library 80 81Update bundled pip to 22.2.2. 82 83.. 84 85.. date: 2022-08-03-16-52-32 86.. gh-issue: 95289 87.. nonce: FMnHlV 88.. section: Library 89 90Fix :class:`asyncio.TaskGroup` to propagate exception when 91:exc:`asyncio.CancelledError` was replaced with another exception by a 92context manger. Patch by Kumar Aditya and Guido van Rossum. 93 94.. 95 96.. date: 2022-07-27-19-43-07 97.. gh-issue: 95339 98.. nonce: NuVQ68 99.. section: Library 100 101Update bundled pip to 22.2.1. 102 103.. 104 105.. date: 2022-07-27-11-35-45 106.. gh-issue: 95045 107.. nonce: iysT-Q 108.. section: Library 109 110Fix GC crash when deallocating ``_lsprof.Profiler`` by untracking it before 111calling any callbacks. Patch by Kumar Aditya. 112 113.. 114 115.. date: 2022-07-24-18-00-42 116.. gh-issue: 95097 117.. nonce: lu5qNf 118.. section: Library 119 120Fix :func:`asyncio.run` for :class:`asyncio.Task` implementations without 121:meth:`~asyncio.Task.uncancel` method. Patch by Kumar Aditya. 122 123.. 124 125.. date: 2022-07-23-10-50-05 126.. gh-issue: 93899 127.. nonce: VT34A5 128.. section: Library 129 130Fix check for existence of :data:`os.EFD_CLOEXEC`, :data:`os.EFD_NONBLOCK` 131and :data:`os.EFD_SEMAPHORE` flags on older kernel versions where these 132flags are not present. Patch by Kumar Aditya. 133 134.. 135 136.. date: 2022-07-23-10-42-05 137.. gh-issue: 95166 138.. nonce: xw6p3C 139.. section: Library 140 141Fix :meth:`concurrent.futures.Executor.map` to cancel the currently waiting 142on future on an error - e.g. TimeoutError or KeyboardInterrupt. 143 144.. 145 146.. date: 2022-07-21-22-59-22 147.. gh-issue: 95109 148.. nonce: usxA9r 149.. section: Library 150 151Ensure that timeouts scheduled with :class:`asyncio.Timeout` that have 152already expired are delivered promptly. 153 154.. 155 156.. date: 2022-06-02-08-40-58 157.. gh-issue: 91810 158.. nonce: Gtk44w 159.. section: Library 160 161Suppress writing an XML declaration in open files in ``ElementTree.write()`` 162with ``encoding='unicode'`` and ``xml_declaration=None``. 163 164.. 165 166.. date: 2022-04-12-18-05-40 167.. gh-issue: 91447 168.. nonce: N_Fs4H 169.. section: Library 170 171Fix findtext in the xml module to only give an empty string when the text 172attribute is set to None. 173 174.. 175 176.. date: 2022-08-03-13-35-08 177.. gh-issue: 91207 178.. nonce: eJ4pPf 179.. section: Documentation 180 181Fix stylesheet not working in Windows CHM htmlhelp docs and add warning that 182they are deprecated. Contributed by C.A.M. Gerlach. 183 184.. 185 186.. date: 2022-07-29-23-02-19 187.. gh-issue: 95451 188.. nonce: -tgB93 189.. section: Documentation 190 191Update library documentation with :ref:`availability information 192<wasm-availability>` on WebAssembly platforms ``wasm32-emscripten`` and 193``wasm32-wasi``. 194 195.. 196 197.. date: 2022-07-29-09-04-02 198.. gh-issue: 95415 199.. nonce: LKTyw6 200.. section: Documentation 201 202Use consistent syntax for platform availability. The directive now supports 203a content body and emits a warning when it encounters an unknown platform. 204 205.. 206 207.. date: 2022-06-19-18-18-22 208.. gh-issue: 86128 209.. nonce: 39DDTD 210.. section: Documentation 211 212Document a limitation in ThreadPoolExecutor where its exit handler is 213executed before any handlers in atexit. 214 215.. 216 217.. date: 2022-08-05-09-57-43 218.. gh-issue: 95573 219.. nonce: edMdQB 220.. section: Tests 221 222:source:`Lib/test/test_asyncio/test_ssl.py` exposed a bug in the macOS 223kernel where intense concurrent load on non-blocking sockets occasionally 224causes :const:`errno.ENOBUFS` ("No buffer space available") to be emitted. 225FB11063974 filed with Apple, in the mean time as a workaround buffer size 226used in tests on macOS is decreased to avoid intermittent failures. Patch 227by Fantix King. 228 229.. 230 231.. date: 2022-07-26-15-22-19 232.. gh-issue: 95280 233.. nonce: h8HvbP 234.. section: Tests 235 236Fix problem with ``test_ssl`` ``test_get_ciphers`` on systems that require 237perfect forward secrecy (PFS) ciphers. 238 239.. 240 241.. date: 2022-07-08-12-22-00 242.. gh-issue: 94675 243.. nonce: IiTs5f 244.. section: Tests 245 246Add a regression test for :mod:`re` exponentional slowdown when using 247rjsmin. 248 249.. 250 251.. date: 2022-07-26-18-13-34 252.. gh-issue: 94801 253.. nonce: 9fREfy 254.. section: Build 255 256Fix a regression in ``configure`` script that caused some header checks to 257ignore custom ``CPPFLAGS``. The regression was introduced in :gh:`94802`. 258 259.. 260 261.. date: 2022-07-25-09-48-43 262.. gh-issue: 95145 263.. nonce: ZNS3dj 264.. section: Build 265 266wasm32-wasi builds no longer depend on WASIX's pthread stubs. Python now has 267its own stubbed pthread API. 268 269.. 270 271.. date: 2022-07-25-08-59-35 272.. gh-issue: 95174 273.. nonce: g8woUW 274.. section: Build 275 276Python now detects missing ``dup`` function in WASI and works around some 277missing :mod:`errno`, :mod:`select`, and :mod:`socket` constants. 278 279.. 280 281.. date: 2022-07-23-21-39-09 282.. gh-issue: 95174 283.. nonce: 7cYMZR 284.. section: Build 285 286Python now skips missing :mod:`socket` functions and methods on WASI. WASI 287can only create sockets from existing fd / accept and has no netdb. 288 289.. 290 291.. date: 2022-07-21-09-17-01 292.. gh-issue: 95085 293.. nonce: E9x2S_ 294.. section: Build 295 296Platforms ``wasm32-unknown-emscripten`` and ``wasm32-unknown-wasi`` have 297been promoted to :pep:`11` tier 3 platform support. 298 299.. 300 301.. date: 2022-08-04-18-47-54 302.. gh-issue: 95656 303.. nonce: VJ1d13 304.. section: Windows 305 306Enable the :meth:`~sqlite3.Connection.enable_load_extension` :mod:`sqlite3` 307API. 308 309.. 310 311.. date: 2022-08-04-01-12-27 312.. gh-issue: 95587 313.. nonce: Fvdv5q 314.. section: Windows 315 316Fixes some issues where the Windows installer would incorrectly detect 317certain features of an existing install when upgrading. 318 319.. 320 321.. date: 2022-08-03-00-49-46 322.. gh-issue: 94399 323.. nonce: KvxHc0 324.. section: Windows 325 326Restores the behaviour of :ref:`launcher` for ``/usr/bin/env`` shebang 327lines, which will now search :envvar:`PATH` for an executable matching the 328given command. If none is found, the usual search process is used. 329 330.. 331 332.. date: 2022-07-30-14-18-33 333.. gh-issue: 95445 334.. nonce: mjrTaq 335.. section: Windows 336 337Fixes the unsuccessful removal of the HTML document directory when 338uninstalling with Windows msi. 339 340.. 341 342.. date: 2022-07-28-20-21-38 343.. gh-issue: 95359 344.. nonce: ywMrgu 345.. section: Windows 346 347Fix :ref:`launcher` handling of :file:`py.ini` commands (it was incorrectly 348expecting a ``py_`` prefix on keys) and crashes when reading per-user 349configuration file. 350 351.. 352 353.. date: 2022-07-26-20-33-12 354.. gh-issue: 95285 355.. nonce: w6fa22 356.. section: Windows 357 358Fix :ref:`launcher` handling of command lines where it is only passed a 359short executable name. 360 361.. 362 363.. date: 2022-08-04-20-07-51 364.. gh-issue: 65802 365.. nonce: xnThWe 366.. section: IDLE 367 368Document handling of extensions in Save As dialogs. 369 370.. 371 372.. date: 2022-08-01-23-31-48 373.. gh-issue: 95191 374.. nonce: U7vryB 375.. section: IDLE 376 377Include prompts when saving Shell (interactive input and output). 378 379.. 380 381.. date: 2022-07-31-22-15-14 382.. gh-issue: 95511 383.. nonce: WX6PmB 384.. section: IDLE 385 386Fix the Shell context menu copy-with-prompts bug of copying an extra line 387when one selects whole lines. 388 389.. 390 391.. date: 2022-07-30-15-10-39 392.. gh-issue: 95471 393.. nonce: z3scVG 394.. section: IDLE 395 396In the Edit menu, move ``Select All`` and add a new separator. 397 398.. 399 400.. date: 2022-07-29-11-08-52 401.. gh-issue: 95411 402.. nonce: dazlqH 403.. section: IDLE 404 405Enable using IDLE's module browser with .pyw files. 406 407.. 408 409.. date: 2022-07-28-18-56-57 410.. gh-issue: 89610 411.. nonce: hcosiM 412.. section: IDLE 413 414Add .pyi as a recognized extension for IDLE on macOS. This allows opening 415stub files by double clicking on them in the Finder. 416 417.. 418 419.. date: 2022-08-03-14-39-08 420.. gh-issue: 92678 421.. nonce: ozFTEx 422.. section: C API 423 424Restore the 3.10 behavior for multiple inheritance of C extension classes 425that store their dictionary at the end of the struct. 426 427.. 428 429.. date: 2022-07-19-22-37-40 430.. gh-issue: 94936 431.. nonce: LGlmKv 432.. section: C API 433 434Added :c:func:`PyCode_GetVarnames`, :c:func:`PyCode_GetCellvars` and 435:c:func:`PyCode_GetFreevars` for accessing ``co_varnames``, ``co_cellvars`` 436and ``co_freevars`` respectively via the C API. 437