Skip to content
Permalink
Branch: master
Commits on Jun 16, 2020
  1. Remove old comment in string_parser.c (GH-20906)

    pablogsal committed Jun 16, 2020
  2. 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>
  3. 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
Commits on Jun 13, 2020
  1. bpo-40855: Fix ignored mu and xbar parameters (GH-20835)

    rhettinger committed Jun 13, 2020
  2. Minor code clean-ups (GH-20838)

    rhettinger committed Jun 13, 2020
  3. bpo-40957: Fix refleak in _Py_fopen_obj() (GH-20827)

    tiran committed Jun 13, 2020
    Signed-off-by: Christian Heimes <christian@python.org>
  4. Remove redundant var in PyErr_NewException() (GH-20850)

    shihai1991 committed Jun 13, 2020
Commits on Jun 12, 2020
  1. bpo-37556 Extend help to include latest overrides (GH-14701)

    GadgetSteve committed Jun 12, 2020
    Modify the help in cpython/PC/launcher.c to show users that "latest" can be overridden by shebang, PY_PYTHON[n] or py.ini files. Also show that script [args] is optional by enclosing in square brackets.
    
    Automerge-Triggered-By: @zooba
  2. Minor change on threading.Thread.native_id documentation. (GH-18129)

    awecx committed Jun 12, 2020
    Remove duplication in `threading.Thread.native_id` documentation, so resulting documentation is more consistent with the `threading.Thread.ident`.
    
    Issue initially raised [here](python/python-docs-fr#1122 (comment)) (in French). 
    
    No issue associated to this PR.
    
    Automerge-Triggered-By: @csabella
  3. bpo-40164: Update Windows OpenSSL to 1.1.1g (GH-20834)

    srinivasreddy committed Jun 12, 2020
  4. bpo-40964: disable remote IMAP tests (GH-20836)

    tiran committed Jun 12, 2020
    Remote host cyrus.andrew.cmu.edu is blocking incoming connections and is
    causing test suite to fail.
    
    Signed-off-by: Christian Heimes <christian@python.org>
  5. bpo-40890: Add `mapping` property to dict views (GH-20749)

    sweeneyde committed Jun 12, 2020
  6. bpo-40955: Fix memory leak in subprocess module (GH-20825)

    tiran committed Jun 12, 2020
    ```
    Direct leak of 8 byte(s) in 1 object(s) allocated from:
        #0 0x7f008bf19667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667)
        #1 0x7f007a0bee4a in subprocess_fork_exec /home/heimes/dev/python/cpython/Modules/_posixsubprocess.c:774
        #2 0xe0305b in cfunction_call Objects/methodobject.c:546
    ```
    
    Signed-off-by: Christian Heimes <christian@python.org>
  7. Update lexical_analysis.rst (GH-17508)

    maggyero committed Jun 12, 2020
    Use Sphinx role markup for `str.format`.
    
    Automerge-Triggered-By: @csabella
Older
You can’t perform that action at this time.