Skip to content
Permalink
main

Commits on Oct 19, 2021

  1. bpo-45475: Revert __iter__ optimization for GzipFile, BZ2File, and …

    …LZMAFile. (GH-29016)
    
    This reverts commit d2a8e69.
    methane committed Oct 19, 2021
  2. bpo-45516: use documentation links in TraversableResources' descripti…

    …on (GH-29045)
    
    I think this makes the documentation much more digestible :)
    
    Signed-off-by: Filipe Laíns <lains@riseup.net>
    FFY00 committed Oct 19, 2021
  3. bpo-35134: Add Include/cpython/longobject.h (GH-29044)

    Move Include/longobject.h non-limited API to a new
    Include/cpython/longobject.h header file.
    
    Move the following definitions to the internal C API:
    
    * _PyLong_DigitValue
    * _PyLong_FormatAdvancedWriter()
    * _PyLong_FormatWriter()
    vstinner committed Oct 19, 2021

Commits on Oct 18, 2021

  1. bpo-35134: Split warnings.h and weakrefobject.h (GH-29042)

    Split header files to move the non-limited API to Include/cpython/:
    
    * Include/warnings.h => Include/cpython/warnings.h
    * Include/weakrefobject.h => Include/cpython/weakrefobject.h
    
    Exclude PyWeakref_GET_OBJECT() from the limited C API. It never
    worked since the PyWeakReference structure is opaque in the limited C
    API.
    
    Move _PyWarnings_Init() and _PyErr_WarnUnawaitedCoroutine() to the
    internal C API.
    vstinner committed Oct 18, 2021
  2. bpo-45516: add protocol description to the Traversable documentation (#…

    …29039)
    
    * bpo-45516: add protocol description to the Traversable documentation
    
    Signed-off-by: Filipe Laíns <lains@riseup.net>
    
    * Update Doc/library/importlib.rst
    
    Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
    
    * Update Lib/importlib/abc.py
    
    * Update Doc/library/importlib.rst
    
    Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
    
    Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
    FFY00 and jaraco committed Oct 18, 2021
  3. bpo-43760: Rename _PyThreadState_DisableTracing() (GH-29032)

    * Rename _PyThreadState_DisableTracing()
      to _PyThreadState_PauseTracing()
    * Rename _PyThreadState_ResetTracing()
      to _PyThreadState_ResumeTracing()
    vstinner committed Oct 18, 2021
  4. bpo-45256: Avoid C calls for most Python to Python calls. (GH-28937)

    * Avoid making C calls for most calls to Python functions.
    
    * Change initialize_locals(steal=true) and _PyTuple_FromArraySteal to consume the argument references regardless of whether they succeed or fail.
    markshannon committed Oct 18, 2021

Commits on Oct 16, 2021

  1. bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000)

    Since the keyword list is frozen, only compute it once per
    session.  The colorizer already handles context keywords.
    terryjreedy committed Oct 16, 2021
  2. bpo-45020: Default to using frozen modules unless running from source…

    … tree. (gh-28940)
    
    The default was "off".  Switching it to "on" means users get the benefit of frozen stdlib modules without having to do anything.  There's a special-case for running-in-source-tree, so contributors don't get surprised when their stdlib changes don't get used.
    
    https://bugs.python.org/issue45020
    ericsnowcurrently committed Oct 16, 2021
  3. bpo-45463: Clarify that global statements allows multiple names (GH-2…

    …8851)
    
    The global statement allows specifying a list of identifiers
    (https://docs.python.org/3/reference/simple_stmts.html#the-global-statement).
    
    The "Execution model" chapter described the global statement as if it
    only allowed one single name. Pluralize "name" in the appropriate places.
    lucach committed Oct 16, 2021

Commits on Oct 15, 2021

  1. bpo-45442: Add deactivate step to venv tutorial. (GH-28981)

    @vsajip Sorry for the trouble—made a [fairly significant] git error in the previous PR.
    
    Have edited the patch as you had said in #28959.
    
    Automerge-Triggered-By: GH:vsajip
    ShivnarenSrinivasan committed Oct 15, 2021
  2. bpo-45440: Remove pymath.c fallbacks (GH-28977)

    Remove fallbacks for missing round(), copysign() and hypot() in
    Python/pymath.c. Python now requires these functions to build.
    
    These fallbacks were needed on Visual Studio 2012 and older. They are
    no longer needed since Visual Stuido 2013. Python is now built with
    Visual Studio 2017 or newer since Python 3.6.
    vstinner committed Oct 15, 2021
  3. bpo-30459: Use (void) in macros setting variables (GH-28982)

    Convert the result of macros setting variables to void to avoid risks
    of misusing them:
    
    * _PyGCHead_SET_NEXT()
    * asdl_seq_SET()
    * asdl_seq_SET_UNTYPED()
    vstinner committed Oct 15, 2021
  4. bpo-43760: Add PyThreadState_EnterTracing() (GH-28542)

    Add PyThreadState_EnterTracing() and PyThreadState_LeaveTracing()
    functions to the limited C API to suspend and resume tracing and
    profiling.
    
    Add an unit test on the PyThreadState C API to _testcapi.
    
    Add also internal _PyThreadState_DisableTracing() and
    _PyThreadState_ResetTracing().
    vstinner committed Oct 15, 2021
  5. bpo-45482: Rename namespaceobject.h to pycore_namespace.h (GH-28975)

    Rename Include/namespaceobject.h to
    Include/internal/pycore_namespace.h.
    
    The _testmultiphase extension is now built with the
    Py_BUILD_CORE_MODULE macro defined to access _PyNamespace_Type.
    
    object.c: remove unused "pycore_context.h" include.
    vstinner committed Oct 15, 2021
  6. bpo-45434: Remove Include/eval.h header file (GH-28973)

    Move Include/eval.h content into Include/ceval.h and
    Include/cpython/ceval.h, and remove Include/eval.h.
    vstinner committed Oct 15, 2021
  7. bpo-35081: Move interpreteridobject.h to Include/internal/ (GH-28969)

    Move the interpreteridobject.h header file from Include/ to
    Include/internal/. It only provides private functions.
    vstinner committed Oct 15, 2021
  8. bpo-45428: Fix reading filenames from stdin in py_compile (GH-28848)

    Strip trailing '\n'.
    ginggs committed Oct 15, 2021
  9. bpo-35134: Move classobject.h to Include/cpython/ (GH-28968)

    Move classobject.h, context.h, genobject.h and longintrepr.h header
    files from Include/ to Include/cpython/.
    
    Remove redundant "#ifndef Py_LIMITED_API" in context.h.
    
    Remove explicit #include "longintrepr.h" in C files. It's not needed,
    Python.h already includes it.
    vstinner committed Oct 15, 2021
  10. bpo-45479: Futher simplify Py_UniversalNewlineFgets. (GH-28967)

    Thank you to Eryk Sun for the suggestions in #28965 (comment).
    benjaminp committed Oct 15, 2021
  11. closes bpo-45479: Degunkify Py_UniversalNewlineFgets. (GH-28965)

    Remove dead variables and control flow.
    benjaminp committed Oct 15, 2021

Commits on Oct 14, 2021

  1. po-35134: Move Include/funcobject.h to Include/cpython/ (GH-28958)

    Remove redundant "#ifndef Py_LIMITED_API" in funcobject.h.
    vstinner committed Oct 14, 2021
  2. bpo-45434: Remove useless space in includes (GH-28963)

    Micro-optimize spaces!
    vstinner committed Oct 14, 2021
  3. bpo-41710: Fix What's New Entry credit (GH-28962)

    Fix bad copy/paste.
    vstinner committed Oct 14, 2021
Older