Skip to content
Permalink
master

Commits on Jan 19, 2021

  1. Add a clarification for the object-domain allocators regarding pointe…

    …r validity (GH-24253)
    pablogsal committed Jan 19, 2021
  2. bpo-41818: Close file descriptors in test_openpty (#GH-24119)

    When stdin is a TTY, the test added in commit c13d899
    is expected to fail. However, when it failed, it did not close
    its file descriptors. This is flagged by the refleak tests (but
    only when stdin is a TTY, which doesn't seem to be the case on CI).
    encukou committed Jan 19, 2021

Commits on Jan 18, 2021

  1. closes bpo-42938: Replace snprintf with Python unicode formatting in …

    …ctypes param reprs. (24239)
    benjaminp committed Jan 18, 2021
  2. bpo-36143: make regen-all now also runs regen-keyword (GH-24245)

    vstinner committed Jan 18, 2021
  3. bpo-42923: Dump extension modules on fatal error (GH-24207)

    The Py_FatalError() function and the faulthandler module now dump the
    list of extension modules on a fatal error.
    
    Add _Py_DumpExtensionModules() and _PyModule_IsExtension() internal
    functions.
    vstinner committed Jan 18, 2021
  4. bpo-42944 Fix Random.sample when counts is not None (GH-24235)

    jonanifranco committed Jan 18, 2021
  5. bpo-42923: Py_FatalError() avoids fprintf() (GH-24242)

    * Replace buffered fprintf() with unbuffered _Py_write_noraise()
      in Py_FatalError().
    * _Py_DumpHexadecimal() now accepts uintptr_t.
    vstinner committed Jan 18, 2021
  6. bpo-42923: Add Py_FatalError() test in test_capi (GH-24240)

    Move faulthandler._fatal_error() to _testcapi.fatal_error().
    vstinner committed Jan 18, 2021

Commits on Jan 15, 2021

  1. bpo-42931: randbytes missing from random.__all__ (GH-24219)

    sbalian committed Jan 15, 2021
  2. bpo-42877: add the 'compact' param to TracebackException's __init__ (#…

    …24179)
    
    Use it to reduce the time and memory taken up by several of traceback's module-level functions.
    iritkatriel committed Jan 15, 2021

Commits on Jan 14, 2021

  1. bpo-42827: Fix crash on SyntaxError in multiline expressions (GH-24140)

    When trying to extract the error line for the error message there
    are two distinct cases:
    
    1. The input comes from a file, which means that we can extract the
       error line by using `PyErr_ProgramTextObject` and which we already
       do.
    2. The input does not come from a file, at which point we need to get
       the source code from the tokenizer:
       * If the tokenizer's current line number is the same with the line
         of the error, we get the line from `tok->buf` and we're ready.
       * Else, we can extract the error line from the source code in the
         following two ways:
         * If the input comes from a string we have all the input
           in `tok->str` and we can extract the error line from it.
         * If the input comes from stdin, i.e. the interactive prompt, we
           do not have access to the previous line. That's why a new
           field `tok->stdin_content` is added which holds the whole input for the
           current (multiline) statement or expression. We can then extract the
           error line from `tok->stdin_content` like we do in the string case above.
    
    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
    lysnikolaou and pablogsal committed Jan 14, 2021
  2. Docs: Remove stray semicolon in init.rst (GH-23974)

    Removed stray semicolon which was causing the docs to render weirdly (it's the function right under the one [here](https://docs.python.org/3/c-api/init.html#c._PyInterpreterState_GetEvalFrameFunc)).
    Fidget-Spinner committed Jan 14, 2021
  3. bpo-39273: Expose BUTTON5_* constants in the curses module if availab…

    …le (GH-17996)
    ZackerySpytz committed Jan 14, 2021

Commits on Jan 13, 2021

  1. bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208)

    Before, using the * operator to repeat a bytearray would copy data from the start of
    the internal buffer (ob_bytes) and not from the start of the actual data (ob_start).
    TobiasHoll committed Jan 13, 2021
  2. Eliminate NOPs in extended blocks. (GH-24209)

    markshannon committed Jan 13, 2021
  3. bpo-42908: Mark cleanup code at end of try-except and with artificial (

    …#24202)
    
    * Mark bytecodes at end of try-except as artificial.
    
    * Make sure that the CFG is consistent throughout optimiization. 
    
    * Extend line-number propagation logic so that implicit returns after 'try-except' or 'with' have the correct line numbers.
    
    * Update importlib
    markshannon committed Jan 13, 2021
  4. bpo-42901: [Enum] move member creation to `__set_name__` (GH-24196)

    `type.__new__` calls `__set_name__` and `__init_subclass__`, which means
    that any work metaclasses do after calling `super().__new__()` will not
    be available to those two methods.  In particular, `Enum` classes that
    want to make use of `__init_subclass__` will not see any members.
    
    Almost all customization is therefore moved to before the
    `type.__new__()` call, including changing all members to a proto member
    descriptor with a `__set_name__` that will do the final conversion of a
    member to be an instance of the `Enum` class.
    ethanfurman committed Jan 13, 2021

Commits on Jan 12, 2021

  1. bpo-37324: Remove ABC aliases from collections (GH-23754)

    Remove deprecated aliases to Abstract Base Classes from the
    collections module.
    hugovk committed Jan 12, 2021
  2. bpo-42848: remove recursion from TracebackException (GH-24158)

    iritkatriel committed Jan 12, 2021
  3. bpo-42874: Remove grep -qE options for Solaris 10 compatibility (GH-2…

    …4200)
    
    According to [bpo-42874](), some versions of grep do not support the `-q` and `-E` options. Although both options are used elsewhere in the configure script, this particular bit of validation can be achieved without them,
    so there's no real harm in using a grep call with no flags.
    
    Would be good to get some people taking advantage of the `--with-tzpath` arguments in the wild to try this out.. Local testing seems to indicate that this does the same thing, but I don't know that we have any buildbots using this option. Maybe @pablogsal?
    
    [bpo-42874]():
    pganssle committed Jan 12, 2021
  4. bpo-42882: Add test_embed.test_unicode_id_init() (GH-24198)

    Test that _PyUnicode_FromId() works when Python is initialized
    multiples times.
    vstinner committed Jan 12, 2021
  5. bpo-42882: _PyRuntimeState_Init() leaves unicode next_index unchanged (

    …GH-24193)
    
    Fix the _PyUnicode_FromId() function (_Py_IDENTIFIER(var) API) when
    Py_Initialize() / Py_Finalize() is called multiple times:
    preserve _PyRuntime.unicode_ids.next_index value.
    
    Use _PyRuntimeState_INIT macro instead memset(0) to reset
    _PyRuntimeState members to zero.
    vstinner committed Jan 12, 2021
  6. bpo-42870: Document change in argparse help output. (GH-24190)

    hrnciar committed Jan 12, 2021

Commits on Jan 11, 2021

  1. Fix various ParamSpec errors in typing (GH-24176)

    1. ParamSpec -> TypeVar for ``typing.Concatenate``
    2. ParamSpec's call signature should align with its documentation.
    Noticed in GH-24169
    Fidget-Spinner committed Jan 11, 2021

Commits on Jan 10, 2021

  1. bpo-33065: Fix problem debugging user classes with __repr__ method (G…

    …H-24183)
    
    If __repr__ uses instance attributes, as normal, and one steps
    through the __init__ method, debugger may try to get repr before
    the instance attributes exist.  reprlib.repr handles the error.
    terryjreedy committed Jan 10, 2021

Commits on Jan 9, 2021

Commits on Jan 8, 2021

  1. bpo-42802: Remove distutils bdist_wininst command (GH-24043)

    The distutils bdist_wininst command deprecated in Python 3.8 has been
    removed. The distutils bidst_wheel command is now recommended to
    distribute binary packages on Windows.
    
    * Remove Lib/distutils/command/bdist_wininst.py
    * Remove PC/bdist_wininst/ project
    * Remove Lib/distutils/command/wininst-*.exe programs
    * Remove all references to bdist_wininst
    vstinner committed Jan 8, 2021
  2. Fix a typo in docs for typing.Concatenate (#24169)

    Return param spec should be R, not T
    jdahlin committed Jan 8, 2021
Older
You can’t perform that action at this time.