Skip to content
Permalink
master

Commits on Oct 11, 2020

  1. bpo-41993: Fix possible issues in remove_module() (GH-22631)

    * PyMapping_HasKey() is not safe because it silences all exceptions and can return incorrect result.
    * Informative exceptions from PyMapping_DelItem() are overridden with RuntimeError and
      the original exception raised before calling remove_module() is lost.
    * There is a race condition between PyMapping_HasKey() and PyMapping_DelItem().
    serhiy-storchaka committed Oct 11, 2020
  2. bpo-42002: Clean up initialization of the sys module. (GH-22642)

    Makes the code clearer and make errors handling more correct.
    serhiy-storchaka committed Oct 11, 2020
  3. Fix typo in typing.rst (GH-22625)

    abdnh committed Oct 11, 2020

Commits on Oct 10, 2020

  1. bpo-41991: Remove _PyObject_HasAttrId (GH-22629)

    It can silence arbitrary exceptions.
    serhiy-storchaka committed Oct 10, 2020
  2. bpo-42000: Cleanup the AST related C-code (GH-22641)

    - Use the proper asdl sequence when creating empty arguments
    - Remove reduntant casts (thanks to new typed asdl_sequences)
    - Remove MarshalPrototypeVisitor and some utilities from asdl generator
    - Fix the header of `Python/ast.c` (kept from pgen times)
    
    Automerge-Triggered-By: @pablogsal
    isidentical committed Oct 10, 2020
  3. bpo-41986: Add Py_FileSystemDefaultEncodeErrors and Py_UTF8Mode back …

    …to limited API (GH-22621)
    serhiy-storchaka committed Oct 10, 2020
  4. Fix incorrect parameter name (GH-22613)

    Automerge-Triggered-By: @Mariatta
    xyb committed Oct 10, 2020
  5. bpo-41756: Add PyIter_Send function (#22443)

    vladima committed Oct 10, 2020

Commits on Oct 9, 2020

  1. bpo-41985: Add _PyLong_FileDescriptor_Converter and AC converter for …

    …"fildes". (GH-22620)
    serhiy-storchaka committed Oct 9, 2020
  2. bpo-39481: Fix duplicate SimpleQueue type in test_genericalias.py (GH…

    …-22619)
    
    There are two different `SimpleQueue` types imported (from `multiprocessing.queues` and `queue`) in `Lib/test/test_genericalias.py`, the second one shadowing the first one, making the first one not actually tested. Fix by using different names.
    
    Automerge-Triggered-By: @gvanrossum
    gousaiyang committed Oct 9, 2020
  3. bpo-41974: Remove complex.__float__, complex.__floordiv__, etc (GH-22593

    )
    
    Remove complex special methods __int__, __float__, __floordiv__,
    __mod__, __divmod__, __rfloordiv__, __rmod__ and __rdivmod__
    which always raised a TypeError.
    serhiy-storchaka committed Oct 9, 2020
  4. bpo-41979: Accept star-unpacking on with-item targets (GH-22611)

    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
    isidentical and pablogsal committed Oct 9, 2020
  5. Updated README for python 3.10 (GH-22605)

    Updated python version and link to the release schedule
    Nishit-Dua committed Oct 9, 2020

Commits on Oct 8, 2020

  1. bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when u…

    …sing gcc>9 (GH-22598)
    pablogsal committed Oct 8, 2020
  2. bpo-41306: Allow scale value to not be rounded (GH-21715)

    This fixes the test failure with Tk 6.8.10 which is caused by changes to how Tk rounds the `from`, `to` and `tickinterval` arguments. This PR uses `noconv` if the patchlevel is greater than or equal to 8.6.10 (credit to Serhiy for this idea as it is much simpler than what I previously proposed).
    
    Going into more detail for those who want it, the Tk change was made in [commit 591f68c](tcltk/tk@591f68c) and means that the arguments listed above are rounded relative to the value of `from`. However, when rounding the `from` argument ([line 623](https://github.com/tcltk/tk/blob/591f68cb382525b72664c6fecaab87742b6cc87a/generic/tkScale.c#L623)), it is rounded relative to itself (i.e. rounding `0`) and therefore the assigned value for `from` is always what is given (no matter what values of `from` and `resolution`).
    
    Automerge-Triggered-By: @pablogsal
    E-Paine committed Oct 8, 2020
  3. bpo-41970: Avoid test failure in test_lib2to3 if the module is alread…

    …y imported (GH-22595)
    
    …
    
    Automerge-Triggered-By: @pablogsal
    pablogsal committed Oct 8, 2020
  4. bpo-41376: Fix the documentation of `site.getusersitepackages()` (GH-…

    …21602)
    
    `site.getusersitepackages()` returns the location of the user-specific site-packages directory
    even when the user-specific site-packages is disabled.
    
    ```
    $ python -s -m site
    sys.path = [
        '/home/user/conda/lib/python37.zip',
        '/home/user/conda/lib/python3.7',
        '/home/user/conda/lib/python3.7/lib-dynload',
        '/home/user/conda/lib/python3.7/site-packages',
    ]
    USER_BASE: '/home/user/.local' (exists)
    USER_SITE: '/home/user/.local/lib/python3.7/site-packages' (doesn't exist)
    ENABLE_USER_SITE: False
    ```
    
    It was not practical to prevent the function from returning None if user-specific site-packages are disabled, since there are other uses of the function which are relying on this behaviour (e.g. `python -m site`).
    pelson committed Oct 8, 2020

Commits on Oct 7, 2020

  1. Revert "bpo-26680: Incorporate is_integer in all built-in and standar…

    …d library numeric types (GH-6121)" (GH-22584)
    
    This reverts commit 58a7da9.
    rhettinger committed Oct 7, 2020
  2. bpo-41923: PEP 613: Add TypeAlias to typing module (#22532)

    This special marker annotation is intended to help in distinguishing
    proper PEP 484-compliant type aliases from regular top-level variable
    assignments.
    east825 committed Oct 7, 2020
  3. Fix comment about PyObject_IsTrue. (GH-22343)

    The `for` statement doesn't use a condition and this function, the `while` statement does.
    pochmann committed Oct 7, 2020

Commits on Oct 6, 2020

  1. bpo-38605: Make 'from __future__ import annotations' the default (GH-…

    …20434)
    
    The hard part was making all the tests pass; there are some subtle issues here, because apparently the future import wasn't tested very thoroughly in previous Python versions.
    
    For example, `inspect.signature()` returned type objects normally (except for forward references), but strings with the future import. We changed it to try and return type objects by calling `typing.get_type_hints()`, but fall back on returning strings if that function fails (which it may do if there are future references in the annotations that require passing in a specific namespace to resolve).
    isidentical committed Oct 6, 2020
  2. bpo-41905: Add abc.update_abstractmethods() (GH-22485)

    This function recomputes `cls.__abstractmethods__`.
    Also update `@dataclass` to use it.
    bentheiii committed Oct 6, 2020
  3. bpo-41944: No longer call eval() on content received via HTTP in the …

    …UnicodeNames tests (GH-22575)
    
    Similarly to GH-22566, those tests called eval() on content received via
    HTTP in test_named_sequences_full. This likely isn't exploitable because
    unicodedata.lookup(seqname) is called before self.checkletter(seqname,
    None) - thus any string which isn't a valid unicode character name
    wouldn't ever reach the checkletter method.
    
    Still, it's probably better to be safe than sorry.
    The-Compiler committed Oct 6, 2020
  4. bpo-41944: No longer call eval() on content received via HTTP in the …

    …CJK codec tests (GH-22566)
    serhiy-storchaka committed Oct 6, 2020

Commits on Oct 5, 2020

  1. Post 3.10.0a1

    pablogsal committed Oct 5, 2020
  2. Python 3.10.0a1

    pablogsal committed Oct 5, 2020
  3. bpo-41584: clarify when the reflected method of a binary arithemtic o…

    …perator is called (#22505)
    brettcannon committed Oct 5, 2020
  4. bpo-41939: Fix test_site.test_license_exists_at_url() (#22559)

    Call urllib.request.urlcleanup() to reset the global
    urllib.request._opener.
    vstinner committed Oct 5, 2020
  5. bpo-41774: Tweak new programming FAQ entry (GH-22562)

    Remove mention of space in "remove multiple items from list".
    terryjreedy committed Oct 5, 2020
Older
You can’t perform that action at this time.