Skip to content
Permalink
main
Switch branches/tags

Commits on May 30, 2022

  1. gh-93351: Ensure the position information in AST nodes created by the…

    … parser is always consistent (GH-93352)
    pablogsal committed May 30, 2022
  2. bpo-42272: fix misleading warning filter message/module docs (#23172)

    * bpo-42272: improve message/module warning filter docs
    
    "The Warnings Filter" section of the warnings module documentation
    describes the message and module filters as "a string containing a
    regular expression".  While that is true when they are arguments to the
    filterwarnings function, it is not true when they appear in -W or
    $PYTHONWARNINGS where they are matched literally (after stripping any
    starting/ending whitespace).  Update the documentation to note when they
    are matched literally.  Also clarify that module matches the
    "fully-qualified module name", rather than "module name" which is
    ambiguous.
    
    skip news (since this is a doc fix)
    
    Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
    
    * bpo-42272: remove bad submodule warning filter doc
    
    The `error:::mymodule[.*]` example in the "Describing Warning Filters"
    section of the warnings module documentation does not behave as the
    comment describes.  Since the module portion of the filter string is
    interpreted literally, it would match a module with a fully-qualified
    name that is literally `mymodule[.*]`.
    
    Unfortunately, there is not a way to match '"module" and any subpackages
    of "mymodule"' as documented, since the module part of a filter string
    is matched literally.  Instead, update the filter and comment to match
    only "mymodule".
    
    skip news (since this is a doc fix)
    
    Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
    
    * bpo-42272: add warning filter doc changes to NEWS
    
    Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
    kevinoid committed May 30, 2022
  3. Fix typo in Lib/idlelib/idle_test/test_parenmatch.py (GH-93332)

    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    luzpaz and terryjreedy committed May 30, 2022

Commits on May 29, 2022

  1. gh-93008: refactor compiler functions that add instructions to take o…

    …nly a basicblock* (not the whole compiler) (GH-93009)
    iritkatriel committed May 29, 2022
  2. bpo-41287: Handle doc argument of property.__init__ in subclasses (

    …#23205)
    
    Fixes #85459
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    sizmailov and JelleZijlstra committed May 29, 2022
  3. gh-92240 : Include release dates for "What's New In Python 3.X" (#92937)

    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    3 people committed May 29, 2022

Commits on May 27, 2022

  1. bpo-40514: Drop EXPERIMENTAL_ISOLATED_SUBINTERPRETERS (gh-93185)

    This was added for bpo-40514 (gh-84694) to test out a per-interpreter GIL. However, it has since proven unnecessary to keep the experiment in the repo. (It can be done as a branch in a fork like normal.) So here we are removing:
    
    * the configure option
    * the macro
    * the code enabled by the macro
    ericsnowcurrently committed May 27, 2022
  2. gh-93250: [Enum] Change IntEnum boundary to KEEP for backwards compat…

    …ibility (GH-93302)
    
    In previous versions of Python if an IntEnum member was combined with another integer type value using a bit-wise operation, the resulting value would still be the IntEnum type.  This change restores that behavior.
    ethanfurman committed May 27, 2022
  3. gh-91243: Document Required and NotRequired (#93173)

    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    davidfstr and AlexWaygood committed May 27, 2022
  4. bpo-46951: Order contents of zipapps (GH-31713)

    So that builds are more reproducible.
    hfinucane committed May 27, 2022
  5. gh-77024: test.support: Improve documentation (#92513)

    This is a rework of #5774 on current main. I was a bit more
    conservative in making changes than the original PR.
    
    See @csabella's comments on issue #77024 and the discussion
    on #5774 for explanations of several of the changes.
    
    Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    3 people committed May 27, 2022
  6. gh-82616: Add Py_IS_TYPE_SIGNED() macro (#93178)

    _posixsubprocess: add a static assertion to ensure that the pid_t
    type is signed.
    
    Replace _Py_IntegralTypeSigned() with _Py_IS_TYPE_SIGNED().
    vstinner committed May 27, 2022
  7. gh-60074: add new stable API function PyType_FromMetaclass (GH-93012)

    Added a new stable API function ``PyType_FromMetaclass``, which mirrors
    the behavior of ``PyType_FromModuleAndSpec`` except that it takes an
    additional metaclass argument. This is, e.g., useful for language
    binding tools that need to store additional information in the type
    object.
    wjakob committed May 27, 2022

Commits on May 26, 2022

  1. gh-92898: Enhance _testcppext test on cast to PyObject* (#93111)

    * Add StrongRef class.
    * Rename and reformat functions of the _Py_CAST() implementation.
    vstinner committed May 26, 2022
  2. gh-91924: Optimize unicode_check_encoding_errors() (#93200)

    Avoid _PyCodec_Lookup() and PyCodec_LookupError() for most common
    built-in encodings and error handlers to avoid creating a temporary
    Unicode string object, whereas these encodings and error handlers are
    known to be valid.
    vstinner committed May 26, 2022
  3. test.pythoninfo logs more build info (#93225)

    Log also test.support.check_sanitizer() values.
    vstinner committed May 26, 2022

Commits on May 25, 2022

  1. gh-90817: Deprecate explicitly locale.resetlocale() (#93196)

    The function was already deprecated in Python 3.11 since it calls
    locale.getdefaultlocale() which was deprecated in Python 3.11.
    vstinner committed May 25, 2022
  2. Remove unnecessary for loop initializer in long_lshift1() (GH-93071)

    * Remove unnecessary for loop initialization.
    oda-gitso committed May 25, 2022
Older