Skip to content
Permalink
Branch: master
Commits on Jan 23, 2020
  1. bpo-17005: Minor improvements to the documentation of TopologicalSort…

    pablogsal committed Jan 23, 2020
    …er (GH-18155)
  2. bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)

    shanavas786 authored and terryjreedy committed Jan 23, 2020
  3. bpo-17005: Add a class to perform topological sorting to the standard…

    pablogsal and tim-one committed Jan 23, 2020
    … library (GH-11583)
    
    Co-Authored-By: Tim Peters <tim.peters@gmail.com>
  4. bpo-39421: Fix posible crash in heapq with custom comparison operators (

    pablogsal committed Jan 23, 2020
    GH-18118)
    
    * bpo-39421: Fix posible crash in heapq with custom comparison operators
    
    * fixup! bpo-39421: Fix posible crash in heapq with custom comparison operators
    
    * fixup! fixup! bpo-39421: Fix posible crash in heapq with custom comparison operators
  5. bpo-39320: Handle unpacking of *values in compiler (GH-17984)

    markshannon committed Jan 23, 2020
    * Add three new bytecodes: LIST_TO_TUPLE, LIST_EXTEND, SET_UPDATE. Use them to implement star unpacking expressions.
    
    * Remove four bytecodes BUILD_LIST_UNPACK, BUILD_TUPLE_UNPACK, BUILD_SET_UNPACK and  BUILD_TUPLE_UNPACK_WITH_CALL opcodes as they are now unused.
    
    * Update magic number and dis.rst for new bytecodes.
  6. bpo-32989: IDLE - remove unneeded parameter (GH-18138)

    terryjreedy committed Jan 23, 2020
    IDLE does not pass a non-default _synchre in any of its calls to
    pyparse.find_good_parse_start.
  7. bpo-39050: The Help button in IDLE's config menu works again (GH-17611)

    ZackerySpytz and terryjreedy committed Jan 23, 2020
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  8. bpo-29435: Allow is_tarfile to take a filelike obj (GH-18090)

    woodruffw authored and ethanfurman committed Jan 23, 2020
    `is_tarfile()` now supports `name` being a file or file-like object.
  9. bpo-39336: Allow packages to not let their child modules be set on th…

    DinoV committed Jan 23, 2020
    …em (#18006)
    
    * bpo-39336: Allow setattr to fail on modules which aren't assignable
    
    When attaching a child module to a package if the object in sys.modules raises an AttributeError (e.g. because it is immutable) it causes the whole import to fail.  This now allows immutable packages to exist and an ImportWarning is reported and the AttributeError exception is ignored.
Commits on Jan 22, 2020
  1. bpo-35182: fix communicate() crash after child closes its pipes (GH-1…

    2 people authored and gpshead committed Jan 22, 2020
    …7020) (GH-18117)
    
    When communicate() is called in a loop, it crashes when the child process
    has already closed any piped standard stream, but still continues to be running
    
    Co-authored-by: Andriy Maletsky <andriy.maletsky@gmail.com>
  2. bpo-39366: Remove xpath() and xgtitle() methods of NNTP (GH-18035)

    corona10 authored and berkerpeksag committed Jan 22, 2020
  3. bpo-39406: Implement os.putenv() with setenv() if available (GH-18128)

    vstinner committed Jan 22, 2020
    If setenv() C function is available, os.putenv() is now implemented
    with setenv() instead of putenv(), so Python doesn't have to handle
    the environment variable memory.
  4. bpo-39406: os.putenv() avoids putenv_dict on Windows (GH-18126)

    vstinner committed Jan 22, 2020
    Windows: _wputenv(env) copies the *env* string and doesn't require
    the caller to manage the variable memory.
  5. Revert "bpo-39413: Implement os.unsetenv() on Windows (GH-18104)" (GH…

    vstinner committed Jan 22, 2020
    …-18124)
    
    This reverts commit 56cd371.
  6. bpo-39353: Deprecate the binhex module (GH-18025)

    vstinner committed Jan 22, 2020
    Deprecate binhex4 and hexbin4 standards. Deprecate the binhex module
    and the following binascii functions:
    
    * b2a_hqx(), a2b_hqx()
    * rlecode_hqx(), rledecode_hqx()
    * crc_hqx()
  7. bpo-39425: Fix list.count performance regression (GH-18119)

    corona10 authored and miss-islington committed Jan 22, 2020
  8. bpo-39377: json: Update doc about the encoding option. (GH-18076)

    methane and aeros committed Jan 22, 2020
    Co-authored-by: Kyle Stanley <aeros167@gmail.com>
  9. closes bpo-39415: Remove unused codes from longobject.c complexobject…

    corona10 authored and benjaminp committed Jan 22, 2020
    ….c floatobject.c. (GH-18105)
Commits on Jan 21, 2020
  1. PyLong_AsLongLong() docs should say 'long long' (#18082)

    keitherskine authored and mdickinson committed Jan 21, 2020
  2. bpo-39406: Add PY_PUTENV_DICT macro to posixmodule.c (GH-18106)

    vstinner committed Jan 21, 2020
    Rename posix_putenv_garbage to putenv_dict.
  3. bpo-39413: Implement os.unsetenv() on Windows (GH-18104)

    vstinner committed Jan 21, 2020
    The os.unsetenv() function is now also available on Windows.
    
    It is implemented with SetEnvironmentVariableW(name, NULL).
  4. Move test_math tests (GH-18098)

    vstinner committed Jan 21, 2020
    testPerm() and testComb() belong to MathTests, not to IsCloseTests().
    
    test_nextafter() and test_ulp() now use assertIsNaN().
  5. bpo-33387: Fix compiler warning in frame_block_unwind() (GH-18099)

    vstinner committed Jan 21, 2020
    Replace int with intptr_t to fix the warning:
    
        objects\frameobject.c(341): warning C4244: 'initializing':
        conversion from '__int64' to 'int', possible loss of data
  6. bpo-39389: gzip: fix compression level metadata (GH-18077)

    wchargin authored and serhiy-storchaka committed Jan 21, 2020
    As described in RFC 1952, section 2.3.1, the XFL (eXtra FLags) byte of a
    gzip member header should indicate whether the DEFLATE algorithm was
    tuned for speed or compression ratio. Prior to this patch, archives
    emitted by the `gzip` module always indicated maximum compression.
  7. bpo-39396: Fix math.nextafter(-0.0, +0.0) on AIX 7.1 (GH-18094)

    vstinner committed Jan 21, 2020
    Move also math.nextafter() on math.ulp() tests from IsCloseTests to
    MathTests.
  8. bpo-32989: IDLE - fix bad editor call of pyparse method (GH-5968)

    csabella and terryjreedy committed Jan 21, 2020
    Fix comments and add tests for editor newline_and_indent_event method.
    Remove unused None default for function parameter of pyparse find_good_parse_start method
    and code triggered by that default.
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  9. improve the documentation of the LOAD_METHOD and CALL_METHOD (GH-18079)

    cfbolz authored and methane committed Jan 21, 2020
Commits on Jan 20, 2020
  1. bpo-39383: Mention Darwin as a potential value for platform.system() (G…

    bittner authored and ned-deily committed Jan 20, 2020
  2. bpo-39386: Prevent double awaiting of async iterator (GH-18081)

    asvetlov committed Jan 20, 2020
  3. Fix asyncio.get_event_loop() documentation (GH-18051)

    asvetlov committed Jan 20, 2020
    Mention that the function implicitly creates new event loop only if called from the main thread.
  4. bpo-39377: json: Remove the encoding option. (GH-18075)

    methane committed Jan 20, 2020
  5. bpo-38536: locale: Remove trailing space in formatted currency (GH-16864

    methane committed Jan 20, 2020
    )
Commits on Jan 19, 2020
  1. bpo-35561: Supress valgrind false alarm on epoll_ctl(event) (GH-18060)

    ZackerySpytz authored and vstinner committed Jan 19, 2020
    Update Misc/valgrind-python.supp to suppress the false alarm.
Older
You can’t perform that action at this time.