Skip to content
Permalink
Branch: master
Commits on Jun 17, 2020
  1. bpo-41006: importlib.util no longer imports typing (GH-20938)

    vstinner committed Jun 17, 2020
    Create importlib._abc submodule to avoid importing typing when
    importlib.util is imported. Move Loader ABC into importlib._abc.
  2. bpo-40637: Do not emit warnings for disabled builtin hashes (GH-20937)

    stratakis committed Jun 17, 2020
    test_hashlib emits some warnings when it cannot find some hashes
    as it assumes they failed to compile. Since we can disable hashes
    through configure, we emit the warnings only in the case that we
    did not intentionaly disable them.
    
    Automerge-Triggered-By: @tiran
  3. bpo-41006: pkgutil imports lazily re (GH-20939)

    vstinner committed Jun 17, 2020
    The pkgutil module now imports lazily the re module to speedup Python
    startup time.
  4. bpo-41006: collections imports lazily heap (GH-20940)

    vstinner committed Jun 17, 2020
    The collections module now imports lazily the heapq modules in the
    Counter.most_common() method to speedup Python startup time.
  5. bpo-41009: fix requires_OS_version() class decorator (GH-20942)

    tiran committed Jun 17, 2020
    Signed-off-by: Christian Heimes <christian@python.org>
    
    Automerge-Triggered-By: @tiran
  6. bpo-41003: Fix test_copyreg when numpy is installed (GH-20935)

    vstinner committed Jun 17, 2020
    Fix test_copyreg when numpy is installed: test.pickletester now
    saves/restores warnings.filters when importing numpy, to ignore
    filters installed by numpy.
    
    Add the save_restore_warnings_filters() function to the
    test.support.warnings_helper module.
  7. bpo-36346: Make unicodeobject.h C89 compatible (GH-20934)

    methane committed Jun 17, 2020
  8. bpo-35059: Enhance _PyObject_GC_TRACK() macros (GH-20931)

    vstinner committed Jun 17, 2020
    * Rename _PyObject_GC_TRACK_impl() to _PyObject_GC_TRACK()
    * Rename _PyObject_GC_UNTRACK_impl() to _PyObject_GC_UNTRACK()
    * Omit filename and lineno parameters if NDEBUG is defined.
  9. bpo-36346: Add Py_DEPRECATED to deprecated unicode APIs (GH-20878)

    3 people committed Jun 17, 2020
    Co-authored-by: Kyle Stanley <aeros167@gmail.com>
    Co-authored-by: Victor Stinner <vstinner@python.org>
  10. bpo-32604: Clean up test.support.interpreters. (gh-20926)

    ericsnowcurrently committed Jun 17, 2020
    There were some minor adjustments needed and a few tests were missing.
    
    https://bugs.python.org/issue32604
Commits on Jun 16, 2020
  1. bpo-40958: Avoid buffer overflow in the parser when indexing the curr…

    pablogsal committed Jun 16, 2020
    …ent line (GH-20875)
  2. bpo-40989: Make _PyTraceMalloc_NewReference() internal (GH-20915)

    vstinner committed Jun 16, 2020
    Make the _PyTraceMalloc_NewReference() function fully internal:
    remove it from the public C API and don't export it anymore.
  3. bpo-40993: Don't run Travis CI coverage on PRs (GH-20916)

    vstinner committed Jun 16, 2020
    C and Python coverage jobs of Travis CI are no longer run on pull
    requests, only on branches like master.
  4. Remove old comment in string_parser.c (GH-20906)

    pablogsal committed Jun 16, 2020
  5. bpo-19569: Add a macro to suppress deprecation warnings (GH-9004)

    ZackerySpytz and Arfrever committed Jun 16, 2020
    Co-authored-by: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
  6. bpo-40985: Show correct SyntaxError text when last line has a LINECONT (

    lysnikolaou committed Jun 16, 2020
    GH-20888)
    
    When a file ends with a line that contains a line continuation character
    the text of the emitted SyntaxError is empty, contrary to the old
    parser, where the error text contained the text of the last line.
Commits on Jun 15, 2020
  1. closes bpo-28557: error message for bad raw readinto (GH-7496)

    davidszotten and benjaminp committed Jun 15, 2020
    Co-authored-by: Benjamin Peterson <benjamin@python.org>
  2. bpo-40989: PyObject_INIT() becomes an alias to PyObject_Init() (GH-20901

    vstinner committed Jun 15, 2020
    )
    
    The PyObject_INIT() and PyObject_INIT_VAR() macros become aliases to,
    respectively, PyObject_Init() and PyObject_InitVar() functions.
    
    Rename _PyObject_INIT() and _PyObject_INIT_VAR() static inline
    functions to, respectively, _PyObject_Init() and _PyObject_InitVar(),
    and move them to pycore_object.h. Remove their return value:
    their return type becomes void.
    
    The _datetime module is now built with the Py_BUILD_CORE_MODULE macro
    defined.
    
    Remove an outdated comment on _Py_tracemalloc_config.
  3. bpo-36020: Require vsnprintf() to build Python (GH-20899)

    vstinner committed Jun 15, 2020
    The C99 functions snprintf() and vsnprintf() are now required
    to build Python.
    
    PyOS_snprintf() and PyOS_vsnprintf() no longer call Py_FatalError().
    Previously, they called Py_FatalError() on a buffer overflow on platforms
    which don't provide vsnprintf().
  4. bpo-36020: Remove snprintf macro in pyerrors.h (GH-20889)

    vstinner committed Jun 15, 2020
    On Windows, #include "pyerrors.h" no longer defines "snprintf" and
    "vsnprintf" macros.
    
    PyOS_snprintf() and PyOS_vsnprintf() should be used to get portable
    behavior.
    
    Replace snprintf() calls with PyOS_snprintf() and replace vsnprintf()
    calls with PyOS_vsnprintf().
  5. bpo-40448: ensurepip: Do not use cache (GH-19812)

    kkonopko committed Jun 15, 2020
    ensurepip optionally installs or upgrades 'pip' and 'setuptools' using
    the version of those modules bundled with Python.  The internal PIP
    installation routine by default temporarily uses its cache, if it
    exists.  This is undesirable as Python builds and installations may be
    independent of the user running the build, whilst PIP cache location
    is dependent on the user's environment and outside of the build
    environment.
    
    At the same time, there's no value in using the cache while installing
    bundled modules.
    
    This change disables PIP caching when used in ensurepip.
  6. bpo-34226: fix cgi.parse_multipart without content_length (GH-8530)

    Roger committed Jun 15, 2020
    In Python 3.7 the behavior of parse_multipart changed requiring CONTENT-LENGTH
    header, this fix remove this header as required and fix FieldStorage
    read_lines_to_outerboundary, by not using limit when it's negative,
    since by default it's -1 if not content-length and keeps substracting what
    was read from the file object.
    
    Also added a test case for this problem.
  7. bpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886)

    vstinner committed Jun 15, 2020
    bpo-40910, bpo-40953: PyConfig_Clear() clears _orig_argv.
  8. Improve readability and style in parser files (GH-20884)

    pablogsal committed Jun 15, 2020
  9. bpo-29782: Consolidate _Py_Bit_Length() (GH-20739)

    niklasf committed Jun 15, 2020
    In GH-2866, _Py_Bit_Length() was added to pymath.h for lack of a better
    location. GH-20518 added a more appropriate header file for bit utilities. It
    also shows how to properly use intrinsics. This allows reconsidering bpo-29782.
    
    * Move the function to the new header.
    * Changed return type to match __builtin_clzl() and reviewed usage.
    * Use intrinsics where available.
    * Pick a fallback implementation suitable for inlining.
  10. bpo-40836: Add docstring to logging.fatal() and logging.Logger.fatal() (

    remilapeyre committed Jun 15, 2020
    GH-20563)
    
    Automerge-Triggered-By: @vsajip
  11. Fix trailing whitespace in keyword.py (GH-20881)

    pablogsal committed Jun 15, 2020
  12. Include soft keywords in keyword.py (GH-20877)

    pablogsal committed Jun 15, 2020
  13. bpo-40890: Fix compiler warning in dictobject.c (GH-20876)

    pablogsal committed Jun 15, 2020
    1
Commits on Jun 14, 2020
  1. Fixes dead links to Django's logging config docs (GH-20823)

    kevinseelbach committed Jun 14, 2020
    Fixes two outdated URLs to point at the current "stable" version of Django's logging documentation.
    
    Automerge-Triggered-By: @vsajip
  2. bpo-30064: Fix slow asyncio sock test (GH-20868)

    fantix committed Jun 14, 2020
    Using a log2n way to fill a much smaller buffer, and receiving in a cleaner way with EOF.
    
    The failing test was reproducible using the following command thanks to @aeros :
    
    ```bash
    ./python -m test test_asyncio.test_sock_lowlevel --match test_sock_client_racing -j100 -F -v
    ```
    
    According to test results, we may still need to bump the timeout:
    
    https://github.com/python/cpython/blob/5aad027db9618f22f6fa2274e05dd50f928d2ed7/Lib/test/test_asyncio/test_sock_lowlevel.py#L256-L257
Older
You can’t perform that action at this time.