Skip to content
Permalink
main
Loading

Commits on Nov 18, 2021

  1. bpo-45788: Link sys.prefix doc to 'Installation paths' (#29606)

    ... To the Installation paths section of the sysconfig doc.
    terryjreedy committed Nov 18, 2021
  2. bpo-45640: [docs] Tokens are now clickable (GH-29260)

    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    Arthur-Milchior and ambv committed Nov 18, 2021
  3. [doc] bpo-45680: Disambiguate __getitem__ and ``__class_getitem__…

    …`` in the data model (GH-29389)
    
    The documentation explaining Python's data model does not adequately explain
    the differences between ``__getitem__`` and ``__class_getitem__``, nor does it
    explain when each is called. There is an attempt at explaining
    ``__class_getitem__`` in the documentation for ``GenericAlias`` objects, but
    this does not give sufficient clarity into how the method works. Moreover, it
    is the wrong place for that information to be found; the explanation of
    ``__class_getitem__`` should be in the documentation explaining the data model.
    
    This PR has been split off from GH-29335.
    AlexWaygood committed Nov 18, 2021
  4. bpo-45835: Fix race condition in test_queue (#29601)

    Some of the tests in test_queue had a race condition in which a
    non-sentinel value could be enqueued after the final sentinel value
    leading to not all the inputs being processed (and test failures).
    
    This changes feed() to enqueue a sentinel once the inputs are exhausted,
    which guarantees that the final queued object is a sentinel. This
    requires the number of feeder threads to match the number of consumer
    threads, but that's already the case in the relevant tests.
    colesbury committed Nov 18, 2021
  5. bpo-45573: Introduce extension module flags in Makefile (GH-29594)

    ``configure`` now uses a standardized format to forward state, compiler
    flags, and linker flags to ``Makefile``, ``setup.py``, and
    ``Modules/Setup``. ``makesetup`` use the new variables by default if a
    module line does not contain any compiler or linker flags. ``setup.py``
    has a new function ``addext()``.
    
    For a module ``egg``, configure adds:
    
    * ``MODULE_EGG`` with value yes, missing, disabled, or n/a
    * ``MODULE_EGG_CFLAGS``
    * ``MODULE_EGG_LDFLAGS``
    
    ``Makefile.pre.in`` may also provide ``MODULE_EGG_DEPS`` that lists
    dependencies such as header files and static libs.
    
    Signed-off-by: Christian Heimes <christian@python.org>
    tiran committed Nov 18, 2021
  6. bpo-45429: Merge whatsnew about time.sleep (GH-29589)

    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    corona10 and ambv committed Nov 18, 2021

Commits on Nov 17, 2021

  1. bpo-42540: reallocation of id_mutex should not force default allocator (

    GH-29564)
    
    Unlike the other locks reinitialized by _PyRuntimeState_ReInitThreads,
    the "interpreters.main->id_mutex" is not freed by _PyRuntimeState_Fini
    and should not force the default raw allocator.
    colesbury committed Nov 17, 2021
  2. bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH…

    …-29596)
    
    If the string is ASCII only and doesn't need to escape characters,
    write the whole string with a single write() syscall.
    vstinner committed Nov 17, 2021
  3. bpo-28806: Continue work: improve the netrc library (GH-26330)

    Continue with the improvement of the library netrc
    
    Original work and report Xiang Zhang <angwerzx@126.com>
    
    * 📜🤖 Added by blurb_it.
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    eamanu and blurb-it committed Nov 17, 2021
Older