main
Commits on Mar 26, 2022
-
bpo-43224: Implement PEP 646 grammar changes (GH-31018)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
-
bpo-47117: Don't crash if we fail to decode characters when the token…
…izer buffers are uninitialized (GH-32129) Automerge-Triggered-By: GH:pablogsal
Commits on Mar 25, 2022
-
bpo-43352: Add a Barrier object in asyncio lib (GH-24903)
Co-authored-by: Yury Selivanov <yury@edgedb.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
-
-
Fix some typos in whatsnew (GH-32098)
* Fix some typos and phrasing * Convert the `hash()` text to a link * Remove definite article
-
bpo-47053: Reduce deoptimization in BINARY_OP_INPLACE_ADD_UNICODE (GH…
…-31318) * Don't deopt if refcounts are too big * Detect more at specialization time
-
bpo-42197: Don't create
f_locals
dictionary unless we actually need…… it. (GH-32055) * `PyFrame_FastToLocalsWithError` and `PyFrame_LocalsToFast` are no longer called during profile and tracing. (Contributed by Fabio Zadrozny) * Make accesses to a frame's `f_locals` safe from C code, not relying on calls to `PyFrame_FastToLocals` or `PyFrame_LocalsToFast`. * Document new `PyFrame_GetLocals` C-API function.
Commits on Mar 24, 2022
-
-
bpo-40280: Add wasm32-emscripten and wasm32-wasi SOABI (GH-32095)
Shared extension on Emscripten now have suffix ``.cpython-311-wasm32-emscripten.so`` (JS loader) and ``.cpython-311-wasm32-emscripten.wasm`` (WebAssembly code).
-
bpo-47062: Implement asyncio.Runner context manager (GH-31799)
Co-authored-by: Zachary Ware <zach@python.org>
-
bpo-46480: rephrase typing.assert_type docs (GH-32069)
The goal here is to reduce potential confusion between `assert_type(val, type)` and `assert isinstance(val, typ)`. The former is meant to ask a type checker to confirm a fact, the latter is meant to tell a type checker a fact. The behaviour of the latter more closely resembles what I'd expect from the prior phrasing of "assert [something] to the type checker".
Commits on Mar 23, 2022
-
-
bpo-46712: Do not Regen Deep-Frozen Modules before Generating Global …
…Objects (gh-32061) We have to run "make regen-deepfreeze" before running Tools/scripts/generate-global-objects.py; otherwise we will miss any changes to global objects in deep-frozen modules (which aren't committed in the repo). However, building $(PYTHON_FOR_FREEZE) fails if one of its source files had a global object (e.g. via _Py_ID(...)) added or removed, without generate-global-objects.py running first. So "make regen-global-objects" would sometimes fail. We solve this by running generate-global-objects.py before *and* after "make regen-deepfreeze". To speed things up and cut down on noise, we also avoid updating the global objects files if there are no changes to them. https://bugs.python.org/issue46712
-
bpo-46541: Add a Comment About When to Use _Py_DECLARE_STR(). (gh-32063)
In a gh-32003 comment, I realized it wasn't very clear how _Py_DECLARE_STR() should be used. This changes adds a comment to clarify. https://bugs.python.org/issue46541
-
bpo-46829: Deprecate passing a message into Future.cancel() and Task.…
…cancel() (GH-31840) After a long deliberation we ended up feeling that the message argument for Future.cancel(), added in 3.9, was a bad idea, so we're deprecating it in 3.11 and plan to remove it in 3.13.
-
-
bpo-46836: Add Doc/c-api/frame.rst (GH-32051)
Reorganize the documentation of the PyFrameObject C API.
-
[doc] configparser: avoid inline comments. (GH-31247)
People are testing those blocs with the default inline_comment_prefixes of None, leading to a: configparser.InterpolationSyntaxError: '$' must be followed by '$' or '{', found: '$ sign ($ is the only character that needs to be escaped)'
-
bpo-42238: [doc] Some lines moved in rst, but had hardcoded lineno in…
… susp-ignored.csv. (GH-32070)
-
-
bpo-43166: Disable ceval.c optimizations for Windows debug builds (GH…
…-32023) Also increases the stack allocation when run with `python_d.exe` to account for the extra stack checks that are added.
Commits on Mar 22, 2022
-
bpo-2604: Make doctest.DocTestCase reset globs in teardown (GH-31932)
Co-authored-by: Piet Delport Co-authored-by: Hugo Lopes Tavares Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>