Skip to content
Permalink
master

Commits on Nov 11, 2020

  1. bpo-1635741: Fix typo in PyModule_AddObjectRef() doc (GH-23234)

    It is similar to PyModule_AddObject(), not to itself.
    vstinner committed Nov 11, 2020

Commits on Nov 10, 2020

  1. bpo-42140: Improve asyncio.wait function (GH-22938)

    # Improve asyncio.wait function
    
    The original code creates the futures set two times.
    We can create this set before, avoiding the second creation.
    
    This new behaviour [breaks the aiokafka library](aio-libs/aiokafka#672), because it gives an iterator to that function, so the second iteration become empty.
    
    Automerge-Triggered-By: GH:1st1
    dutradda committed Nov 10, 2020
  2. bpo-41073: PyType_GetSlot() can now accept static types. (GH-21931)

    PyType_GetSlot() can now accept static types.
    
    Co-Authored-By: Petr Viktorin <encukou@gmail.com>
    
    Automerge-Triggered-By: GH:encukou
    shihai1991 committed Nov 10, 2020
  3. bpo-42260: Fix _PyConfig_Read() if compute_path_config=0 (GH-23220)

    Fix _PyConfig_Read() if compute_path_config=0: use values set by
    Py_SetPath(), Py_SetPythonHome() and Py_SetProgramName(). Add
    compute_path_config parameter to _PyConfig_InitPathConfig().
    
    The following functions now return NULL if called before
    Py_Initialize():
    
    * Py_GetExecPrefix()
    * Py_GetPath()
    * Py_GetPrefix()
    * Py_GetProgramFullPath()
    * Py_GetProgramName()
    * Py_GetPythonHome()
    
    These functions no longer automatically computes the Python Path
    Configuration. Moreover, Py_SetPath() no longer computes
    program_full_path.
    vstinner committed Nov 10, 2020
  4. bpo-42085: Introduce dedicated entry in PyAsyncMethods for sending va…

    …lues (#22780)
    vladima committed Nov 10, 2020
  5. bpo-42014: shutil.rmtree: call onerror with correct function (GH-22585)

    The onerror is supposed to be called with failed function, but in this case lstat is wrongly used instead of open.
    
    Not sure if this needs bug or not...
    
    Automerge-Triggered-By: GH:hynek
    nijel committed Nov 10, 2020
  6. bpo-42183: Fix a stack overflow error for asyncio Task or Future repr…

    …() (GH-23020)
    
    The overflow occurs under some circumstances when a task or future
    recursively returns itself.
    
    Co-authored-by: Kyle Stanley <aeros167@gmail.com>
    asvetlov and aeros committed Nov 10, 2020
  7. bpo-42171: Add PEP573-related items to the limited API (GH-23009)

    encukou committed Nov 10, 2020
  8. Fix typo in test_array.py (GH-23189)

    eltociear committed Nov 10, 2020
  9. bpo-42260: Compute the path config in the main init (GH-23211)

    The path configuration is now computed in the "main" initialization.
    The core initialization no longer computes it.
    
    * Add _PyConfig_Read() function to read the configuration without
      computing the path configuration.
    * pyinit_core() no longer computes the path configuration: it is now
      computed by init_interp_main().
    * The path configuration output members of PyConfig are now optional:
    
      * executable
      * base_executable
      * prefix
      * base_prefix
      * exec_prefix
      * base_exec_prefix
    
    * _PySys_UpdateConfig() now skips NULL strings in PyConfig.
    * _testembed: Rename test_set_config() to test_init_set_config() for
      consistency with other tests.
    vstinner committed Nov 10, 2020
  10. Fix typo in unicodeobject.c (GH-23180)

    exeeds -> exceeds
    
    Automerge-Triggered-By: GH:Mariatta
    eltociear committed Nov 10, 2020

Commits on Nov 9, 2020

  1. bpo-36310: Allow pygettext.py to detect calls to gettext in f-strings. (

    GH-19875)
    
    Adds support to Tools/i18n/pygettext.py for gettext calls in f-strings. This process is done by parsing the f-strings, processing each value, and flagging the ones which contain a gettext call.
    
    Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
    jack1142 and isidentical committed Nov 9, 2020
  2. bpo-41712: Avoid runaway regex match in upload scripts (GH-23166)

    Pixmew committed Nov 9, 2020
  3. bpo-42294: Add borrowed/strong reference to doc glossary (GH-23206)

    Add "borrowed reference" and "strong reference" to the documentation
    glossary.
    
    Enhance also Py_INCREF() and Py_NewRef() documentation.
    vstinner committed Nov 9, 2020
  4. bpo-41543: contextlib.nullcontext can fill in for an async context ma…

    …nager (GH-21870)
    
    Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
    tomgrin10 and asvetlov committed Nov 9, 2020
  5. bpo-42233: Add union type expression support for GenericAlias and fix…

    … de-duplicating of GenericAlias (GH-23077)
    Fidget-Spinner committed Nov 9, 2020

Commits on Nov 8, 2020

  1. bpo-41754: Ignore NotADirectoryError in invocation of xdg-settings (G…

    …H-23075)
    
    It is not clear why this can happen, but several users have mentioned
    getting this exception on macOS.
    ronaldoussoren committed Nov 8, 2020
  2. bpo-41100: Support macOS 11 and Apple Silicon (GH-22855)

    Co-authored-by:  Lawrence D’Anna <lawrence_danna@apple.com>
    
    * Add support for macOS 11 and Apple Silicon (aka arm64)
       
      As a side effect of this work use the system copy of libffi on macOS, and remove the vendored copy
    
    * Support building on recent versions of macOS while deploying to older versions
    
      This allows building installers on macOS 11 while still supporting macOS 10.9.
    ronaldoussoren committed Nov 8, 2020
  3. Minor wording change in concurrent.futures. (GH-23194)

    Fixes a grammar problem by adding a missing "as", and clarifies the wording of the valid ranges for max_workers.
    donkirkby committed Nov 8, 2020

Commits on Nov 7, 2020

  1. bpo-40077: Convert _queuemodule to use heap types (GH-23136)

    @vstinner / @corona10, would you mind reviewing this?
    erlend-aasland committed Nov 7, 2020
  2. bpo-42282: Fold constants inside named expressions (GH-23190)

    * The AST optimiser wasn't descending into named expressions, so
      any constant subexpressions weren't being folded at compile time
    * Remove "default:" clauses inside the AST optimiser code to reduce the
      risk of similar bugs passing unnoticed in future compiler changes
    ncoghlan committed Nov 7, 2020
  3. bpo-42133: update parts of the stdlib to fall back to `__spec__.loade…

    …r` when `__loader__` is missing (#22929)
    brettcannon committed Nov 7, 2020

Commits on Nov 6, 2020

  1. Minor grammar edits for the descriptor howto guide (GH-#23175)

    rhettinger committed Nov 6, 2020
  2. bpo-42179: Doc/tutorial: Remove mention of __cause__ (GH-23162)

    methane committed Nov 6, 2020

Commits on Nov 5, 2020

  1. bpo-26389: Allow passing an exception object in the traceback module (G…

    …H-22610)
    
    The format_exception(), format_exception_only(), and
    print_exception() functions can now take an exception object as a positional-only argument.
    
    Co-Authored-By: Matthias Bussonnier <bussonniermatthias@gmail.com>
    ZackerySpytz and Carreau committed Nov 5, 2020
  2. bpo-42260: PyConfig_Read() only parses argv once (GH-23168)

    The PyConfig_Read() function now only parses PyConfig.argv arguments
    once: PyConfig.parse_argv is set to 2 after arguments are parsed.
    Since Python arguments are strippped from PyConfig.argv, parsing
    arguments twice would parse the application options as Python
    options.
    
    * Rework the PyConfig documentation.
    * Fix _testinternalcapi.set_config() error handling.
    * SetConfigTests no longer needs parse_argv=0 when restoring the old
      configuration.
    vstinner committed Nov 5, 2020
  3. bpo-42260: Add _PyConfig_FromDict() (GH-23167)

    * Rename config_as_dict() to _PyConfig_AsDict().
    * Add 'module_search_paths_set' to _PyConfig_AsDict().
    * Add _PyConfig_FromDict().
    * Add get_config() and set_config() to _testinternalcapi.
    * Add config_check_consistency().
    vstinner committed Nov 5, 2020
  4. bpo-41877 Check for asert, aseert, assrt in mocks (GH-23165)

    Currently, a Mock object which is not unsafe will raise an
    AttributeError if an attribute with the prefix assert or assret is
    accessed on it. This protects against misspellings of real assert
    method calls, which lead to tests passing silently even if the tested
    code does not satisfy the intended assertion.
    
    Recently a check was done in a large code base (Google) and three
    more frequent ways of misspelling assert were found causing harm:
    asert, aseert, assrt. These are now added to the existing check.
    vabr-g committed Nov 5, 2020
  5. [docs] fix wrongly named AsyncContextDecorator (GH-23164)

    Also added versionchanged.
    Fidget-Spinner committed Nov 5, 2020
Older
You can’t perform that action at this time.