Skip to content
Permalink
master

Commits on Jan 29, 2021

  1. bpo-43008: Add 'Patch by Ken Hilton' (GH-24370)

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

    Found it while translating it to french 🤷
    
    Automerge-Triggered-By: GH:JulienPalard
    Seluj78 committed Jan 29, 2021
  3. 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
  4. 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

  1. bpo-42979: Enhance abstract.c assertions checking slot result (GH-24352)

    * bpo-42979: Enhance abstract.c assertions checking slot result
    
    Add _Py_CheckSlotResult() function which fails with a fatal error if
    a slot function succeeded with an exception set or failed with no
    exception set: write the slot name, the type name and the current
    exception (if an exception is set).
    vstinner committed Jan 27, 2021
  2. bpo-42979: _zoneinfo exec function checks for PyDateTime_IMPORT failu…

    …re (GH-24333)
    
    Importing datetime can fail.
    shihai1991 committed Jan 27, 2021
  3. bpo-43031: Set a timeout when running tests in PGO build (GH-24339)

    Pass --timeout=$(TESTTIMEOUT) option to the default profile task
    "./python -m test --pgo" command.
    vstinner committed Jan 27, 2021

Commits on Jan 26, 2021

  1. bpo-43008: Make IDLE respect sys.excepthook (GH-24302)

    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    Kenny2github and terryjreedy committed Jan 26, 2021
  2. bpo-38250: [Enum] only include .rst test if file available (GH-24342)

    * [Enum] only include .rst test if file available
    
    In order to ensure the ReST documentation is up to date for Enum,
    use doctest to check it -- but only if the .rst files have not
    been stripped.
    ethanfurman committed Jan 26, 2021
  3. bpo-33387: update documentation for exception handling opcode changes (

    …GH-24334)
    
    * bpo-33387: remove obsolete comment
    
    * bpo-33387: update SETUP_WITH opcode documentation
    iritkatriel committed Jan 26, 2021

Commits on Jan 25, 2021

  1. Fix minor typo in the rest format in the enum docs (GH-24335)

    pablogsal committed Jan 25, 2021
  2. Document new parenthesized with statements (GH-24281)

    pablogsal committed Jan 25, 2021
  3. Typo in comment (GH-24199)

    Automerge-Triggered-By: GH:Mariatta
    borispopoff committed Jan 25, 2021
  4. bpo-38250: [Enum] single-bit flags are canonical (GH-24215)

    Flag members are now divided by one-bit verses multi-bit, with multi-bit being treated as aliases. Iterating over a flag only returns the contained single-bit flags.
    
    Iterating, repr(), and str() show members in definition order.
    
    When constructing combined-member flags, any extra integer values are either discarded (CONFORM), turned into ints (EJECT) or treated as errors (STRICT). Flag classes can specify which of those three behaviors is desired:
    
    >>> class Test(Flag, boundary=CONFORM):
    ...     ONE = 1
    ...     TWO = 2
    ...
    >>> Test(5)
    <Test.ONE: 1>
    
    Besides the three above behaviors, there is also KEEP, which should not be used unless necessary -- for example, _convert_ specifies KEEP as there are flag sets in the stdlib that are incomplete and/or inconsistent (e.g. ssl.Options). KEEP will, as the name suggests, keep all bits; however, iterating over a flag with extra bits will only return the canonical flags contained, not the extra bits.
    
    Iteration is now in member definition order.  If member definition order
    matches increasing value order, then a more efficient method of flag
    decomposition is used; otherwise, sort() is called on the results of
    that method to get definition order.
    
    
    ``re`` module:
    
    repr() has been modified to support as closely as possible its previous
    output; the big difference is that inverted flags cannot be output as
    before because the inversion operation now always returns the comparable
    positive result; i.e.
    
       re.A|re.I|re.M|re.S is ~(re.L|re.U|re.S|re.T|re.DEBUG)
    
    in both of the above terms, the ``value`` is 282.
    
    re's tests have been updated to reflect the modifications to repr().
    ethanfurman committed Jan 25, 2021
  5. bpo-42955: Rename module_names to sys.stdlib_module_names (GH-24332)

    * Rename _Py_module_names to _Py_stdlib_module_names.
    * Rename Python/module_names.h to Python/stdlib_module_names.h.
    vstinner committed Jan 25, 2021
  6. bpo-42383: pdb: do not fail to restart the target if the current dire…

    …ctory changed (#23412)
    
    This commit only adds tests and a news entry. The actual bug was fixed in the earlier commit.
    hexagonrecursion committed Jan 25, 2021
  7. bpo-42869: Avoid an HTTP redirection. (GH-24174)

    JulienPalard committed Jan 25, 2021
  8. bpo-42955: Fix sys.module_names doc (GH-24329)

    Replace versionchanged markup with versionadded.
    vstinner committed Jan 25, 2021
  9. bpo-42955: Add sys.modules_names (GH-24238)

    Add sys.module_names, containing the list of the standard library
    module names.
    vstinner committed Jan 25, 2021
  10. bpo-43013: Fix old tkinter module names in idlelib (GH-24326)

    Lowercase 'tkColorChooser', 'tkFileDialog', 'tkSimpleDialog', and
    'tkMessageBox' and remove 'tk'.  Just lowercase 'tkFont' as 'font'
    is already used.  Adjust import.
    terryjreedy committed Jan 25, 2021
  11. bpo-27772: Make preceding width with 0 valid in string format. (GH-11270

    )
    
    Previously it was an error with confusing error message.
    serhiy-storchaka committed Jan 25, 2021

Commits on Jan 24, 2021

  1. bpo-43013: Update idlelib code to 3.x (GH-24315)

    Remove 9 remaining '(object)' occurrences in class headers in idlelib
    and 25 '()' occurrences in idlelib.idle_test class headers.
    terryjreedy committed Jan 24, 2021
  2. bpo-43014: Improve performance of tokenize.tokenize by 20-30%

    asottile committed Jan 24, 2021

Commits on Jan 23, 2021

Commits on Jan 22, 2021

  1. bpo-42996: Update a reference to PKCS #5 in hashlib docs to version 2…

    ….1 (GH-24289)
    
    RFC 8018 superseded RFC 8018.
    
    Automerge-Triggered-By: GH:tiran
    illia-v committed Jan 22, 2021
  2. bpo-40304: Correct type(name, bases, dict) doc (GH-19553)

    Co-authored-by: Éric Araujo <merwok@netwok.org>
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
    4 people committed Jan 22, 2021
  3. bpo-42384: pdb: correctly populate sys.path[0] (GH-23338)

    Automerge-Triggered-By: GH:gvanrossum
    hexagonrecursion committed Jan 22, 2021
  4. bpo-31904: setup.py: fix cross-compilation on VxWorks (GH-24191)

    Add library search path by wr-cc in add_cross_compiling_paths().
    pxinwr committed Jan 22, 2021
Older