Skip to content
Permalink
main
Switch branches/tags

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
  3. gh-93124: Fix typos in comments (GH-93125)

    Fixes #93124
    
    Automerge-Triggered-By: GH:rhettinger
    Akuli committed May 25, 2022
  4. gh-90473: Misc test fixes for WASI (GH-93218)

    * ``sys.executable`` is not set
    * WASI does not support subprocess
    * ``pwd`` module is not available
    * WASI checks ``open`` syscall flags more strict, needs r, w, rw flag.
    * ``umask`` is not available
    * ``/dev/null`` may not be accessible
    tiran committed May 25, 2022
  5. gh-93202: Always use %zd printf formatter (#93201)

    Python now always use the ``%zu`` and ``%zd`` printf formats to
    format a size_t or Py_ssize_t number. Building Python 3.12 requires a
    C11 compiler, so these printf formats are now always supported.
    
    * PyObject_Print() and _PyObject_Dump() now use the printf %zd format
      to display an object reference count.
    * Update PY_FORMAT_SIZE_T comment.
    * Remove outdated notes about the %zd format in PyBytes_FromFormat()
      and PyUnicode_FromFormat() documentations.
    * configure no longer checks for the %zd format and no longer defines
      PY_FORMAT_SIZE_T macro in pyconfig.h.
    * pymacconfig.h no longer undefines PY_FORMAT_SIZE_T: macOS 10.4 is
      no longer supported. Python 3.12 now requires macOS 10.6 (Snow
      Leopard) or newer.
    vstinner committed May 25, 2022
Older