Skip to content
Permalink
master

Commits on Dec 27, 2020

  1. bpo-1635741: sqlite3 uses Py_NewRef/Py_XNewRef (GH-23170)

    erlend-aasland committed Dec 27, 2020
  2. bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and …

    …dynamic linked with Tk >= 8.5 (GH-23955)
    serhiy-storchaka committed Dec 27, 2020

Commits on Dec 26, 2020

  1. bpo-42745: finalize_interp_types() calls _PyType_Fini() (GH-23953)

    Call _PyType_Fini() in subinterpreters.
    
    Fix reference leaks in subinterpreters.
    vstinner committed Dec 26, 2020
  2. Add small validator utility for PEG grammars (GH-23519)

    pablogsal committed Dec 26, 2020
  3. bpo-16396: fix BPO number in changelog (GH-23951)

    Automerge-Triggered-By: GH:jaraco
    hauntsaninja committed Dec 26, 2020
  4. bpo-42748: test_asdl_parser now uses exec_module instead of load_modu…

    …le (#23954)
    corona10 committed Dec 26, 2020
  5. bpo-40521: Per-interpreter interned strings (GH-20085)

    Make the Unicode dictionary of interned strings compatible with
    subinterpreters.
    
    Remove the INTERN_NAME_STRINGS macro in typeobject.c: names are
    always now interned (even if EXPERIMENTAL_ISOLATED_SUBINTERPRETERS
    macro is defined).
    
    _PyUnicode_ClearInterned() now uses PyDict_Next() to no longer
    allocate memory, to ensure that the interned dictionary is cleared.
    vstinner committed Dec 26, 2020
  6. bpo-42694: Prevent creating _curses_panel.panel (GH-23948)

    Fix regression introduced in
    commit 1baf030: restore removed code
    to prevent creating a _curses_panel.panel instance directly.
    vstinner committed Dec 26, 2020
  7. bpo-42745: Make the type cache per-interpreter (GH-23947)

    Make the type attribute lookup cache per-interpreter.
    
    Add private _PyType_InitCache() function, called by PyInterpreterState_New().
    
    Continue to share next_version_tag between interpreters, since static
    types are still shared by interpreters.
    
    Remove MCACHE macro: the cache is no longer disabled if the
    EXPERIMENTAL_ISOLATED_SUBINTERPRETERS macro is defined.
    vstinner committed Dec 26, 2020
  8. Add convolve() to the itertools recipes (GH-23928)

    rhettinger committed Dec 26, 2020

Commits on Dec 25, 2020

  1. bpo-39465: Fix _PyUnicode_FromId() for subinterpreters (GH-20058)

    Make _PyUnicode_FromId() function compatible with subinterpreters.
    Each interpreter now has an array of identifier objects (interned
    strings decoded from UTF-8).
    
    * Add PyInterpreterState.unicode.identifiers: array of identifiers
      objects.
    * Add _PyRuntimeState.unicode_ids used to allocate unique indexes
      to _Py_Identifier.
    * Rewrite the _Py_Identifier structure.
    
    Microbenchmark on _PyUnicode_FromId(&PyId_a) with _Py_IDENTIFIER(a):
    
    [ref] 2.42 ns +- 0.00 ns -> [atomic] 3.39 ns +- 0.00 ns: 1.40x slower
    
    This change adds 1 ns per _PyUnicode_FromId() call in average.
    vstinner committed Dec 25, 2020
  2. Sync what's new in 3.9 with 3.9 branch (GH-23943)

    Fidget-Spinner committed Dec 25, 2020
  3. Rename Tkinter tests for widget options (GH-23944)

    Every test for widget option starts now with "test_configure_"
    to distinguish it from tests for widget commands.
    serhiy-storchaka committed Dec 25, 2020
  4. bpo-42721: Improve using simple dialogs without root window (GH-23897)

    When simple query dialogs (tkinter.simpledialog), message boxes
    (tkinter.messagebox) or color choose dialog (tkinter.colorchooser)
    are created without arguments master and parent, and the default
    root window is not yet created, a new temporary hidden root window
    will be created automatically. It will not be set as the default root
    window and will be destroyed right after closing the dialog window.
    It will help to use these simple dialog windows in programs which do
    not need other GUI.
    
    Previously, message boxes and color chooser created the blank root
    window and left it after closing the dialog window, and query dialogs
    just raised an exception.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    serhiy-storchaka and terryjreedy committed Dec 25, 2020
  5. bpo-28964: add line number of node (if available) to ast.literal_eval…

    … error messages (GH-23677)
    iritkatriel committed Dec 25, 2020
  6. bpo-15303: Support widgets with boolean value False in Tkinter (GH-23904

    )
    
    Use `widget is None` instead of checking the boolean value of a widget.
    serhiy-storchaka committed Dec 25, 2020
  7. bpo-42734: Fix crasher bogus_code_obj.py (GH-23939)

    It did not work because the signature of code object constructor
    was changed. Also, it used old format of bytecode (pre-wordcode).
    serhiy-storchaka committed Dec 25, 2020
  8. bpo-29076: Add fish support to macOS installer (GH-23302)

    erlend-aasland committed Dec 25, 2020
  9. bpo-42388: Fix subprocess.check_output input=None when text=True (GH-…

    …23467)
    
    When the modern text= spelling of the universal_newlines= parameter was added
    for Python 3.7, check_output's special case around input=None was overlooked.
    So it behaved differently with universal_newlines=True vs text=True.  This
    reconciles the behavior to be consistent and adds a test to guarantee it.
    
    Also clarifies the existing check_output documentation.
    
    Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
    gpshead and izbyshev committed Dec 25, 2020
  10. bpo-42727: Fix the NEWS entry .rst (GH-23932)

    It was causing CI failures.  the offending file came from #23917
    
    ```
    python3 tools/rstlint.py ../Misc/NEWS.d/next/
    [2] ../Misc/NEWS.d/next/Library/2020-12-23-19-43-06.bpo-42727.WH3ODh.rst:1: default role used
    [2] ../Misc/NEWS.d/next/Library/2020-12-23-19-43-06.bpo-42727.WH3ODh.rst:2: default role used
    2 problems with severity 2 found.
    Makefile:204: recipe for target 'check' failed
    ```
    gpshead committed Dec 25, 2020
  11. bpo-42727: [Enum] use super() and include **kwds (GH-23927)

    for multiple inheritance support:
    
    use super().new
    pass **kwds to super().new
    ethanfurman committed Dec 25, 2020

Commits on Dec 24, 2020

  1. bpo-42685: Improve placing of simple query windows. (GH-23856)

    * If parent is specified and mapped, the query widget is
      centered at the center of parent. Its position and size
      can be corrected so that it fits in the virtual root window.
    * Otherwise it is centered at the center of the screen.
    serhiy-storchaka committed Dec 24, 2020
  2. [Enum] EnumMeta.__prepare__ now accepts **kwds (#23917)

    ethanfurman committed Dec 24, 2020
  3. bpo-36876: [c-analyzer tool] Add a "capi" subcommand to the c-analyze…

    …r tool. (gh-23918)
    
    This will help identify which C-API items will need to be updated for subinterpreter support.
    
    https://bugs.python.org/issue36876
    ericsnowcurrently committed Dec 24, 2020
  4. closes bpo-42726: gdb libpython: InstanceProxy support for py3 (GH-23912

    )
    
    On Fedora 31 gdb is using python 3.7.9, calling `proxyval` on an instance with a dictionary fails because of the `dict.iteritems` usage. This PR changes the code to be compatible with py2 and py3.
    
    This changed seemed small enough to not need an issue and news blurb, if one is required please let me know.
    
    Automerge-Triggered-By: GH:benjaminp
    hackaugusto committed Dec 24, 2020
  5. GH: Add isidentical to the CODEOWNERS (GH-23923)

    isidentical committed Dec 24, 2020
  6. bpo-42195: Override _CallableGenericAlias's __getitem__ (GH-23915)

    Added `__getitem__` for `_CallableGenericAlias` so that it returns a subclass (itself) of `types.GenericAlias` rather than the default behavior of returning a plain `types.GenericAlias`. This fixes `repr` issues occuring after `TypeVar` substitution arising from the previous behavior.
    Fidget-Spinner committed Dec 24, 2020

Commits on Dec 23, 2020

  1. bpo-41960: Add globalns and localns parameters to inspect.signature a…

    …nd Signature.from_callable (GH-22583)
    isidentical committed Dec 23, 2020
  2. bpo-25246: Optimize deque.remove() (GH-23898)

    rhettinger committed Dec 23, 2020
  3. bpo-32381: pymain_run_command() uses PyCF_IGNORE_COOKIE (GH-23724)

    The coding cookie (ex: "# coding: latin1") is now ignored in the
    command passed to the -c command line option.
    
    Since pymain_run_command() uses UTF-8, pass PyCF_IGNORE_COOKIE
    compiler flag to the parser.
    
    pymain_run_python() no longer propages compiler flags between
    function calls.
    vstinner committed Dec 23, 2020
Older
You can’t perform that action at this time.