Skip to content
Permalink
main
Switch branches/tags

Commits on Aug 15, 2022

  1. gh-78143: IDLE - fix settings dialog page label. (#96009)

    '/Tab' should have been removed from the font page label
    when the tab-spaces setting was moved to the Windows page.
    terryjreedy committed Aug 15, 2022
  2. gh-95231: Disable md5 & crypt modules if FIPS is enabled (GH-94742)

    If kernel fips is enabled, we get permission error upon doing
    `import crypt`. So, if kernel fips is enabled, disable the
    unallowed hashing methods.
    
    Python 3.9.1 (default, May 10 2022, 11:36:26)
    [GCC 10.2.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import crypt
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3.9/crypt.py", line 117, in <module>
        _add_method('MD5', '1', 8, 34)
      File "/usr/lib/python3.9/crypt.py", line 94, in _add_method
        result = crypt('', salt)
      File "/usr/lib/python3.9/crypt.py", line 82, in crypt
        return _crypt.crypt(word, salt)
    PermissionError: [Errno 1] Operation not permitted
    
    Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
    sshedi committed Aug 15, 2022
  3. GH-95707: Fix uses of Py_TPFLAGS_MANAGED_DICT (GH-95854)

    * Make sure that tp_dictoffset is correct with Py_TPFLAGS_MANAGED_DICT is set.
    
    * Avoid traversing managed dict twice when subclassing class with Py_TPFLAGS_MANAGED_DICT set.
    markshannon committed Aug 15, 2022

Commits on Aug 13, 2022

  1. gh-95853: Add script to automate WASM build (GH-95828)

    Automate WASM build with a new Python script. The script provides
    several build profiles with configure flags for Emscripten flavors
    and WASI. The script can detect and use Emscripten SDK and WASI SDK from
    default locations or env vars.
    
    ``configure`` now detects Node arguments and creates HOSTRUNNER
    arguments for Node 16. It also sets correct arguments for
    ``wasm64-emscripten``.
    
    Co-authored-by: Brett Cannon <brett@python.org>
    tiran and brettcannon committed Aug 13, 2022
  2. gh-89313: Add hashlib.file_digest to whatsnew 3.11 (GH-95965)

    Automerge-Triggered-By: GH:pablogsal
    tiran committed Aug 13, 2022
  3. gh-94439: typing docs: Add minimum version to __required_keys__ and…

    … `__optional_keys__` (#95373)
    howiezhao committed Aug 13, 2022

Commits on Aug 12, 2022

  1. gh-94909: fix joining of absolute and relative Windows paths in pathl…

    …ib (GH-95450)
    
    Have pathlib use `os.path.join()` to join arguments to the `PurePath` initialiser, which fixes a minor bug when handling relative paths with drives.
    
    Previously:
    
    ```python
    >>> from pathlib import PureWindowsPath
    >>> a = 'C:/a/b'
    >>> b = 'C:x/y'
    >>> PureWindowsPath(a, b)
    PureWindowsPath('C:x/y')
    ```
    
    Now:
    
    ```python
    >>> PureWindowsPath(a, b)
    PureWindowsPath('C:/a/b/x/y')
    ```
    barneygale committed Aug 12, 2022
  2. gh-90300: [docs] Add whatsnew entry for new --help output (GH-95856) (G…

    …H-95928)
    
    Co-authored-by: Éric <merwok@netwok.org>
    ambv and merwok committed Aug 12, 2022
  3. gh-95922: compiler's eliminate_empty_basic_blocks ignores the last bl…

    …ock of the compilation unit (GH-95924)
    iritkatriel committed Aug 12, 2022

Commits on Aug 11, 2022

  1. gh-95273: Improve sqlite3.complete_statement docs (#95840)

    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
    3 people committed Aug 11, 2022
  2. gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generate…

    …d Code (gh-95860)
    
    We only statically initialize for core code and builtin modules.  Extension modules still create
    the tuple at runtime.  We'll solve that part of interpreter isolation separately.
    
    This change includes generated code. The non-generated changes are in:
    
    * Tools/clinic/clinic.py
    * Python/getargs.c
    * Include/cpython/modsupport.h
    * Makefile.pre.in (re-generate global strings after running clinic)
    * very minor tweaks to Modules/_codecsmodule.c and Python/Python-tokenize.c
    
    All other changes are generated code (clinic, global strings).
    ericsnowcurrently committed Aug 11, 2022
  3. gh-95841: IDLE - Revise Windows local doc url (#95845)

    #91242 replaced the Windows chm help file with a copy
    of the html docs.  This PR replaces the IDLE code that
    fetches the Windows local help url passed to os.startfile.
    Co-authored-by: Steve Dower
    terryjreedy committed Aug 11, 2022
  4. gh-84910: Change 'IDLE Help' to 'IDLE Doc' (#95873)

    'IDLE Help' was a plain text file.  It was superceded years ago
    by a copy of the much more complete html doc.  .
    terryjreedy committed Aug 11, 2022
  5. gh-87092: compiler's codegen stage uses int jump target labels, and t…

    …he target pointer is only calculated just before optimization stage (GH-95655)
    iritkatriel committed Aug 11, 2022
Older