Skip to content
Permalink
master

Commits on Oct 16, 2020

  1. bpo-41919, test_codecs: Move codecs.register calls to setUp() (GH-22513)

    * Move the codecs' (un)register operation to testcases.
    * Remove _codecs._forget_codec() and _PyCodec_Forget()
    shihai1991 committed Oct 16, 2020

Commits on Oct 15, 2020

  1. bpo-1635741: Add a global module state to unicodedata (GH-22712)

    Prepare unicodedata to add a state per module: start with a global
    "module" state, pass it to subfunctions which access &UCD_Type. This
    change also prepares the conversion of the UCD_Type static type to a
    heap type.
    vstinner committed Oct 15, 2020
  2. Minor clarification (GH-22708)

    rhettinger committed Oct 15, 2020
  3. bpo-41894: Fix UnicodeDecodeError while loading native module (GH-22466)

    When running in a non-UTF-8 locale, if an error occurs while importing a
    native Python module (say because a dependent share library is missing),
    the error message string returned may contain non-ASCII code points
    causing a UnicodeDecodeError.
    
    PyUnicode_DecodeFSDefault is used for buffers which may contain
    filesystem  paths. For consistency with os.strerror(),
    PyUnicode_DecodeLocale is used for buffers which contain system error
    messages. While the shortname parameter is always encoded in ASCII
    according to PEP 489, it is left decoded using PyUnicode_FromString to
    minimize the changes and since it should not affect the decoding (albeit
    _potentially_ slower).
    
    In dynload_hpux, since the error buffer contains a message generated
    from a static ASCII string and the module filesystem path,
    PyUnicode_DecodeFSDefault is used instead of PyUnicode_DecodeLocale as
    is used elsewhere.
    
    * bpo-41894: Fix bugs in dynload error msg handling
    
    For both dynload_aix and dynload_hpux, properly handle the possibility
    that decoding strings may return NULL and when such an error happens,
    properly decrement any previously decoded strings and return early.
    
    In addition, in dynload_aix, ensure that we pass the decoded string
    *object* pathname_ob to PyErr_SetImportError instead of the original
    pathname buffer.
    
    Co-authored-by: Serhiy Storchaka <[email protected]>
    kadler and serhiy-storchaka committed Oct 15, 2020
  4. bpo-41984: GC track all user classes (GH-22701)

    brandtbucher committed Oct 15, 2020

Commits on Oct 14, 2020

  1. Update timings for the final release (GH-22697)

    rhettinger committed Oct 14, 2020
  2. bpo-39337: encodings.normalize_encoding() now ignores non-ASCII chara…

    …cters (GH-22219)
    shihai1991 committed Oct 14, 2020
  3. bpo-41876: Overload __repr__ for tkinter Font objects (GH-22450)

    p4m-dev committed Oct 14, 2020
  4. closes bpo-42029: Remove dynload_dl (GH-22687)

    All references to this dynamic loading method were removed in b9949db,
    when support for this method was dropped, but the implementation code
    was not dropped (seemingly in oversight).
    kadler committed Oct 14, 2020

Commits on Oct 13, 2020

  1. Improve recipe readability (GH-22685)

    rhettinger committed Oct 13, 2020
  2. bpo-40422: Move _Py_closerange to fileutils.c (GH-22680)

    This API is relatively lightweight and organizationally, given that it's
    used by multiple modules, it makes sense to move it to fileutils.
    
    Requires making sure that _posixsubprocess is compiled with the appropriate
    Py_BUIILD_CORE_BUILTIN macro.
    kevans91 committed Oct 13, 2020
  3. bpo-41756: Export PyGen_Send and wrap it in if-defs (#22677)

    vladima committed Oct 13, 2020
  4. bpo-41995: Fix null ptr deref in tracemalloc_copy_trace() (GH-22660)

    Fix a null pointer dereference in tracemalloc_copy_trace()
    of _tracemalloc.
    Yunlongs committed Oct 13, 2020

Commits on Oct 12, 2020

  1. bpo-40422: Move _Py_*_SUPPRESS_IPH bits into _Py_closerange (GH-22672)

    This suppression is no longer needed in os_closerange_impl, as it just
    invokes the internal _Py_closerange implementation. On the other hand,
    consumers of _Py_closerange may not have any other reason to suppress
    invalid parameter issues, so narrow the scope to here.
    kevans91 committed Oct 12, 2020
  2. Fix typo in "Context manager types" section in typing.rst (GH-22676)

    Fix typo in the "Context manager types" section in `typing.rst`.
    
    Automerge-Triggered-By: @gvanrossum
    gousaiyang committed Oct 12, 2020
  3. bpo-42015: Reorder dereferencing calls in meth_dealloc, to make sure …

    …m_self is kept alive long enough (GH-22670)
    YannickJadoul committed Oct 12, 2020
  4. Delete PyGen_Send (#22663)

    vladima committed Oct 12, 2020
  5. [doc] Fix typo in the graphlib docs (GH-22661)

    Automerge-Triggered-By: @pablogsal
    linchiwei123 committed Oct 12, 2020

Commits on Oct 11, 2020

  1. bpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (G…

    …H-22655)
    
    The test now waits until all threads complete to avoid leaking
    running threads.
    
    Also, use regular threads rather than daemon threads.
    vstinner committed Oct 11, 2020
  2. bpo-41971: Fix test failure in test.test_tools.test_c_analyzer when m…

    …utating global state (GH-22652)
    pablogsal committed Oct 11, 2020
  3. bpo-40423: Optimization: use close_range(2) if available (GH-22651)

    close_range(2) should be preferred at all times if it's available, otherwise we'll use closefrom(2) if available with a fallback to fdwalk(3) or plain old loop over fd range in order of most efficient to least.
    
    [note that this version does check for ENOSYS, but currently ignores all other errors]
    
    Automerge-Triggered-By: @pablogsal
    kevans91 committed Oct 11, 2020
  4. bpo-40422: create a common _Py_closerange API (GH-19754)

    Such an API can be used both for os.closerange and subprocess. For the latter, this yields potential improvement for platforms that have fdwalk but wouldn't have used it there. This will prove even more beneficial later for platforms that have close_range(2), as the new API will prefer that over all else if it's available.
    
    The new API is structured to look more like close_range(2), closing from [start, end] rather than the [low, high) of os.closerange().
    
    Automerge-Triggered-By: @gpshead
    kevans91 committed Oct 11, 2020
  5. Fix .. code-block :: directives in decimal.rst (GH-22571)

    asottile committed Oct 11, 2020
  6. Fix typo in listobject.h (GH-22588)

    chilaxan committed Oct 11, 2020
  7. Fix typo (GH-22582)

    /af/of/s
    
    Automerge-Triggered-By: @Mariatta
    st0le committed Oct 11, 2020
  8. bpo-41993: Fix possible issues in remove_module() (GH-22631)

    * PyMapping_HasKey() is not safe because it silences all exceptions and can return incorrect result.
    * Informative exceptions from PyMapping_DelItem() are overridden with RuntimeError and
      the original exception raised before calling remove_module() is lost.
    * There is a race condition between PyMapping_HasKey() and PyMapping_DelItem().
    serhiy-storchaka committed Oct 11, 2020
  9. bpo-42002: Clean up initialization of the sys module. (GH-22642)

    Makes the code clearer and make errors handling more correct.
    serhiy-storchaka committed Oct 11, 2020
  10. Fix typo in typing.rst (GH-22625)

    abdnh committed Oct 11, 2020

Commits on Oct 10, 2020

  1. bpo-41991: Remove _PyObject_HasAttrId (GH-22629)

    It can silence arbitrary exceptions.
    serhiy-storchaka committed Oct 10, 2020
Older
You can’t perform that action at this time.