Skip to content
Permalink
master

Commits on Dec 11, 2020

  1. bpo-41879: Doc: Fix description of async for statement (GH-23548)

    Fix the wording in the documentation of `async for` to correctly describe asynchronous iterables.  This fix is relevant for version 3.7 onward.
    nickgaya committed Dec 11, 2020

Commits on Dec 10, 2020

  1. bpo-34750: [Enum] add `_EnumDict.update()` support (GH-23725)

    This allows easier Enum construction in unusual cases, such as including dynamic member definitions into a class definition:
    
    # created dynamically
    foo_defines = {'FOO_CAT': 'aloof', 'BAR_DOG': 'friendly', 'FOO_HORSE': 'big'}
    
    class Foo(Enum):
        vars().update({
                k: v
                for k, v in foo_defines.items()
                if k.startswith('FOO_')
                })
        def upper(self):
            # example method
            return self.value.upper()
    ethanfurman committed Dec 10, 2020
  2. bpo-42385: [Enum] add `_generate_next_value_` to StrEnum (GH-23735)

    The default for auto() is to return an integer, which doesn't work for `StrEnum`.  The new `_generate_next_value_` for `StrEnum` returns the member name, lower cased.
    ethanfurman committed Dec 10, 2020
  3. bpo-41877: Improve docs for assert misspellings check in mock (GH-23729)

    This is a follow-up to
    4662fa9.
    That original commit expanded guards against misspelling assertions on
    mocks. This follow-up updates the documentation and improves the error
    message by pointing out the potential cause and solution.
    
    Automerge-Triggered-By: GH:gpshead
    vabr-g committed Dec 10, 2020
  4. bpo-42591: Export missing Py_FrozenMain() symbol (GH-23730)

    Export the Py_FrozenMain() function: fix a Python 3.9.0 regression.
    Python 3.9 uses -fvisibility=hidden and the function was not exported
    explicitly and so not exported.
    
    Add also Py_FrozenMain to the stable ABI on Windows.
    vstinner committed Dec 10, 2020
  5. bpo-42517: [Enum] do not convert private names into members (GH-23722)

    private names, such as `_Color__hue` and `_Color__hue_` are now normal attributes, and do not become members nor raise exceptions
    ethanfurman committed Dec 10, 2020
  6. bpo-42567: [Enum] call __init_subclass__ after members are added (GH-…

    …23714)
    
    When creating an Enum, type.__new__ calls __init_subclass__, but at that point the members have not been added.
    
    This patch suppresses the initial call, then manually calls the ancestor __init_subclass__ before returning the new Enum class.
    ethanfurman committed Dec 10, 2020

Commits on Dec 9, 2020

  1. [doc] Document logging.basicConfig default format (GH-23710)

    Automerge-Triggered-By: GH:vsajip
    andresdelfino committed Dec 9, 2020
  2. bpo-31904: Define THREAD_STACK_SIZE for VxWorks (GH-23718)

    pxinwr committed Dec 9, 2020
  3. bpo-32381: Add _PyRun_AnyFileObject() (GH-23723)

    pymain_run_file() no longer encodes the filename: pass the filename
    as an object to the new _PyRun_AnyFileObject() function.
    
    Add new private functions:
    
    * _PyRun_AnyFileObject()
    * _PyRun_InteractiveLoopObject()
    * _Py_FdIsInteractive()
    vstinner committed Dec 9, 2020
  4. bpo-32381: Remove unused _Py_fopen() function (GH-23711)

    Remove the private _Py_fopen() function which is no longer needed.
    Use _Py_wfopen() or _Py_fopen_obj() instead.
    vstinner committed Dec 9, 2020

Commits on Dec 8, 2020

  1. bpo-32381: Add _PyRun_SimpleFileObject() (GH-23709)

    pymain_run_startup() now pass the filename as a Python object to
    _PyRun_SimpleFileObject().
    vstinner committed Dec 8, 2020
  2. bpo-41439: Skip test_ssl and test_uuid tests if fork() is not support…

    …ed (GH-21684)
    pxinwr committed Dec 8, 2020
  3. bpo-41443: Add more attribute checking in test_posix (GH-21688)

    pxinwr committed Dec 8, 2020
  4. bpo-35134: Add Include/cpython/pythonrun.h file (GH-23701)

    Py_CompileString() is now always declared as a function by
    Include/pythonrun.h. It is overriden with a macro in
    Include/cpython/pythonrun.h.
    vstinner committed Dec 8, 2020
  5. bpo-32381: Rewrite PyErr_ProgramText() (GH-23700)

    PyErr_ProgramText() now calls PyErr_ProgramTextObject().
    vstinner committed Dec 8, 2020
  6. [Enum] reformat and add doc strings (GH-23705)

    ethanfurman committed Dec 8, 2020
  7. bpo-42111: Make the xxlimited module an example of best extension mod…

    …ule practices (GH-23226)
    
    - Copy existing xxlimited to xxlimited53 (named for the limited API version it uses)
    - Build both modules, both in debug and release
    - Test both modules
    encukou committed Dec 8, 2020
  8. bpo-41910: move news entry (GH-23695)

    terryjreedy committed Dec 8, 2020
  9. bpo-42599: Remove useless PyModule_GetWarningsModule() (GH-23691)

    Removed PyModule_GetWarningsModule() which is useless due to 
    the _warnings module was converted to a builtin module in 2.6.
    shihai1991 committed Dec 8, 2020
  10. bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642)

    Fix encoding name when running a ".pyc" file on Windows:
    PyRun_SimpleFileExFlags() now uses the correct encoding to decode the
    filename.
    
    * Add pyrun_file() subfunction.
    * Add pyrun_simple_file() subfunction.
    * PyRun_SimpleFileExFlags() now calls _Py_fopen_obj() rather than
      _Py_fopen().
    vstinner committed Dec 8, 2020
  11. Post 3.10.0a3

    pablogsal committed Dec 8, 2020
  12. Merge tag 'v3.10.0a3'

    Python 3.10.0a3
    pablogsal committed Dec 8, 2020

Commits on Dec 7, 2020

  1. bpo-42579: Make workaround for various versions of Sphinx more robust (

    …GH-23662)
    
    The solution in gh##13236 is too strict because it
    effectively requires the use of Sphinx >= 2.0. It is not too difficult to
    make the same solution more robust so it works with all normal versions
    of Sphinx.
    mcepl committed Dec 7, 2020
  2. Python 3.10.0a3

    pablogsal committed Dec 7, 2020
  3. bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to…

    … match distutils (GH-22088)
    mattip committed Dec 7, 2020
  4. bpo-30459: Cast the result of PyCell_SET to void (GH-23654)

    vstinner committed Dec 7, 2020
  5. Update macos installer ReadMe for 3.10.0a3 (GH-23671)

    ned-deily committed Dec 7, 2020
  6. bpo-42508: Keep IDLE running on macOS (GH-23577)

    Remove obsolete workaround that prevented running files with
    shortcuts when using new universal2 installers built on macOS 11.
    Ignore buggy 2nd run_module_event call.
    terryjreedy committed Dec 7, 2020
  7. bpo-38843: Document behavior of default when the attribute is already…

    … set (GH-23653)
    rhettinger committed Dec 7, 2020
Older
You can’t perform that action at this time.