main
Name already in use
Commits on Dec 19, 2022
-
gh-89727: Fix os.walk RecursionError on deep trees (#99803)
Use a stack to implement os.walk iteratively instead of recursively to avoid hitting recursion limits on deeply nested trees.
-
Commits on Dec 18, 2022
-
gh-94912: Added marker for non-standard coroutine function detection (#…
…99247) This introduces a new decorator `@inspect.markcoroutinefunction`, which, applied to a sync function, makes it appear async to `inspect.iscoroutinefunction()`.
-
Commits on Dec 17, 2022
-
gh-100272: Fix JSON serialization of OrderedDict (GH-100273)
It now preserves the order of keys.
-
-
-
gh-99240: Reset pointer to NULL when the pointed memory is freed in a…
…rgument parsing (#99890) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
-
gh-99240: Reset pointer to NULL when the pointed memory is freed in a…
…rgument parsing (#99890) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
-
GH-98831: Add DECREF_INPUTS(), expanding to DECREF() each stack input (…
…#100205) The presence of this macro indicates that a particular instruction may be considered for conversion to a register-based format (see faster-cpython/ideas#485). An invariant (currently unchecked) is that `DEOPT_IF()` may only occur *before* `DECREF_INPUTS()`, and `ERROR_IF()` may only occur *after* it. One reason not to check this is that there are a few places where we insert *two* `DECREF_INPUTS()` calls, in different branches of the code. The invariant checking would have to be able to do some flow control analysis to understand this. Note that many instructions, especially specialized ones, can't be converted to use this macro straightforwardly. This is because the generator currently only generates plain `Py_DECREF(variable)` statements, and cannot generate things like `_Py_DECREF_SPECIALIZED()` let alone deal with `_PyList_AppendTakeRef()`.
-
gh-78707: deprecate passing >1 argument to `PurePath.[is_]relative_to…
Commits on Dec 16, 2022
-
gh-99540: Constant hash for _PyNone_Type to aid reproducibility (GH-9…
…9541) Needed for ASLR builds of Python.
-
gh-100039: enhance __signature__ to work with str and callables (GH-1…
…00168) Callables should be either class- or static-methods. Enum now uses the classmethod version to greatly improve the help given for enums and flags.
-
"Compound statement" docs: Fix with-statement step indexing (#100286)
Back in commit 226e6e7 an item was added to the list, renumbering all the rest of the items, but the forward-reference wasn't updated to match.
-
-
-
Better stats for
LOAD_ATTR
andSTORE_ATTR
(GH-100295)* Don't attempt to specialize for LOAD_ATTR on instance if class has attribute * Improvement to LOAD_ATTR and STORE_ATTR specialization stats.
-
Commits on Dec 15, 2022
-
gh-78997: AttributeError if loading fails in LibraryLoader.__getattr__
Co-authored-by: Zachary Ware <zachary.ware@gmail.com> Co-authored-by: Filipe Laíns <filipe.lains@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
-
-
GH-100222: fix typo _py_set_opocde -> _py_set_opcode (GH-100259)
Typo introduced in #100223. Automerge-Triggered-By: GH:brandtbucher
Commits on Dec 14, 2022
-
GH-100000: Cleanup and polish various watchers code (GH-99998)
* Initialize `type_watchers` array to `NULL`s * Optimize code watchers notification * Optimize func watchers notification
-
-
gh-100176: venv: Remove redundant compat code for Python <= 3.2 (#100177
) gh-100176: Remove redundant compat code for Python 3.2 and older Python 3.2 has been EOL since 2016-02-20 and 2.7 since 2020-01-01, so we can remove this old compatibility check and unindent the old else-block. Also, in the unindented block, replace a .format() call with an f-string. Plus similar changes in the documentation.