Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on Dec 19, 2022

  1. 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.
    jonburdo committed Dec 19, 2022

Commits on Dec 18, 2022

  1. 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()`.
    carltongibson committed Dec 18, 2022

Commits on Dec 17, 2022

  1. gh-100272: Fix JSON serialization of OrderedDict (GH-100273)

    It now preserves the order of keys.
    serhiy-storchaka committed Dec 17, 2022
  2. 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>
    3 people committed Dec 17, 2022
  3. 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>
    3 people committed Dec 17, 2022
  4. 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()`.
    gvanrossum committed Dec 17, 2022
  5. gh-78707: deprecate passing >1 argument to `PurePath.[is_]relative_to…

    …()` (GH-94469)
    
    This brings `relative_to()` and `is_relative_to()` more in line with other pathlib methods like `rename()` and `symlink_to()`.
    
    Resolves #78707.
    barneygale committed Dec 17, 2022

Commits on Dec 16, 2022

  1. gh-99540: Constant hash for _PyNone_Type to aid reproducibility (GH-9…

    …9541)
    
    Needed for ASLR builds of Python.
    yonillasky committed Dec 16, 2022
  2. 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.
    ethanfurman committed Dec 16, 2022
  3. "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.
    ferdnyc committed Dec 16, 2022
  4. Better stats for LOAD_ATTR and STORE_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.
    markshannon committed Dec 16, 2022

Commits on Dec 15, 2022

  1. 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>
    4 people committed Dec 15, 2022
  2. GH-100222: fix typo _py_set_opocde -> _py_set_opcode (GH-100259)

    Typo introduced in #100223.
    
    Automerge-Triggered-By: GH:brandtbucher
    carljm committed Dec 15, 2022

Commits on Dec 14, 2022

  1. 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
    itamaro committed Dec 14, 2022
  2. gh-90111: Minor Cleanup for Runtime-Global Objects (gh-100254)

    * move _PyRuntime.global_objects.interned to _PyRuntime.cached_objects.interned_strings (and use _Py_CACHED_OBJECT())
    * rename _PyRuntime.global_objects to _PyRuntime.static_objects
    
    (This also relates to gh-96075.)
    
    #90111
    ericsnowcurrently committed Dec 14, 2022
  3. 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.
    hugovk committed Dec 14, 2022
Older