|
| 1 | +.. date: 2023-09-18-15-35-08 |
| 2 | +.. gh-issue: 109496 |
| 3 | +.. nonce: Kleoz3 |
| 4 | +.. release date: 2023-09-18 |
| 5 | +.. section: Core and Builtins |
| 6 | +
|
| 7 | +On a Python built in debug mode, :c:func:`Py_DECREF()` now calls |
| 8 | +``_Py_NegativeRefcount()`` if the object is a dangling pointer to |
| 9 | +deallocated memory: memory filled with ``0xDD`` "dead byte" by the debug |
| 10 | +hook on memory allocators. The fix is to check the reference count *before* |
| 11 | +checking for ``_Py_IsImmortal()``. Patch by Victor Stinner. |
| 12 | + |
| 13 | +.. |
| 14 | +
|
| 15 | +.. date: 2023-09-13-21-04-04 |
| 16 | +.. gh-issue: 109371 |
| 17 | +.. nonce: HPEJr8 |
| 18 | +.. section: Core and Builtins |
| 19 | +
|
| 20 | +Deopted instructions correctly for tool initialization and modified the |
| 21 | +incorrect assertion in instrumentation, when a previous tool already sets |
| 22 | +INSTRUCTION events |
| 23 | + |
| 24 | +.. |
| 25 | +
|
| 26 | +.. date: 2023-09-13-19-16-51 |
| 27 | +.. gh-issue: 105658 |
| 28 | +.. nonce: z2nR2u |
| 29 | +.. section: Core and Builtins |
| 30 | +
|
| 31 | +Fix bug where the line trace of an except block ending with a conditional |
| 32 | +includes an excess event with the line of the conditional expression. |
| 33 | + |
| 34 | +.. |
| 35 | +
|
| 36 | +.. date: 2023-09-13-08-42-45 |
| 37 | +.. gh-issue: 109219 |
| 38 | +.. nonce: UiN8sc |
| 39 | +.. section: Core and Builtins |
| 40 | +
|
| 41 | +Fix compiling type param scopes that use a name which is also free in an |
| 42 | +inner scope. |
| 43 | + |
| 44 | +.. |
| 45 | +
|
| 46 | +.. date: 2023-09-12-15-45-49 |
| 47 | +.. gh-issue: 109341 |
| 48 | +.. nonce: 4V5bkm |
| 49 | +.. section: Core and Builtins |
| 50 | +
|
| 51 | +Fix crash when compiling an invalid AST involving a :class:`ast.TypeAlias`. |
| 52 | + |
| 53 | +.. |
| 54 | +
|
| 55 | +.. date: 2023-09-11-15-51-55 |
| 56 | +.. gh-issue: 109195 |
| 57 | +.. nonce: iwxmuo |
| 58 | +.. section: Core and Builtins |
| 59 | +
|
| 60 | +Fix source location for the ``LOAD_*`` instruction preceding a |
| 61 | +``LOAD_SUPER_ATTR`` to load the ``super`` global (or shadowing variable) so |
| 62 | +that it encompasses only the name ``super`` and not the following |
| 63 | +parentheses. |
| 64 | + |
| 65 | +.. |
| 66 | +
|
| 67 | +.. date: 2023-09-09-12-49-46 |
| 68 | +.. gh-issue: 109118 |
| 69 | +.. nonce: gx0X4h |
| 70 | +.. section: Core and Builtins |
| 71 | +
|
| 72 | +Disallow nested scopes (lambdas, generator expressions, and comprehensions) |
| 73 | +within PEP 695 annotation scopes that are nested within classes. |
| 74 | + |
| 75 | +.. |
| 76 | +
|
| 77 | +.. date: 2023-09-08-01-50-41 |
| 78 | +.. gh-issue: 109114 |
| 79 | +.. nonce: adqgtb |
| 80 | +.. section: Core and Builtins |
| 81 | +
|
| 82 | +Relax the detection of the error message for invalid lambdas inside |
| 83 | +f-strings to not search for arbitrary replacement fields to avoid false |
| 84 | +positives. Patch by Pablo Galindo |
| 85 | + |
| 86 | +.. |
| 87 | +
|
| 88 | +.. date: 2023-09-07-18-24-42 |
| 89 | +.. gh-issue: 109118 |
| 90 | +.. nonce: yPXRAe |
| 91 | +.. section: Core and Builtins |
| 92 | +
|
| 93 | +Fix interpreter crash when a NameError is raised inside the type parameters |
| 94 | +of a generic class. |
| 95 | + |
| 96 | +.. |
| 97 | +
|
| 98 | +.. date: 2023-09-06-22-50-25 |
| 99 | +.. gh-issue: 108976 |
| 100 | +.. nonce: MUKaIJ |
| 101 | +.. section: Core and Builtins |
| 102 | +
|
| 103 | +Fix crash that occurs after de-instrumenting a code object in a monitoring |
| 104 | +callback. |
| 105 | + |
| 106 | +.. |
| 107 | +
|
| 108 | +.. date: 2023-09-06-13-28-42 |
| 109 | +.. gh-issue: 108732 |
| 110 | +.. nonce: I6DkEQ |
| 111 | +.. section: Core and Builtins |
| 112 | +
|
| 113 | +Make iteration variables of module- and class-scoped comprehensions visible |
| 114 | +to pdb and other tools that use ``frame.f_locals`` again. |
| 115 | + |
| 116 | +.. |
| 117 | +
|
| 118 | +.. date: 2023-09-05-20-52-17 |
| 119 | +.. gh-issue: 108959 |
| 120 | +.. nonce: 6z45Sy |
| 121 | +.. section: Core and Builtins |
| 122 | +
|
| 123 | +Fix caret placement for error locations for subscript and binary operations |
| 124 | +that involve non-semantic parentheses and spaces. Patch by Pablo Galindo |
| 125 | + |
| 126 | +.. |
| 127 | +
|
| 128 | +.. date: 2023-09-06-19-33-41 |
| 129 | +.. gh-issue: 108682 |
| 130 | +.. nonce: 35Xnc5 |
| 131 | +.. section: Library |
| 132 | +
|
| 133 | +Enum: require ``names=()`` or ``type=...`` to create an empty enum using the |
| 134 | +functional syntax. |
| 135 | + |
| 136 | +.. |
| 137 | +
|
| 138 | +.. date: 2023-09-06-06-17-23 |
| 139 | +.. gh-issue: 108843 |
| 140 | +.. nonce: WJMhsS |
| 141 | +.. section: Library |
| 142 | +
|
| 143 | +Fix an issue in :func:`ast.unparse` when unparsing f-strings containing many |
| 144 | +quote types. |
| 145 | + |
| 146 | +.. |
| 147 | +
|
| 148 | +.. date: 2023-03-19-09-39-31 |
| 149 | +.. gh-issue: 102823 |
| 150 | +.. nonce: OzsOz0 |
| 151 | +.. section: Documentation |
| 152 | +
|
| 153 | +Document the return type of ``x // y`` when ``x`` and ``y`` have type |
| 154 | +:class:`float`. |
| 155 | + |
| 156 | +.. |
| 157 | +
|
| 158 | +.. date: 2023-09-14-22-58-47 |
| 159 | +.. gh-issue: 109396 |
| 160 | +.. nonce: J1a4jR |
| 161 | +.. section: Tests |
| 162 | +
|
| 163 | +Fix ``test_socket.test_hmac_sha1()`` in FIPS mode. Use a longer key: FIPS |
| 164 | +mode requires at least of at least 112 bits. The previous key was only 32 |
| 165 | +bits. Patch by Victor Stinner. |
| 166 | + |
| 167 | +.. |
| 168 | +
|
| 169 | +.. date: 2023-09-13-05-58-09 |
| 170 | +.. gh-issue: 104736 |
| 171 | +.. nonce: lA25Fu |
| 172 | +.. section: Tests |
| 173 | +
|
| 174 | +Fix test_gdb on Python built with LLVM clang 16 on Linux ppc64le (ex: Fedora |
| 175 | +38). Search patterns in gdb "bt" command output to detect when gdb fails to |
| 176 | +retrieve the traceback. For example, skip a test if ``Backtrace stopped: |
| 177 | +frame did not save the PC`` is found. Patch by Victor Stinner. |
| 178 | + |
| 179 | +.. |
| 180 | +
|
| 181 | +.. date: 2023-09-10-22-32-20 |
| 182 | +.. gh-issue: 109237 |
| 183 | +.. nonce: SvgKwD |
| 184 | +.. section: Tests |
| 185 | +
|
| 186 | +Fix ``test_site.test_underpth_basic()`` when the working directory contains |
| 187 | +at least one non-ASCII character: encode the ``._pth`` file to UTF-8 and |
| 188 | +enable the UTF-8 Mode to use UTF-8 for the child process stdout. Patch by |
| 189 | +Victor Stinner. |
| 190 | + |
| 191 | +.. |
| 192 | +
|
| 193 | +.. date: 2023-09-10-19-59-57 |
| 194 | +.. gh-issue: 109230 |
| 195 | +.. nonce: SRNLFQ |
| 196 | +.. section: Tests |
| 197 | +
|
| 198 | +Fix ``test_pyexpat.test_exception()``: it can now be run from a directory |
| 199 | +different than Python source code directory. Before, the test failed in this |
| 200 | +case. Skip the test if Modules/pyexpat.c source is not available. Skip also |
| 201 | +the test on Python implementations other than CPython. Patch by Victor |
| 202 | +Stinner. |
| 203 | + |
| 204 | +.. |
| 205 | +
|
| 206 | +.. date: 2023-09-06-18-27-53 |
| 207 | +.. gh-issue: 109015 |
| 208 | +.. nonce: 1dS1AQ |
| 209 | +.. section: Tests |
| 210 | +
|
| 211 | +Fix test_asyncio, test_imaplib and test_socket tests on FreeBSD if the TCP |
| 212 | +blackhole is enabled (``sysctl net.inet.tcp.blackhole``). Skip the few tests |
| 213 | +which failed with ``ETIMEDOUT`` which such non standard configuration. |
| 214 | +Currently, the `FreeBSD GCP image enables TCP and UDP blackhole |
| 215 | +<https://reviews.freebsd.org/D41751>`_ (``sysctl net.inet.tcp.blackhole=2`` |
| 216 | +and ``sysctl net.inet.udp.blackhole=1``). Patch by Victor Stinner. |
| 217 | + |
| 218 | +.. |
| 219 | +
|
| 220 | +.. date: 2023-09-06-15-36-51 |
| 221 | +.. gh-issue: 91960 |
| 222 | +.. nonce: P3nD5v |
| 223 | +.. section: Tests |
| 224 | +
|
| 225 | +Skip ``test_gdb`` if gdb is unable to retrieve Python frame objects: if a |
| 226 | +frame is ``<optimized out>``. When Python is built with "clang -Og", gdb can |
| 227 | +fail to retrive the *frame* parameter of ``_PyEval_EvalFrameDefault()``. In |
| 228 | +this case, tests like ``py_bt()`` are likely to fail. Without getting access |
| 229 | +to Python frames, ``python-gdb.py`` is mostly clueless on retrieving the |
| 230 | +Python traceback. Moreover, ``test_gdb`` is no longer skipped on macOS if |
| 231 | +Python is built with Clang. Patch by Victor Stinner. |
| 232 | + |
| 233 | +.. |
| 234 | +
|
| 235 | +.. date: 2023-09-05-23-00-09 |
| 236 | +.. gh-issue: 108962 |
| 237 | +.. nonce: R4NwuU |
| 238 | +.. section: Tests |
| 239 | +
|
| 240 | +Skip ``test_tempfile.test_flags()`` if ``chflags()`` fails with "OSError: |
| 241 | +[Errno 45] Operation not supported" (ex: on FreeBSD 13). Patch by Victor |
| 242 | +Stinner. |
| 243 | + |
| 244 | +.. |
| 245 | +
|
| 246 | +.. date: 2023-09-03-21-41-10 |
| 247 | +.. gh-issue: 108851 |
| 248 | +.. nonce: xFTYOE |
| 249 | +.. section: Tests |
| 250 | +
|
| 251 | +Fix ``test_tomllib`` recursion tests for WASI buildbots: reduce the |
| 252 | +recursion limit and compute the maximum nested array/dict depending on the |
| 253 | +current available recursion limit. Patch by Victor Stinner. |
| 254 | + |
| 255 | +.. |
| 256 | +
|
| 257 | +.. date: 2023-09-03-21-18-35 |
| 258 | +.. gh-issue: 108851 |
| 259 | +.. nonce: CCuHyI |
| 260 | +.. section: Tests |
| 261 | +
|
| 262 | +Add ``get_recursion_available()`` and ``get_recursion_depth()`` functions to |
| 263 | +the :mod:`test.support` module. Patch by Victor Stinner. |
| 264 | + |
| 265 | +.. |
| 266 | +
|
| 267 | +.. date: 2023-09-03-20-15-49 |
| 268 | +.. gh-issue: 108834 |
| 269 | +.. nonce: Osvmhf |
| 270 | +.. section: Tests |
| 271 | +
|
| 272 | +Add ``--fail-rerun option`` option to regrtest: if a test failed when then |
| 273 | +passed when rerun in verbose mode, exit the process with exit code 2 |
| 274 | +(error), instead of exit code 0 (success). Patch by Victor Stinner. |
| 275 | + |
| 276 | +.. |
| 277 | +
|
| 278 | +.. date: 2023-09-03-06-17-12 |
| 279 | +.. gh-issue: 108834 |
| 280 | +.. nonce: fjV-CJ |
| 281 | +.. section: Tests |
| 282 | +
|
| 283 | +Rename regrtest ``--verbose2`` option (``-w``) to ``--rerun``. Keep |
| 284 | +``--verbose2`` as a deprecated alias. Patch by Victor Stinner. |
| 285 | + |
| 286 | +.. |
| 287 | +
|
| 288 | +.. date: 2023-09-03-02-01-55 |
| 289 | +.. gh-issue: 108834 |
| 290 | +.. nonce: iAwXzj |
| 291 | +.. section: Tests |
| 292 | +
|
| 293 | +When regrtest reruns failed tests in verbose mode (``./python -m test |
| 294 | +--rerun``), tests are now rerun in fresh worker processes rather than being |
| 295 | +executed in the main process. If a test does crash or is killed by a |
| 296 | +timeout, the main process can detect and handle the killed worker process. |
| 297 | +Tests are rerun in parallel if the ``-jN`` option is used to run tests in |
| 298 | +parallel. Patch by Victor Stinner. |
| 299 | + |
| 300 | +.. |
| 301 | +
|
| 302 | +.. date: 2023-04-05-06-45-20 |
| 303 | +.. gh-issue: 103186 |
| 304 | +.. nonce: 640Eg- |
| 305 | +.. section: Tests |
| 306 | +
|
| 307 | +Suppress and assert expected RuntimeWarnings in test_sys_settrace.py |
| 308 | + |
| 309 | +.. |
| 310 | +
|
| 311 | +.. date: 2023-09-01-01-39-26 |
| 312 | +.. gh-issue: 108740 |
| 313 | +.. nonce: JHExAQ |
| 314 | +.. section: Build |
| 315 | +
|
| 316 | +Fix a race condition in ``make regen-all``. The ``deepfreeze.c`` source and |
| 317 | +files generated by Argument Clinic are now generated or updated before |
| 318 | +generating "global objects". Previously, some identifiers may miss depending |
| 319 | +on the order in which these files were generated. Patch by Victor Stinner. |
0 commit comments