|
| 1 | +.. bpo: 44409 |
| 2 | +.. date: 2021-06-13-23-12-18 |
| 3 | +.. nonce: eW4LS- |
| 4 | +.. release date: 2021-06-17 |
| 5 | +.. section: Core and Builtins |
| 6 | +
|
| 7 | +Fix error location information for tokenizer errors raised on initialization |
| 8 | +of the tokenizer. Patch by Pablo Galindo. |
| 9 | + |
| 10 | +.. |
| 11 | +
|
| 12 | +.. bpo: 44396 |
| 13 | +.. date: 2021-06-11-18-17-42 |
| 14 | +.. nonce: Z9EKim |
| 15 | +.. section: Core and Builtins |
| 16 | +
|
| 17 | +Fix a possible crash in the tokenizer when raising syntax errors for |
| 18 | +unclosed strings. Patch by Pablo Galindo. |
| 19 | + |
| 20 | +.. |
| 21 | +
|
| 22 | +.. bpo: 44349 |
| 23 | +.. date: 2021-06-08-22-49-06 |
| 24 | +.. nonce: xgEgeA |
| 25 | +.. section: Core and Builtins |
| 26 | +
|
| 27 | +Fix an edge case when displaying text from files with encoding in syntax |
| 28 | +errors. Patch by Pablo Galindo. |
| 29 | + |
| 30 | +.. |
| 31 | +
|
| 32 | +.. bpo: 44335 |
| 33 | +.. date: 2021-06-08-01-13-47 |
| 34 | +.. nonce: GQTTkl |
| 35 | +.. section: Core and Builtins |
| 36 | +
|
| 37 | +Fix a regression when identifying incorrect characters in syntax errors. |
| 38 | +Patch by Pablo Galindo |
| 39 | + |
| 40 | +.. |
| 41 | +
|
| 42 | +.. bpo: 44304 |
| 43 | +.. date: 2021-06-05-02-34-57 |
| 44 | +.. nonce: _MAoPc |
| 45 | +.. section: Core and Builtins |
| 46 | +
|
| 47 | +Fix a crash in the :mod:`sqlite3` module that happened when the garbage |
| 48 | +collector clears :class:`sqlite.Statement` objects. Patch by Pablo Galindo |
| 49 | + |
| 50 | +.. |
| 51 | +
|
| 52 | +.. bpo: 44305 |
| 53 | +.. date: 2021-06-03-22-51-50 |
| 54 | +.. nonce: 66dVDG |
| 55 | +.. section: Core and Builtins |
| 56 | +
|
| 57 | +Improve error message for ``try`` blocks without ``except`` or ``finally`` |
| 58 | +blocks. Patch by Pablo Galindo. |
| 59 | + |
| 60 | +.. |
| 61 | +
|
| 62 | +.. bpo: 43833 |
| 63 | +.. date: 2021-04-18-18-07-33 |
| 64 | +.. nonce: oChkCi |
| 65 | +.. section: Core and Builtins |
| 66 | +
|
| 67 | +Emit a deprecation warning if the numeric literal is immediately followed by |
| 68 | +one of keywords: and, else, for, if, in, is, or. Raise a syntax error with |
| 69 | +more informative message if it is immediately followed by other keyword or |
| 70 | +identifier. |
| 71 | + |
| 72 | +.. |
| 73 | +
|
| 74 | +.. bpo: 11105 |
| 75 | +.. date: 2020-06-02-13-21-14 |
| 76 | +.. nonce: wceryW |
| 77 | +.. section: Core and Builtins |
| 78 | +
|
| 79 | +When compiling :class:`ast.AST` objects with recursive references through |
| 80 | +:func:`compile`, the interpreter doesn't crash anymore instead it raises a |
| 81 | +:exc:`RecursionError`. |
| 82 | + |
| 83 | +.. |
| 84 | +
|
| 85 | +.. bpo: 42972 |
| 86 | +.. date: 2021-06-15-13-51-25 |
| 87 | +.. nonce: UnyYo1 |
| 88 | +.. section: Library |
| 89 | +
|
| 90 | +The _thread.RLock type now fully implement the GC protocol: add a traverse |
| 91 | +function and the :const:`Py_TPFLAGS_HAVE_GC` flag. Patch by Victor Stinner. |
| 92 | + |
| 93 | +.. |
| 94 | +
|
| 95 | +.. bpo: 44422 |
| 96 | +.. date: 2021-06-14-23-28-17 |
| 97 | +.. nonce: BlWOgv |
| 98 | +.. section: Library |
| 99 | +
|
| 100 | +The :func:`threading.enumerate` function now uses a reentrant lock to |
| 101 | +prevent a hang on reentrant call. Patch by Victor Stinner. |
| 102 | + |
| 103 | +.. |
| 104 | +
|
| 105 | +.. bpo: 44389 |
| 106 | +.. date: 2021-06-12-22-58-20 |
| 107 | +.. nonce: WTRnoC |
| 108 | +.. section: Library |
| 109 | +
|
| 110 | +Fix deprecation of :data:`ssl.OP_NO_TLSv1_3` |
| 111 | + |
| 112 | +.. |
| 113 | +
|
| 114 | +.. bpo: 44362 |
| 115 | +.. date: 2021-06-10-20-07-32 |
| 116 | +.. nonce: oVOMfd |
| 117 | +.. section: Library |
| 118 | +
|
| 119 | +Improve :mod:`ssl` module's deprecation messages, error reporting, and |
| 120 | +documentation for deprecations. |
| 121 | + |
| 122 | +.. |
| 123 | +
|
| 124 | +.. bpo: 44342 |
| 125 | +.. date: 2021-06-10-15-06-47 |
| 126 | +.. nonce: qqkGlj |
| 127 | +.. section: Library |
| 128 | +
|
| 129 | +[Enum] Change pickling from by-value to by-name. |
| 130 | + |
| 131 | +.. |
| 132 | +
|
| 133 | +.. bpo: 44356 |
| 134 | +.. date: 2021-06-10-08-35-38 |
| 135 | +.. nonce: 6oDFhO |
| 136 | +.. section: Library |
| 137 | +
|
| 138 | +[Enum] Allow multiple data-type mixins if they are all the same. |
| 139 | + |
| 140 | +.. |
| 141 | +
|
| 142 | +.. bpo: 44351 |
| 143 | +.. date: 2021-06-10-07-26-12 |
| 144 | +.. nonce: rvyf2v |
| 145 | +.. section: Library |
| 146 | +
|
| 147 | +Restore back :func:`parse_makefile` in :mod:`distutils.sysconfig` because it |
| 148 | +behaves differently than the similar implementation in :mod:`sysconfig`. |
| 149 | + |
| 150 | +.. |
| 151 | +
|
| 152 | +.. bpo: 44242 |
| 153 | +.. date: 2021-06-07-10-26-14 |
| 154 | +.. nonce: MKeMCQ |
| 155 | +.. section: Library |
| 156 | +
|
| 157 | +Remove missing flag check from Enum creation and move into a ``verify`` |
| 158 | +decorator. |
| 159 | + |
| 160 | +.. |
| 161 | +
|
| 162 | +.. bpo: 44246 |
| 163 | +.. date: 2021-05-31-11-34-56 |
| 164 | +.. nonce: yHAkF0 |
| 165 | +.. section: Library |
| 166 | +
|
| 167 | +In ``importlib.metadata``, restore compatibility in the result from |
| 168 | +``Distribution.entry_points`` (``EntryPoints``) to honor expectations in |
| 169 | +older implementations and issuing deprecation warnings for these cases: A. |
| 170 | +``EntryPoints`` objects are once again mutable, allowing for ``sort()`` |
| 171 | +and other list-based mutation operations. Avoid deprecation warnings by |
| 172 | +casting to a mutable sequence (e.g. ``list(dist.entry_points).sort()``). |
| 173 | +B. ``EntryPoints`` results once again allow for access by index. To avoid |
| 174 | +deprecation warnings, cast the result to a Sequence first (e.g. |
| 175 | +``tuple(dist.entry_points)[0]``). |
| 176 | + |
| 177 | +.. |
| 178 | +
|
| 179 | +.. bpo: 44246 |
| 180 | +.. date: 2021-05-31-11-28-03 |
| 181 | +.. nonce: nhmt-v |
| 182 | +.. section: Library |
| 183 | +
|
| 184 | +In importlib.metadata.entry_points, de-duplication of distributions no |
| 185 | +longer requires loading the full metadata for PathDistribution objects, |
| 186 | +improving entry point loading performance by ~10x. |
| 187 | + |
| 188 | +.. |
| 189 | +
|
| 190 | +.. bpo: 43853 |
| 191 | +.. date: 2021-04-15-12-02-17 |
| 192 | +.. nonce: XXCVAp |
| 193 | +.. section: Library |
| 194 | +
|
| 195 | +Improve :mod:`sqlite3` error handling: ``sqlite3_value_text()`` errors that |
| 196 | +set ``SQLITE_NOMEM`` now raise :exc:`MemoryError`. Patch by Erlend E. |
| 197 | +Aasland. |
| 198 | + |
| 199 | +.. |
| 200 | +
|
| 201 | +.. bpo: 43318 |
| 202 | +.. date: 2021-02-25-08-32-06 |
| 203 | +.. nonce: bZJw6V |
| 204 | +.. section: Library |
| 205 | +
|
| 206 | +Fix a bug where :mod:`pdb` does not always echo cleared breakpoints. |
| 207 | + |
| 208 | +.. |
| 209 | +
|
| 210 | +.. bpo: 37022 |
| 211 | +.. date: 2020-01-25-12-58-20 |
| 212 | +.. nonce: FUZI25 |
| 213 | +.. section: Library |
| 214 | +
|
| 215 | +:mod:`pdb` now displays exceptions from ``repr()`` with its ``p`` and ``pp`` |
| 216 | +commands. |
| 217 | + |
| 218 | +.. |
| 219 | +
|
| 220 | +.. bpo: 44392 |
| 221 | +.. date: 2021-06-16-18-09-49 |
| 222 | +.. nonce: 6RF1Sc |
| 223 | +.. section: Documentation |
| 224 | +
|
| 225 | +Added a new section in the C API documentation for types used in type |
| 226 | +hinting. Documented ``Py_GenericAlias`` and ``Py_GenericAliasType``. |
| 227 | + |
| 228 | +.. |
| 229 | +
|
| 230 | +.. bpo: 38291 |
| 231 | +.. date: 2021-06-14-09-20-37 |
| 232 | +.. nonce: VMYa_Q |
| 233 | +.. section: Documentation |
| 234 | +
|
| 235 | +Mark ``typing.io`` and ``typing.re`` as deprecated since Python 3.8 in the |
| 236 | +documentation. They were never properly supported by type checkers. |
| 237 | + |
| 238 | +.. |
| 239 | +
|
| 240 | +.. bpo: 44322 |
| 241 | +.. date: 2021-06-06-14-12-00 |
| 242 | +.. nonce: K0PHfE |
| 243 | +.. section: Documentation |
| 244 | +
|
| 245 | +Document that SyntaxError args have a details tuple and that details are |
| 246 | +adjusted for errors in f-string field replacement expressions. |
| 247 | + |
| 248 | +.. |
| 249 | +
|
| 250 | +.. bpo: 44363 |
| 251 | +.. date: 2021-06-10-11-19-43 |
| 252 | +.. nonce: -K9jD0 |
| 253 | +.. section: Tests |
| 254 | +
|
| 255 | +Account for address sanitizer in test_capi. test_capi now passes when run |
| 256 | +GCC address sanitizer. |
| 257 | + |
| 258 | +.. |
| 259 | +
|
| 260 | +.. bpo: 43921 |
| 261 | +.. date: 2021-06-03-03-29-34 |
| 262 | +.. nonce: nwH1FS |
| 263 | +.. section: Tests |
| 264 | +
|
| 265 | +Fix test_ssl.test_wrong_cert_tls13(): use ``suppress_ragged_eofs=False``, |
| 266 | +since ``read()`` can raise :exc:`ssl.SSLEOFError` on Windows. Patch by |
| 267 | +Victor Stinner. |
| 268 | + |
| 269 | +.. |
| 270 | +
|
| 271 | +.. bpo: 43921 |
| 272 | +.. date: 2021-06-02-17-41-42 |
| 273 | +.. nonce: xP7yZ4 |
| 274 | +.. section: Tests |
| 275 | +
|
| 276 | +Fix test_pha_required_nocert() of test_ssl: catch two more EOF cases (when |
| 277 | +the ``recv()`` method returns an empty string). Patch by Victor Stinner. |
| 278 | + |
| 279 | +.. |
| 280 | +
|
| 281 | +.. bpo: 44381 |
| 282 | +.. date: 2021-06-10-18-08-44 |
| 283 | +.. nonce: Xpc1iX |
| 284 | +.. section: Build |
| 285 | +
|
| 286 | +The Windows build now accepts :envvar:`EnableControlFlowGuard` set to |
| 287 | +``guard`` to enable CFG. |
| 288 | + |
| 289 | +.. |
| 290 | +
|
| 291 | +.. bpo: 40128 |
| 292 | +.. date: 2021-06-11-17-43-39 |
| 293 | +.. nonce: 7vDN3U |
| 294 | +.. section: IDLE |
| 295 | +
|
| 296 | +Mostly fix completions on macOS when not using tcl/tk 8.6.11 (as with 3.9). |
| 297 | +The added update_idletask call should be harmless and possibly helpful |
| 298 | +otherwise. |
| 299 | + |
| 300 | +.. |
| 301 | +
|
| 302 | +.. bpo: 33962 |
| 303 | +.. date: 2021-06-10-00-50-02 |
| 304 | +.. nonce: ikAUNg |
| 305 | +.. section: IDLE |
| 306 | +
|
| 307 | +Move the indent space setting from the Font tab to the new Windows tab. |
| 308 | +Patch by Mark Roseman and Terry Jan Reedy. |
| 309 | + |
| 310 | +.. |
| 311 | +
|
| 312 | +.. bpo: 40468 |
| 313 | +.. date: 2021-06-08-03-04-51 |
| 314 | +.. nonce: tUCGUb |
| 315 | +.. section: IDLE |
| 316 | +
|
| 317 | +Split the settings dialog General tab into Windows and Shell/ED tabs. Move |
| 318 | +help sources, which extend the Help menu, to the Extensions tab. Make space |
| 319 | +for new options and shorten the dialog. The latter makes the dialog better |
| 320 | +fit small screens. |
| 321 | + |
| 322 | +.. |
| 323 | +
|
| 324 | +.. bpo: 43795 |
| 325 | +.. date: 2021-06-15-16-28-18 |
| 326 | +.. nonce: fy0AXK |
| 327 | +.. section: C API |
| 328 | +
|
| 329 | +The list in :ref:`stable-abi-list` now shows the public name |
| 330 | +:c:struct:`PyFrameObject` rather than ``_frame``. The non-existing entry |
| 331 | +``_node`` no longer appears in the list. |
| 332 | + |
| 333 | +.. |
| 334 | +
|
| 335 | +.. bpo: 44378 |
| 336 | +.. date: 2021-06-10-15-22-31 |
| 337 | +.. nonce: jGYakF |
| 338 | +.. section: C API |
| 339 | +
|
| 340 | +:c:func:`Py_IS_TYPE` no longer uses :c:func:`Py_TYPE` to avoid a compiler |
| 341 | +warning: no longer cast ``const PyObject*`` to ``PyObject*``. Patch by |
| 342 | +Victor Stinner. |
0 commit comments