Skip to content
Permalink
master

Commits on Feb 2, 2021

  1. bpo-43108: Fix a reference leak in the curses module (GH-24420)

    pablogsal committed Feb 2, 2021
  2. bpo-41149: Fix a bug in threading that causes fals-y threads callable…

    …s to fail to start. (GH-21201)
    BarneyStratford committed Feb 2, 2021
  3. bpo-42997: Improve error message for missing : before suites (GH-24292)

    * Add to the peg generator a new directive ('&&') that allows to expect
      a token and hard fail the parsing if the token is not found. This
      allows to quickly emmit syntax errors for missing tokens.
    
    * Use the new grammar element to hard-fail if the ':' is missing before
      suites.
    pablogsal committed Feb 2, 2021
  4. Only eliminate jumps to successor block if jump is unconditional. (GH…

    …-24417)
    
    * Prevents elimination of the sole test of a value in statements like:
       if x or True: ...
    markshannon committed Feb 2, 2021

Commits on Feb 1, 2021

  1. bpo-41748: Handles unquoted attributes with commas (#24072)

    * bpo-41748: Adds tests for unquoted attributes with comma
    
    * bpo-41748: Handles unquoted attributes with comma
    
    * bpo-41748: Addresses review comments
    
    * bpo-41748: Addresses review comments
    
    * Adds more test cases
    * Simplifies the regex for handling spaces
    
    * bpo-41748: Moves attributes tests under the right class
    
    * bpo-41748: Addresses review about duplicate attributes
    
    * bpo-41748: Adds NEWS.d entry for this patch
    karlcow committed Feb 1, 2021
  2. bpo-38307: Add end_lineno attribute to pyclbr Objects (GH-24348)

    For back-compatibility, make the new constructor parameter for public classes Function and Class
    keyword-only with a default of None.
    
    Co-authored-by: Aviral Srivastava <aviralsrivastava@Avirals-MacBook-Air.local
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    kebab-mai-haddi and terryjreedy committed Feb 1, 2021
  3. bpo-42834: Fix _json internal caches for subinterpreters (GH-24121)

    Make internal caches of the _json extension module
    compatible with subinterpreters.
    Fidget-Spinner committed Feb 1, 2021
  4. Fix typo in Lib/trace.py (GH-24309)

    Jongy committed Feb 1, 2021
  5. bpo-42990: Further refactoring of PyEval_ functions. (GH-24368)

    * Further refactoring of PyEval_EvalCode and friends. Break into make-frame, and eval-frame parts.
    
    * Simplify function vector call using new _PyEval_Vector.
    
    * Remove unused internal functions: _PyEval_EvalCodeWithName and _PyEval_EvalCode.
    
    * Don't use legacy function PyEval_EvalCodeEx.
    markshannon committed Feb 1, 2021
  6. bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is …

    …a string (GH-24341)
    
    * bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
    ronaldoussoren committed Feb 1, 2021

Commits on Jan 31, 2021

  1. bpo-43017: Improve error message for unparenthesised tuples in compre…

    …hensions (GH24314)
    pablogsal committed Jan 31, 2021
  2. bpo-42986: Fix parser crash when reporting syntax errors in f-string …

    …with newlines (GH-24279)
    pablogsal committed Jan 31, 2021
  3. bpo-41604: Don't decrement the reference count of the previous user_p…

    …tr when set_panel_usertpr fails (GH-21933)
    madebr committed Jan 31, 2021
  4. bpo-43083: Fix error handling in _sqlite3 (GH-24395)

    serhiy-storchaka committed Jan 31, 2021
  5. bpo-43016: Rewrite tests for curses (GH-24312)

    serhiy-storchaka committed Jan 31, 2021
  6. bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed…

    … wchar_t (GH-24350)
    serhiy-storchaka committed Jan 31, 2021
  7. Doc: errors tutorial improvements (GH-16269)

    Improvements:
    
    - Improvements in how try clause works section
      This suggestion is because the execution continues after *except*, not after *try* but before *except*. I guess this form more clear.
    
    - Surrounding some keywords with \*...\*
      For uniformity the highlighted terms  
    
    - Adjust the number of chars per line to 80
    adorilson committed Jan 31, 2021

Commits on Jan 30, 2021

  1. bpo-43077: Update bundled pip to 21.0.1 and setuptools to 52.0.0 (GH-…

    …24386)
    
    Update bundled pip to 21.0.1 and setuptools to 52.0.0
    pfmoore committed Jan 30, 2021
  2. bpo-43047: logging.config formatters documentation update (GH-24358)

    The documentation for some parts of the logging.config formatters has
    fallen behind the code.  For example, the dictionary-schema section
    does not list the "class" attribute, however it is discussed in the
    file/ini discussion; and neither references the style argument which
    has been added.
    
    This modifies the dictionary-schema formatters documentation to list
    the keys available and overall makes it clearer these are passed to
    create a logging.Formatter object.
    
    The logging.Formatter documentation describes the default values of
    format/datefmt and the various formatting options.  Since we have now
    more clearly described how the configuration is created via this type
    of object, we remove the discussion in this document to avoid
    duplication and rely on users reading the referenced logging.Formatter
    documenation directly for such details.
    
    Instead of duplicating the discussion for the two config types, the
    file/ini section is modified to link back to the dictionary-schema
    discussion, making it clear the same arguments are accepted.
    
    Automerge-Triggered-By: GH:vsajip
    ianw committed Jan 30, 2021
  3. bpo-38631: Replace compiler fatal errors with exceptions (GH-24369)

    * Replace Py_FatalError() calls with regular SystemError exceptions.
    * compiler_exit_scope() calls _PyErr_WriteUnraisableMsg() to log the
      PySequence_DelItem() failure.
    * compiler_unit_check() uses _PyMem_IsPtrFreed().
    * compiler_make_closure(): remove "(reftype == FREE)" comment since
      reftype can also be LOCAL or GLOBAL_EXPLICIT.
    vstinner committed Jan 30, 2021

Commits on Jan 29, 2021

  1. bpo-42323: Fix math.nextafter() on AIX (GH-24381)

    math_nextafter_impl() must return a Python object, not a C double.
    vstinner committed Jan 29, 2021
  2. Fixing typos in turtle.rst (GH-24376)

    Automerge-Triggered-By: GH:JulienPalard
    Seluj78 committed Jan 29, 2021
  3. bpo-43008: Add 'Patch by Ken Hilton' (GH-24370)

    terryjreedy committed Jan 29, 2021
  4. Fixed typo in turtle.rst (GH-24371)

    Found it while translating it to french 🤷
    
    Automerge-Triggered-By: GH:JulienPalard
    Seluj78 committed Jan 29, 2021
  5. bpo-42979: Use _Py_CheckSlotResult() to check slots result (GH-24356)

    When Python is built in debug mode (with C assertions), calling a
    type slot like sq_length (__len__() in Python) now fails with a fatal
    error if the slot succeeded with an exception set, or failed with no
    exception set. The error message contains the slot, the type name,
    and the current exception (if an exception is set).
    
    * Check the result of all slots using _Py_CheckSlotResult().
    * No longer pass op_name to ternary_op() in release mode.
    * Replace operator with dunder Python method name in error messages.
      For example, replace "*" with "__mul__".
    * Fix compiler_exit_scope() when an exception is set.
    * Fix bytearray.extend() when an exception is set: don't call
      bytearray_setslice() with an exception set.
    vstinner committed Jan 29, 2021
  6. bpo-42990: Introduce 'frame constructor' struct to simplify API for P…

    …yEval_CodeEval and friends (GH-24298)
    
    * Introduce 'frame constructor' to simplify API for frame creation
    
    * Embed struct using a macro to conform to PEP 7
    markshannon committed Jan 29, 2021

Commits on Jan 28, 2021

  1. bpo-23544: Disable IDLE Stack Viewer when running user code (GH-17163)

    Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    ZackerySpytz and terryjreedy committed Jan 28, 2021

Commits on Jan 27, 2021

Older