Skip to content
Permalink
master

Commits on Nov 6, 2020

  1. Minor grammar edits for the descriptor howto guide (GH-#23175)

    rhettinger committed Nov 6, 2020
  2. bpo-42179: Doc/tutorial: Remove mention of __cause__ (GH-23162)

    methane committed Nov 6, 2020

Commits on Nov 5, 2020

  1. bpo-26389: Allow passing an exception object in the traceback module (G…

    …H-22610)
    
    The format_exception(), format_exception_only(), and
    print_exception() functions can now take an exception object as a positional-only argument.
    
    Co-Authored-By: Matthias Bussonnier <bussonniermatthias@gmail.com>
    ZackerySpytz and Carreau committed Nov 5, 2020
  2. bpo-42260: PyConfig_Read() only parses argv once (GH-23168)

    The PyConfig_Read() function now only parses PyConfig.argv arguments
    once: PyConfig.parse_argv is set to 2 after arguments are parsed.
    Since Python arguments are strippped from PyConfig.argv, parsing
    arguments twice would parse the application options as Python
    options.
    
    * Rework the PyConfig documentation.
    * Fix _testinternalcapi.set_config() error handling.
    * SetConfigTests no longer needs parse_argv=0 when restoring the old
      configuration.
    vstinner committed Nov 5, 2020
  3. bpo-42260: Add _PyConfig_FromDict() (GH-23167)

    * Rename config_as_dict() to _PyConfig_AsDict().
    * Add 'module_search_paths_set' to _PyConfig_AsDict().
    * Add _PyConfig_FromDict().
    * Add get_config() and set_config() to _testinternalcapi.
    * Add config_check_consistency().
    vstinner committed Nov 5, 2020
  4. bpo-41877 Check for asert, aseert, assrt in mocks (GH-23165)

    Currently, a Mock object which is not unsafe will raise an
    AttributeError if an attribute with the prefix assert or assret is
    accessed on it. This protects against misspellings of real assert
    method calls, which lead to tests passing silently even if the tested
    code does not satisfy the intended assertion.
    
    Recently a check was done in a large code base (Google) and three
    more frequent ways of misspelling assert were found causing harm:
    asert, aseert, assrt. These are now added to the existing check.
    vabr-g committed Nov 5, 2020
  5. [docs] fix wrongly named AsyncContextDecorator (GH-23164)

    Also added versionchanged.
    Fidget-Spinner committed Nov 5, 2020
  6. bpo-42262: Add Py_NewRef() and Py_XNewRef() (GH-23152)

    Added Py_NewRef() and Py_XNewRef() functions to increment the reference
    count of an object and return the object.
    vstinner committed Nov 5, 2020
  7. bpo-40816 Add AsyncContextDecorator class (GH-20516)

    Co-authored-by: Yury Selivanov <yury@edgedb.com>
    heckad and 1st1 committed Nov 5, 2020

Commits on Nov 4, 2020

  1. bpo-42260: Add _PyInterpreterState_SetConfig() (GH-23158)

    * Inline _PyInterpreterState_SetConfig(): replace it with
      _PyConfig_Copy().
    * Add _PyErr_SetFromPyStatus()
    * Add _PyInterpreterState_GetConfigCopy()
    * Add a new _PyInterpreterState_SetConfig() function.
    * Add an unit which gets, modifies, and sets the config.
    vstinner committed Nov 4, 2020
  2. Disable peg generator tests when building with PGO (GH-23141)

    Otherwise, when running the testsuite, test_peg_generator tries to compile C
    code using the optimized flags and fails because it cannot find the profile
    data.
    serge-sans-paille committed Nov 4, 2020
  3. bpo-1635741: _sqlite3 uses PyModule_AddObjectRef() (GH-23148)

    erlend-aasland committed Nov 4, 2020
  4. bpo-1635741: Fix PyInit_pyexpat() error handling (GH-22489)

    Split PyInit_pyexpat() into sub-functions and fix reference leaks
    on error paths.
    koubaa committed Nov 4, 2020
  5. bpo-42260: Main init modify sys.flags in-place (GH-23150)

    When Py_Initialize() is called twice, the second call now updates
    more sys attributes for the configuration, rather than only sys.argv.
    
    * Rename _PySys_InitMain() to _PySys_UpdateConfig().
    * _PySys_UpdateConfig() now modifies sys.flags in-place, instead of
      creating a new flags object.
    * Remove old commented sys.flags flags (unbuffered and skip_first).
    * Add private _PySys_GetObject() function.
    * When Py_Initialize(), Py_InitializeFromConfig() and
    vstinner committed Nov 4, 2020
  6. bpo-1635741: Fix ref leak in _PyWarnings_Init() error path (GH-23151)

    Replace PyModule_AddObject() with PyModule_AddObjectRef() in the
    _warnings module to fix a reference leak on error.
    
    Use also PyModule_AddObjectRef() in importdl.c.
    vstinner committed Nov 4, 2020
  7. bpo-1635741: _ast uses PyModule_AddObjectRef() (GH-23146)

    Replace PyModule_AddObject() with PyModule_AddObjectRef() in the _ast
    module (Python-ast.c).
    vstinner committed Nov 4, 2020
  8. bpo-1635741: _contextvars uses PyModule_AddType() (GH-23147)

    Replace PyModule_AddObject() with PyModule_AddType() in the
    _contextvars module (Python-ast.c).
    
    Add also the module name to _contextvars types name.
    vstinner committed Nov 4, 2020
  9. bpo-42260: Reorganize PyConfig (GH-23149)

    * Move orig_argv before argv
    * Move program_name and platlibdir with other path configuration
      inputs
    
    Give a name to the PyPreConfig and PyConfig structures and separate
    the type definitions.
    vstinner committed Nov 4, 2020
  10. bpo-1635741: Add PyModule_AddObjectRef() function (GH-23122)

    Added PyModule_AddObjectRef() function: similar to
    PyModule_AddObjectRef() but don't steal a reference to the value on
    success.
    vstinner committed Nov 4, 2020
    2
  11. bpo-42236: os.device_encoding() respects UTF-8 Mode (GH-23119)

    On Unix, the os.device_encoding() function now returns 'UTF-8' rather
    than the device encoding if the Python UTF-8 Mode is enabled.
    vstinner committed Nov 4, 2020
  12. bpo-42251: Add gettrace and getprofile to threading (GH-23125)

    This allows to retrieve the functions that were set in these two, which might differ from sys.gettrace and sys.getprofile within a thread.
    mariocj89 committed Nov 4, 2020

Commits on Nov 3, 2020

  1. Enable signing of nuget.org packages and update to supported timestam…

    …p server (GH-23132)
    zooba committed Nov 3, 2020
  2. Fix incorrect links in ast docs (GH-23017)

    msuozzo committed Nov 3, 2020
  3. Post 3.10.0a2

    pablogsal committed Nov 3, 2020
  4. Merge tag 'v3.10.0a2' into master

    Python 3.10.0a2
    pablogsal committed Nov 3, 2020
  5. bpo-41796: Call _PyAST_Fini() earlier to fix a leak (GH-23131)

    Call _PyAST_Fini() on all interpreters, not only on the main
    interpreter. Also, call it ealier to fix a reference leak.
    
    Python types contain a reference to themselves in in their
    PyTypeObject.tp_mro member. _PyAST_Fini() must called before the last
    GC collection to destroy AST types.
    
    _PyInterpreterState_Clear() now calls _PyAST_Fini(). It now also
    calls _PyWarnings_Fini() on subinterpeters, not only on the main
    interpreter.
    
    Add an assertion in AST init_types() to ensure that the _ast module
    is no longer used after _PyAST_Fini() has been called.
    vstinner committed Nov 3, 2020
  6. Python 3.10.0a2

    pablogsal committed Nov 3, 2020

Commits on Nov 2, 2020

  1. bpo-35455: Fix thread_time for Solaris OS (GH-11118)

    kulikjak committed Nov 2, 2020
  2. bpo-26789: Fix logging.FileHandler._open() at exit (GH-23053)

    The logging.FileHandler class now keeps a reference to the builtin
    open() function to be able to open or reopen the file during Python
    finalization.
    
    Fix errors like:
    
        Exception ignored in: (...)
        Traceback (most recent call last):
          (...)
          File ".../logging/__init__.py", line 1463, in error
          File ".../logging/__init__.py", line 1577, in _log
          File ".../logging/__init__.py", line 1587, in handle
          File ".../logging/__init__.py", line 1649, in callHandlers
          File ".../logging/__init__.py", line 948, in handle
          File ".../logging/__init__.py", line 1182, in emit
          File ".../logging/__init__.py", line 1171, in _open
        NameError: name 'open' is not defined
    vstinner committed Nov 2, 2020
Older
You can’t perform that action at this time.